Changeset 288
- Timestamp:
- 06/11/05 17:03:10
- Files:
-
- trunk/cherrypy/lib/filter/logdebuginfofilter.py (modified) (2 diffs)
- trunk/cherrypy/lib/filter/sessionfilter/sqlobjectsession.py (modified) (2 diffs)
- trunk/cherrypy/test/test_logdebuginfo_filter.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/lib/filter/logdebuginfofilter.py
r247 r288 72 72 logList.append("Page size: %.02fKB" % ( 73 73 len(body)/float(1024))) 74 74 ''' 75 # this is not compatible with the session filter 75 76 if (cpg.config.get('logDebugInfoFilter.logSessionSize', True) 76 77 and cpg.config.get('session.storageType')): … … 85 86 except: 86 87 logList.append("Session data size: Unable to pickle session") 88 ''' 87 89 88 90 debuginfo += ', '.join(logList) trunk/cherrypy/lib/filter/sessionfilter/sqlobjectsession.py
r284 r288 49 49 if attr in ['timestamp', 'timeout', 'lastAccess', 'key']: 50 50 return getattr(self.__sqlObject, self.__attrSub(attr)) 51 else: 52 return object.__getattr__(self, attr) 51 53 52 54 def __setattr__(self, attr, value): … … 112 114 def cleanUpOldSessions(self): 113 115 # running a single query would be a huge performace boost 114 for sessionKey in __data: 115 session = sessionData[sessionKey] 116 if session.expired(): 117 self.delSession(sessionKey) 118 119 ''' 120 Session.createTable() 121 p = Session(session_key = 'abcd', timestamp = 330, count = 123) 122 Session.delete(Session.q.session_key=='abcd') 123 124 smanage = SQLObjectSession('test') 125 print smanage.getSession('abcd') 126 ''' 116 pass trunk/cherrypy/test/test_logdebuginfo_filter.py
r267 r288 60 60 self.assert_('Build time' in cpg.response.body) 61 61 self.assert_('Page size' in cpg.response.body) 62 self.assert_('Session data size' in cpg.response.body) 62 # not compatible with the sessionFilter 63 #self.assert_('Session data size' in cpg.response.body) 63 64 64 65

