Method get_manage_lang generates session objects
"Thimo Kraemer" <[email protected]> Thu, 03 Nov 2011 13:58:07 +0100
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Organization | joonis new media |
| Message-ID | <op.v4dfm5kyzfgzcn@joonis-xw4300> |
Hi,
the expression "sess = getattr( req, 'SESSION', None)" creates a session object if not already present and never returns None.
You can find that expression in the file _multilangmanager.py - line 263 (or _language.py in previous versions), and in _objattrs.py - line 1038.
As a result each graphic access will generate a session object.
The statement should be changed to something like:
sess = getattr(self, 'session_data_manager', None) and self.session_data_manager.getSessionData(create=0)
--
Regards,
Thimo Kraemer
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/zms-developers/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/zms-developers/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/