2008/12/22 biziap biziap <fet...@gmail.com>

> 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.
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to