[jToolkit-cvs] jToolkit/web session.py,1.3,1.4
Brought to you by:
davidfraser,
friedelwolff
From: <dav...@us...> - 2003-10-14 15:48:14
|
Update of /cvsroot/jtoolkit/jToolkit/web In directory sc8-pr-cvs1:/tmp/cvs-serv31024 Modified Files: session.py Log Message: moved invalidatechild around to make sure it's always there. set username in __init__ so everyone knows it's there (particularly pychecker :-)) Index: session.py =================================================================== RCS file: /cvsroot/jtoolkit/jToolkit/web/session.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** session.py 25 Sep 2003 17:36:55 -0000 1.3 --- session.py 14 Oct 2003 15:48:09 -0000 1.4 *************** *** 155,158 **** --- 155,159 ---- self.status = "" self.setlanguage(None) + self.username = None # allow the server to add any attributes it requires server.initsession(self) *************** *** 202,205 **** --- 203,212 ---- self.invalidatechild(childname) + def invalidatechild(self, childname): + """logs out of a child session""" + childsession = self.childsessions.get(childname, 0) + if childsession: + childsession.markinvalid() + def updatelastused(self): """updates that the session has been used""" *************** *** 381,390 **** othersession.username = otherusername othersession.status = "" - - def invalidatechild(self, childname): - """logs out of a child session""" - childsession = self.childsessions.get(childname, 0) - if childsession: - childsession.markinvalid() def confirmlogin(self, req, username, password, timestamp): --- 388,391 ---- |