Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

Unexpected behavior with zope.session 3.9.5

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


caustin at zeomega

Apr 11, 2012, 4:55 AM

Post #1 of 1 (295 views)
Permalink
Unexpected behavior with zope.session 3.9.5

Hi List,

I'm running into an bit of a problem implementing zope.session on Zope2-2.12.10.
When running the following code inside a class that inherits from BrowserView:

session = ISession(self.request)[product_id]

I get the following error.

AttributeError: ZServerHTTPResponse instance has no attribute 'getCookie'

Looking through the zope.session code, the Session object adapts IRequest. The exception is being thrown in zope.session.http.CookieClientIdManager in the the getRequestId() method with the following code.

def getRequestId(self, request):
'''....'''
response_cookie = request.response.getCookie(self.namespace)

I am not sure where to begin tracking this down. Could this be an error with utility lookup?

_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.