Core Session Tracking doesn't like Zope 2.4.0b2
I get this: 2001-07-03T09:17:00 ERROR(200) Zope Couldn't install CoreSessionTracking Traceback (innermost last): File E:\Zope\24C37D~1.0B2\lib\python\OFS\Application.py, line 657, in install_ product (Object: ApplicationDefaultPermissions) (Info: CoreSessionTracking) File E:\Zope\sdclient\Products\CoreSessionTracking\__init__.py, line 97, in in itialize File E:\Zope\24C37D~1.0B2\lib\python\App\ProductContext.py, line 233, in regis terClass File E:\Zope\24C37D~1.0B2\lib\python\Interface\Util.py, line 66, in instancesO fObjectImplements (Object: SessionIdManager) File E:\Zope\24C37D~1.0B2\lib\python\Interface\Util.py, line 72, in _wi (Object: SessionIdManagerInterface) TypeError: loop over non-sequence Any ideas? Chris
Chris Withers wrote:
Any ideas?
Yup, and the patches are attached... cheers, Chris --- SessionIDManager.py.original Tue Apr 10 16:33:00 2001 +++ SessionIDManager.py Tue Jul 03 10:52:44 2001 @@ -174,7 +174,7 @@ __replaceable__ = UNIQUE # singleton for now - __implements__ = SessionIdManagerInterface + __implements__ = (SessionIdManagerInterface,) icon = 'misc_/CoreSessionTracking/idmgr.gif' --- SessionDataManager.py.original Tue Apr 10 16:33:00 2001 +++ SessionDataManager.py Tue Jul 03 10:51:30 2001 @@ -168,7 +168,7 @@ __allow_access_to_unprotected_subobjects__ = 0 - __implements__ = SessionDataManagerInterface + __implements__ = (SessionDataManagerInterface,) manage_sessiondatamgr = HTMLFile('manageDataManager', globals()) --- SessionDataContainer.py.original Tue Apr 10 16:33:00 2001 +++ SessionDataContainer.py Tue Jul 03 10:50:20 2001 @@ -150,7 +150,7 @@ icon='misc_/CoreSessionTracking/datacontainer.gif' - __implements__ = SessionDataContainerInterface + __implements__ = (SessionDataContainerInterface,) manage_options=( {'label': 'Manage', 'action':'manage_container'}, --- SessionData.py.original Tue Apr 10 16:33:00 2001 +++ SessionData.py Tue Jul 03 10:49:20 2001 @@ -109,7 +109,7 @@ __allow_access_to_unprotected_subobjects__ = 1 - __implements__ = SessionDataInterface + __implements__ = (SessionDataInterface,) def __init__(self, id, onstart=None, onend=None, datamgr=None, time=time.time):
WTF? I think this is an Interfaces bug new to 2.4.0b2 or whenever it started... this should really not break and the patches shouldn't be necessary. I'm going to try to figure it out and patch it in the core. Thanks, - C ----- Original Message ----- From: "Chris Withers" <chrisw@nipltd.com> To: <zope-dev@zope.org> Sent: Tuesday, July 03, 2001 6:11 AM Subject: Re: [Zope-dev] CST patches for Zope 2.4.0b2
Chris Withers wrote:
Any ideas?
Yup, and the patches are attached...
cheers,
Chris
---------------------------------------------------------------------------- ----
--- SessionIDManager.py.original Tue Apr 10 16:33:00 2001 +++ SessionIDManager.py Tue Jul 03 10:52:44 2001 @@ -174,7 +174,7 @@
__replaceable__ = UNIQUE # singleton for now
- __implements__ = SessionIdManagerInterface + __implements__ = (SessionIdManagerInterface,)
icon = 'misc_/CoreSessionTracking/idmgr.gif'
---------------------------------------------------------------------------- ----
--- SessionDataManager.py.original Tue Apr 10 16:33:00 2001 +++ SessionDataManager.py Tue Jul 03 10:51:30 2001 @@ -168,7 +168,7 @@
__allow_access_to_unprotected_subobjects__ = 0
- __implements__ = SessionDataManagerInterface + __implements__ = (SessionDataManagerInterface,)
manage_sessiondatamgr = HTMLFile('manageDataManager', globals())
---------------------------------------------------------------------------- ----
--- SessionDataContainer.py.original Tue Apr 10 16:33:00 2001 +++ SessionDataContainer.py Tue Jul 03 10:50:20 2001 @@ -150,7 +150,7 @@
icon='misc_/CoreSessionTracking/datacontainer.gif'
- __implements__ = SessionDataContainerInterface + __implements__ = (SessionDataContainerInterface,)
manage_options=( {'label': 'Manage', 'action':'manage_container'},
---------------------------------------------------------------------------- ----
--- SessionData.py.original Tue Apr 10 16:33:00 2001 +++ SessionData.py Tue Jul 03 10:49:20 2001 @@ -109,7 +109,7 @@
__allow_access_to_unprotected_subobjects__ = 1
- __implements__ = SessionDataInterface + __implements__ = (SessionDataInterface,)
def __init__(self, id, onstart=None, onend=None, datamgr=None, time=time.time):
The "right" fix for this is this diff: Index: SessioningInterfaces.py =================================================================== RCS file: /cvs-repository/Packages/Products/CoreSessionTracking/SessioningInteraces.py ,v retrieving revision 1.4 diff -r1.4 SessioningInterfaces.py 101d100 < id = 'session_id_mgr' In other words, just remove "id = 'session_id_manager'" from the SessionIdManagerInterface class. :-( The rest of the patches should be unnecessary. I may change the Interfaces packagage to prevent this problem in the future (but I may not). I'll need to make a new CST release in either case. - C ----- Original Message ----- From: "Chris Withers" <chrisw@nipltd.com> To: <zope-dev@zope.org> Sent: Tuesday, July 03, 2001 5:31 AM Subject: [Zope-dev] Core Session Tracking doesn't like Zope 2.4.0b2
I get this:
2001-07-03T09:17:00 ERROR(200) Zope Couldn't install CoreSessionTracking Traceback (innermost last): File E:\Zope\24C37D~1.0B2\lib\python\OFS\Application.py, line 657, in install_ product (Object: ApplicationDefaultPermissions) (Info: CoreSessionTracking) File E:\Zope\sdclient\Products\CoreSessionTracking\__init__.py, line 97, in in itialize File E:\Zope\24C37D~1.0B2\lib\python\App\ProductContext.py, line 233, in regis terClass File E:\Zope\24C37D~1.0B2\lib\python\Interface\Util.py, line 66, in instancesO fObjectImplements (Object: SessionIdManager) File E:\Zope\24C37D~1.0B2\lib\python\Interface\Util.py, line 72, in _wi (Object: SessionIdManagerInterface) TypeError: loop over non-sequence
Any ideas?
Chris
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
participants (2)
-
Chris McDonough -
Chris Withers