[Zope-PTK] superuser problems

Jochen Haeberle listen@MIDRAS.de
Tue, 15 Feb 2000 18:50:02 +0100


Hi,

I am having problems accessing my Portal as the site superuser. When
I created the portal, I added the superuser id (which is not the
default ID in this case) when I was asked for the first manager.
Everything seemed okay, but I could not log out.

Today I was logged in as superuser and tried to access the Portal.
The first page is okay, but pressing "search" gives a TraceBack:

Error Type: AttributeError
Error Value: last_login_time

<!--
Traceback (innermost last):
   File /serve/MIS-Zope-2.1.3/lib/python/ZPublisher/Publish.py, line 
214, in publish_module
   File /serve/MIS-Zope-2.1.3/lib/python/ZPublisher/Publish.py, line 
179, in publish
   File /serve/MIS-Zope-2.1.3/lib/python/Zope/__init__.py, line 202, 
in zpublisher_exception_hook
     (Object: DemoPortalBase)
   File /serve/MIS-Zope-2.1.3/lib/python/ZPublisher/Publish.py, line 
165, in publish
   File /serve/MIS-Zope-2.1.3/lib/python/ZPublisher/mapply.py, line 
160, in mapply
     (Object: search_form)
   File /serve/MIS-Zope-2.1.3/lib/python/ZPublisher/Publish.py, line 
102, in call_object
     (Object: search_form)
   File /serve/MIS-Zope-2.1.3/lib/python/OFS/DTMLMethod.py, line 145, 
in __call__
     (Object: search_form)
   File 
/serve/MIS-Zope-2.1.3/lib/python/DocumentTemplate/DT_String.py, line 
502, in __call__
     (Object: search_form)
   File /serve/MIS-Zope-2.1.3/lib/python/DocumentTemplate/DT_Util.py, 
line 335, in eval
     (Object: AUTHENTICATED_USER.last_login_time)
     (Info: AUTHENTICATED_USER)
   File <string>, line 0, in ?
   File /serve/MIS-Zope-2.1.3/lib/python/DocumentTemplate/DT_Util.py, 
line 127, in careful_getattr
AttributeError: (see above)

-->

This is a rather big problem, as I can't log out once I am superuser...

The superuser also can't access his Preferences. This raises the 
following error:

Error Type: AttributeError
Error Value: email

<!--
Traceback (innermost last):
   File /serve/MIS-Zope-2.1.3/lib/python/ZPublisher/Publish.py, line 
214, in publish_module
   File /serve/MIS-Zope-2.1.3/lib/python/ZPublisher/Publish.py, line 
179, in publish
   File /serve/MIS-Zope-2.1.3/lib/python/Zope/__init__.py, line 202, 
in zpublisher_exception_hook
     (Object: DemoPortalBase)
   File /serve/MIS-Zope-2.1.3/lib/python/ZPublisher/Publish.py, line 
165, in publish
   File /serve/MIS-Zope-2.1.3/lib/python/ZPublisher/mapply.py, line 
160, in mapply
     (Object: personalize_form)
   File /serve/MIS-Zope-2.1.3/lib/python/ZPublisher/Publish.py, line 
102, in call_object
     (Object: personalize_form)
   File /serve/MIS-Zope-2.1.3/lib/python/OFS/DTMLMethod.py, line 145, 
in __call__
     (Object: personalize_form)
   File 
/serve/MIS-Zope-2.1.3/lib/python/DocumentTemplate/DT_String.py, line 
502, in __call__
     (Object: personalize_form)
   File /serve/MIS-Zope-2.1.3/lib/python/DocumentTemplate/DT_Var.py, 
line 278, in render
     (Object: AUTHENTICATED_USER.email)
   File /serve/MIS-Zope-2.1.3/lib/python/DocumentTemplate/DT_Util.py, 
line 335, in eval
     (Object: AUTHENTICATED_USER.email)
     (Info: AUTHENTICATED_USER)
   File <string>, line 0, in ?
   File /serve/MIS-Zope-2.1.3/lib/python/DocumentTemplate/DT_Util.py, 
line 127, in careful_getattr
AttributeError: (see above)

-->

I guess this is because the Portal creation Wizard does not ask for
the eMail of the first Portal Manager. I guess this is a bug.

How is this supposed to work? What should the first portal manager
be? The superuser or a new user?

Jochen