2007年06月01日 星期五 09:22
应该可以的. 消息队列不都可以做这样的事儿么? win32平台有MSMQ... 在07-5-31,机器人小G <lovegroups at gmail.com> 写道: > > 可以这样吗? > > 在07-5-31,东子/hydon <hydonlee at gmail.com> 写道: > > > > 要继续处理数据,貌似WEB不可以吧. > > 我能想到的是, 外部启动一个守护进程, 然后WEB发消息给守护进程处理. > > > > 在07-5-31,散漫酷男孩 <17mxnet at gmail.com> 写道: > > > > > > 我现在刚刚学习使用web.py > > > > > > import web > > > urls = ( > > > '/', 'index' > > > ) > > > class index: > > > def GET(self): > > > print "hello, webpy" > > > #我怎么实现 > > > #和客户端断开,继续执行处理数据?因为数据处理的时间可能比较长 > > > #所以要断开来慢慢处理 > > > #还有个问题,怎么获得客户端请求的一些参数比如 refere > > > if __name__ == "__main__": > > > web.run(urls, globals()) > > > _______________________________________________ > > > python-chinese > > > Post: send python-chinese at lists.python.cn > > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > > Unsubscribe: send unsubscribe to > > > python-chinese-request at lists.python.cn > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > -- > > 努力做好每一件事 > > TRY TO DO MY BEST > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -- 努力做好每一件事 TRY TO DO MY BEST -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070601/14c5f608/attachment.html
2007年06月01日 星期五 09:36
Èç¹û·þÎñÆ÷¶ËÒª´¦ÀíºÜ³¤µÄʱ¼ä£¬¿ÉÒÔÖ±½Ó·µ»Ø¸ø¿Í»§¶ËÒ»¶ÎÌáʾµÄhtml£¬ÀïÃæ°üº¬Ò» ¶Î¶¨Ê±Ë¢ÐµÄjs£¬¿Í»§¶ËÏ´ÎÇëÇóʱÈç¹û´¦ÀíºÃÁ˾ͷµ»Ø½á¹û¡£ Ps£¬²»Çå³þWeb.pyÊÇʲô£¿ _____ From: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] On Behalf Of ¶«×Ó/hydon Sent: 2007Äê6ÔÂ1ÈÕ 9:23 To: python-chinese在lists.python.cn Subject: Re: [python-chinese]ÊìϤweb.pyµÄ½ø£¡ÌÖÂÛÒ»¸öweb.pyµÄÎÊÌâ Ó¦¸Ã¿ÉÒÔµÄ. ÏûÏ¢¶ÓÁ⻶¼¿ÉÒÔ×öÕâÑùµÄʶùô? win32ƽ̨ÓÐMSMQ... ÔÚ07-5-31£¬»úÆ÷ÈËСG <lovegroups在gmail.com> дµÀ£º ¿ÉÒÔÕâÑùÂð? ÔÚ07-5-31£¬¶«×Ó/hydon <hydonlee在gmail.com> дµÀ£º Òª¼ÌÐø´¦ÀíÊý¾Ý,òËÆWEB²»¿ÉÒÔ°É. ÎÒÄÜÏëµ½µÄÊÇ, ÍⲿÆô¶¯Ò»¸öÊØ»¤½ø³Ì, È»ºóWEB·¢ÏûÏ¢¸øÊØ»¤½ø³Ì´¦Àí. ÔÚ07-5-31£¬É¢Âþ¿áÄк¢ <17mxnet在gmail.com> дµÀ£º ÎÒÏÖÔÚ¸Õ¸ÕѧϰʹÓÃweb.py import web urls = ( '/', 'index' ) class index: def GET(self): print "hello, webpy" #ÎÒÔõôʵÏÖ #ºÍ¿Í»§¶Ë¶Ï¿ª,¼ÌÐøÖ´Ðд¦ÀíÊý¾Ý£¿ÒòΪÊý¾Ý´¦ÀíµÄʱ¼ä¿ÉÄܱȽϳ¤ #ËùÒÔÒª¶Ï¿ªÀ´ÂýÂý´¦Àí #»¹ÓиöÎÊÌâ,Ôõô»ñµÃ¿Í»§¶ËÇëÇóµÄһЩ²ÎÊý±ÈÈç refere if __name__ == "__main__": web.run(urls, globals()) _______________________________________________ python-chinese Post: send python-chinese在lists.python.cn Subscribe: send subscribe to python-chinese-request在lists.python.cn Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn Detail Info: http://python.cn/mailman/listinfo/python-chinese <http://python.cn/mailman/listinfo/python-chinese> -- ŬÁ¦×öºÃÿһ¼þÊ TRY TO DO MY BEST _______________________________________________ python-chinese Post: send python-chinese在lists.python.cn Subscribe: send subscribe to python-chinese-request在lists.python.cn Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn Detail Info: http://python.cn/mailman/listinfo/python-chinese _______________________________________________ python-chinese Post: send python-chinese在lists.python.cn Subscribe: send subscribe to python-chinese-request在lists.python.cn Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn Detail Info: http://python.cn/mailman/listinfo/python-chinese -- ŬÁ¦×öºÃÿһ¼þÊ TRY TO DO MY BEST -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070601/39acf06a/attachment-0001.html
2007年06月01日 星期五 10:52
用ajax吧,定时刷新,把处理好的结果做成html _________________________________________________________________ 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
2007年06月01日 星期五 11:22
On 6/1/07, cun heise <cunheise在hotmail.com> wrote: > 用ajax吧,定时刷新,把处理好的结果做成html 有兴趣使用新技术的话可以试试Comet技术[1]。 [1] http://www.answers.com/topic/comet-programming Comet is a programming technique that enables web servers to send data to the client without having any need for the client to request it. 让服务器直接给客户端发送通知,不需要ajax去定时poll了,可以减少latency。 -- Qiangning Hong http://www.douban.com/people/hongqn/
2007年06月01日 星期五 13:26
Cometd 1.第一需要服务器的支持 2.其次需要长时间的链接 3.大概看了一下,ie好像不支持,是通过trick来完成的 4.个人觉得是新技术,可能文档不多implement不容易,以及实用性有待考证 _________________________________________________________________ 与联机的朋友进行交流,请使用 Live Messenger; http://get.live.com/messenger/overview
Zeuux © 2025
京ICP备05028076号