Yes but how very much depends on what you want to do. You deamon can have an xmlrpc server (general way) or you can implement a database based queue of tasks.
You should also look into cron. Massimo On Jun 11, 10:06 am, YangHong <[email protected]> wrote: > On 6月11日, 下午10时58分, YangHong <[email protected]> wrote: > > > Hi, Mdipierro and all > > > I have a application run as a daemon, which provides remote controll > > function via socket, I use web2py as web app frame work, and I want to > > define a Session/Request/Respose like global object in web2py, call it > > MyManager, then I can access it's method to controll my real > > application in controller in the web2py. for example: > > > controller/default.py: > > > def index(): > > if (reponse.vars['ticket']): > > MyManager.addTickes () > > Why I think this is usefull and worth to do is because I don't want > initiate a new MyManager every time I wan access it in controllers, > that cause connect/disconnect to frequntly and delay for web user > experience. > > > Is this possible? and where I can get start to add such a global var > > for it? > > > First I guess cron(contrib/cron.py) func is a global service, but it's > > not access able from conrtoller. > > > Then I've read some part of golun/globals.py, main.py, but I'm not > > sure if it's a right start point. > > I run web2py in mod_wsgi, so I guess it's possible to create a gobal > app (or something like) instance to communicate with my independ app > daemon. am I right? > > > > > Any comments will be appreciated. > > Pengu1n --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

