Please help with ZopeTime AttributeError
I have an out-of-the-box, installation of Zope (Zope-2.6.0-linux2-x86.tgz), CMF (CMF-1.3.tar.gz) and Plone (CMFPlone1.0RC1.tar.gz) running on RH Linux 7.3. I've done little-to-no customization, save for minor header and footer tweaks. I created one user with Manager privileges. When I log in with my Manager account, I'm taken to the logged_in page, but I'm greeted with: Site error This site encountered an error trying to fulfill your request. The errors were: Error Details Error Type AttributeError Error Value ZopeTime Additionally, after adding a new document to a subfolder and going to the "state" tab, I receive the exact same error. Almost everything on the site is usable, but I just hit this error in the above situations. Logging in with the Admin account, I do not get these errors. This leads me to believe it might be some kind of permissions issue, but I'm not sure which Perms to tweak. I have changed the DateTime.py file already, so I don't believe that's it. I hit that bug already and found that patch. I'm very new to Zope and Plone, so I'm not sure where to begin looking. Any hints would be greatly appreciated. Here's a traceback: Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.CMFCore.FSPythonScript, line 90, in __call__ Module Shared.DC.Scripts.Bindings, line 252, in __call__ Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec Module Products.CMFCore.FSPythonScript, line 124, in _exec __traceback_info__: ({'script': <FSPythonScript at /mypath/logged_in>, 'context': <PloneSite instance at 9066718>, 'container': <PloneSite instance at 9066718>, 'traverse_subpath': []}, (), {}, None) Module Script (Python), line 25, in logged_in Module Shared.DC.Scripts.Bindings, line 252, in __call__ Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec Module Products.CMFCore.FSPageTemplate, line 163, in _exec Module Products.PageTemplates.ZopePageTemplate, line 228, in _exec Module Products.CMFCore.FSPageTemplate, line 139, in pt_render Module Products.PageTemplates.PageTemplate, line 95, in pt_render <FSPageTemplate at /mypath/login_success> Module TAL.TALInterpreter, line 186, in __call__ Module TAL.TALInterpreter, line 230, in interpret Module TAL.TALInterpreter, line 689, in do_useMacro Module TAL.TALInterpreter, line 230, in interpret Module TAL.TALInterpreter, line 712, in do_defineSlot Module TAL.TALInterpreter, line 230, in interpret Module TAL.TALInterpreter, line 654, in do_condition Module Products.PageTemplates.TALES, line 217, in evaluate Line 35, Column 12 Expression: <PythonExpr not(member.login_time == here.ZopeTime('2000/01/01') and here.validate_email)> Names: {'container': <PloneSite instance at 9066718>, 'default': <Products.PageTemplates.TALES.Default instance at 0x86c13d4>, 'here': <PloneSite instance at 9066718>, 'loop': <SafeMapping instance at 91e5678>, 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x86a70ec>, 'nothing': None, 'options': {'args': ()}, 'repeat': <SafeMapping instance at 91e5678>, 'request': <HTTPRequest, URL=http://mysite/mypath/logged_in>, 'root': <Application instance at 8fc1030>, 'template': <FSPageTemplate at /mypath/login_success>, 'traverse_subpath': [], 'user': myuser}Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__ __traceback_info__: not(member.login_time == here.ZopeTime('2000/01/01') and here.validate_email) Module Python expression "not(member.login_time == here.ZopeTime('2000/01/01') and here.validate_email)", line 2, in f AttributeError: ZopeTime Thank you, Larry
When I log in to a Plone site with a user account that has Manager privileges. -L -----Original Message----- From: Mark McEahern [mailto:marklists@mceahern.com] Sent: Wednesday, January 08, 2003 3:10 PM To: Larry Silverman; zope@zope.org Subject: RE: [Zope] Please help with ZopeTime AttributeError [Larry Silverman]
When I log in with my Manager account, I'm taken to the logged_in page, but I'm greeted with:
When you login to /manage? Or when you login to a CMF site or a Plone site? // m -
Larry, what happens if you create a Python Script outside your Plone site (in the root of the server) that has: print context.ZopeTime() return printed and then click its Test tab? I downloaded Plone RC1 and logged in to the portal, no problem. So I don't, off the top of it, know why you're getting that AttributeError. // m -
Thanks for the help everyone. I decided that since I didn't have much time invested yet, to just reinstall the whole kaboodle. It works fine now. I must've mucked something up in install somehow. -L
participants (2)
-
Larry Silverman -
Mark McEahern