[Twisted-Python] Re: How is happened?

biziap biziap fetbiz at gmail.com
Mon Dec 22 01:50:14 MST 2008


2008/12/22 biziap biziap <fetbiz at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20081222/4dec3a7f/attachment.html>


More information about the Twisted-Python mailing list