[Zapp-cvs-commit] ZApp ZApp_Application.py,1.36,1.37
Brought to you by:
sspickle
|
From: Steve S. <ssp...@us...> - 2005-06-22 12:25:40
|
Update of /cvsroot/zapp/ZApp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4869 Modified Files: ZApp_Application.py Log Message: give sessions concept of channel Index: ZApp_Application.py =================================================================== RCS file: /cvsroot/zapp/ZApp/ZApp_Application.py,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** ZApp_Application.py 8 Jun 2004 14:29:01 -0000 1.36 --- ZApp_Application.py 22 Jun 2005 12:25:26 -0000 1.37 *************** *** 333,339 **** return results ! SDT = 'SESSION_DATA_TYPE' ! ! def getUserSessions(self, browserID=None, create=0): """ return the current session info object(s) --- 333,337 ---- return results ! def getUserSessions(self, browserID=None, channel=None, create=0): """ return the current session info object(s) *************** *** 341,349 **** conditions = { - 'dataType':self.SDT, 'Manager':'SessionData', - 'objectID':self.REQUEST.AUTHENTICATED_USER.getUserName(), } if browserID is not None: conditions.update({'xml':xmlrpclib.dumps(({'browserID':browserID},))}) --- 339,348 ---- conditions = { 'Manager':'SessionData', } + if channel: + conditions.update({'objectID':channel}) + if browserID is not None: conditions.update({'xml':xmlrpclib.dumps(({'browserID':browserID},))}) |