Sanjay wrote:
> In a sense, I am trying to push 'usersite' around
> as a hidden field, avoiding using cookies or session.

To "push things around" that should be in the request scope, add them
to the request object:

def default(self, usersite, url1=None, url2=None):
    cherrypy.request.usersite = usersite
    ...

def save(...):
    usersite = cherrypy.request.usersite

If you have a large number of data or believe the names will conflict
with builtins or other people's code, stick it in a dict instead:

    cherrypy.request.mycmsappdata = {'usersite': usersite}


Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to