RE: [Zope] Python Scripts in 2.2.x
Oops, ignore that - copied the wrong error from the window (from an earlier attempt). The *real* error was that I was running zpasswd as root with a umask of 077, which of course meant the webserver and Zope couldn't read the resulting file. So, the LoginManager product appears to work, but the problem now is when I try to add a LoginManager to a folder, I get a NameError for 'path', with a traceback: Traceback (innermost last): File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope23/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope23/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: addLoginManager) File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: addLoginManager) File /usr/local/Zope23/lib/python/App/special_dtml.py, line 120, in __call__ (Object: addLoginManager) (Info: /usr/local/Zope23/lib/python/Products/LoginManager/addLoginManager.dtml) File /usr/local/Zope23/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: addLoginManager) File /usr/local/Zope23/lib/python/DocumentTemplate/DT_In.py, line 633, in renderwob (Object: UserSourcesMetaTypes(this())) File /usr/local/Zope23/lib/python/DocumentTemplate/DT_Util.py, line 331, in eval (Object: UserSourcesMetaTypes(this())) (Info: UserSourcesMetaTypes) File /usr/local/Zope23/lib/python/ZPublisher/HTTPRequest.py, line 772, in __getitem__ NameError: (see above) Regards, Phil +----------------------------------+ | Phil Mayers, Network Support | | Centre for Computing Services | | Imperial College | +----------------------------------+ -----Original Message----- From: Mayers, Philip J Sent: 09 January 2001 10:01 To: 'Bill Anderson' Subject: RE: [Zope] Python Scripts in 2.2.x No, I'm afraid not: Traceback (innermost last): File "/usr/local/Zope23/lib/python/OFS/Application.py", line 405, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/usr/local/Zope23/lib/python/Products/LoginManager/__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "/usr/local/Zope23/lib/python/Products/LoginManager/LoginManager.py", line 8, in ? from Products.ZPatterns.Specialists import Specialist File "/usr/local/Zope23/lib/python/Products/ZPatterns/__init__.py", line 1, in ? import Rack, Specialists, Customizers, AttributeProviders, SheetProviders File "/usr/local/Zope23/lib/python/Products/ZPatterns/Rack.py", line 9, in ? from DataSkins import DataSkin File "/usr/local/Zope23/lib/python/Products/ZPatterns/DataSkins.py", line 1, in ? from DynPersist import DynPersist ImportError: No module named DynPersist Regards, Phil +----------------------------------+ | Phil Mayers, Network Support | | Centre for Computing Services | | Imperial College | +----------------------------------+ -----Original Message----- From: Bill Anderson [mailto:bill@libc.org] Sent: 09 January 2001 04:42 To: Mayers, Philip J Subject: Re: [Zope] Python Scripts in 2.2.x Mayers, Philip J wrote:
I need to use LoginManager, which doesn't seem to work with 2.3,
It does after a minor modification... http://www.egroups.com/message/zope/47172 Bill Anderson
participants (1)
-
Mayers, Philip J