[Zope-dev] zope2.2.2 - ZopeTime not available to users defined in acl_users below
the root?
the root?
ross
rossl@med.usyd.edu.au
Thu, 28 Sep 2000 14:51:22 -0400
Here's a problem which bit me today. I'd delegated someone to manage a
Yihaw directory. zope 2.2.2 source running on a sun.
make a folder at the root (eg /foo) with an acl_user folder there
define a new user in the foo acl_user folder (eg foobar) with
manager/owner rights
add a dtml method to view ZopeTime
(eg
<dtml-var ZopeTime>
)
view it and see the current time. It's owned by a real manager and it
works as expected.
Now, close your browser down and authenticate as foobar and try to view
the page. You'll get:
Zope Error
Zope has encountered an error while publishing this resource.
Error Type: KeyError
Error Value: ZopeTime
Traceback (innermost last):
File /udd/rerla/zope222/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
File /udd/rerla/zope222/lib/python/ZPublisher/Publish.py, line 187, in
publish
File /udd/rerla/zope222/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
File /udd/rerla/zope222/lib/python/ZPublisher/Publish.py, line 171, in
publish
File /udd/rerla/zope222/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: test)
File /udd/rerla/zope222/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: test)
File /udd/rerla/zope222/lib/python/OFS/DTMLMethod.py, line 172, in
__call__
(Object: test)
File /udd/rerla/zope222/lib/python/DocumentTemplate/DT_String.py, line
528, in __call__
(Object: test)
KeyError: (see above)
Note, it's not unauthorised - it's just not in the namespace.
ZopeAttributionButton is defined in the same Application.py but it works
fine. I even tried adding
ZopeTime__roles__=None to no avail.
What gives???