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 ()
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.
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
-~----------~----~----~----~------~----~------~--~---