[Zope] Bug in External Methods?
Itamar Shtull-Trauring
itamars@ibm.net
Thu, 14 Oct 1999 12:40:07 +0200
I am creating a new ZClass, that has two external methods. I want them to
have their own permission, so I create a permission in the Product that
includes the ZClass. I now try to change the permissions on an external
method (which is called manage_first), so that View permission is mapped to
the new permission I created. I get an error - and I get the same error no
matter what I try to map View to.
http://localhost:8080/Control_Panel/Products/OrderedFolder/OrderedFolderClass/propertysheets/methods/manage_first/manage_setPermissionMapping
gives me:
Zope has encountered an error while publishing this resource.
Error Type: KeyError
Error Value: ZopeTime
...
...
...
Traceback (innermost last):
File /itamar/Zope-2.0.1-linux2-x86/lib/python/ZPublisher/Publish.py, line
214, in publish_module
File /itamar/Zope-2.0.1-linux2-x86/lib/python/ZPublisher/Publish.py, line
179, in publish
File /itamar/Zope-2.0.1-linux2-x86/lib/python/Zope/__init__.py, line 201,
in zpublisher_exception_hook
(Object: manage_first)
File /itamar/Zope-2.0.1-linux2-x86/lib/python/ZPublisher/Publish.py, line
165, in publish
File /itamar/Zope-2.0.1-linux2-x86/lib/python/ZPublisher/mapply.py, line
160, in mapply
(Object: manage_setPermissionMapping)
File /itamar/Zope-2.0.1-linux2-x86/lib/python/ZPublisher/Publish.py, line
102, in call_object
(Object: manage_setPermissionMapping)
File
/itamar/Zope-2.0.1-linux2-x86/lib/python/AccessControl/PermissionMapping.py,
line 149, in manage_setPermissionMapping
(Object: manage_first)
File /itamar/Zope-2.0.1-linux2-x86/lib/python/AccessControl/Role.py, line
229, in manage_access
(Object: manage_first)
File /itamar/Zope-2.0.1-linux2-x86/lib/python/App/special_dtml.py, line
120, in __call__
(Object: methodAccess)
(Info:
/itamar/Zope-2.0.1-linux2-x86/lib/python/AccessControl/methodAccess.dtml)
File
/itamar/Zope-2.0.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
(Object: methodAccess)
File /itamar/Zope-2.0.1-linux2-x86/lib/python/App/special_dtml.py, line
120, in __call__
(Object: manage_tabs)
(Info: /itamar/Zope-2.0.1-linux2-x86/lib/python/App/manage_tabs.dtml)
File
/itamar/Zope-2.0.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
(Object: manage_tabs)
File /itamar/Zope-2.0.1-linux2-x86/lib/python/DocumentTemplate/DT_With.py,
line 148, in render
(Object: _(manage_options=filtered_manage_options()))
KeyError: (see above)