22 Dec
2008
22 Dec
'08
8:50 a.m.
2008/12/22 biziap biziap
I am trying to migrate to web2. And find the "OldRequestAdapter". What I did is callling:
## in a resource of web2 def render(self,web2_request): request = twisted.web2.compat.makeOldRequestAdapter(web2_request) ...
request.getSession()
then the exception was thrown:
File "c:\python25\Lib\site-packages\twisted\web2\compat.py", line 336, in getSession cookiename = string.join(['TWISTED_SESSION'] + self.sitepath, "_") AttributeError: 'OldRequestAdapter' object has no attribute 'sitepath'
Any hints are appericated.