[Zope] problems with manage_defined_roles

Klaus Herrmann Klaus Herrmann <klaus.herrmann@gmx.net>
09 Apr 2001 14:09:50 CEST


Hi!

I have problems with the manage_defined_roles() command:
whenever i try to do 
manage_defined_roles('Delete Role', REQUEST)
or
manage_defined_roles('Add Role', REQUEST)
i get 
Error Type: NameError
Error Value: HelpSys
i included the full error message at the bottom of this mail.
btw, i did set the role / roles var before i called the function,
mostly as described in a beehive-e-book. i've looked at Role.py but
didn't find my mistake :-(

what's wrong?

thanks in advance!

bye,
	Klaus

-------------------
The Traceback:

Zope Error
Zope has encountered an error while publishing this resource.
 
Error Type: NameError
Error Value: HelpSys
Troubleshooting Suggestions
This resource may be trying to reference a
  nonexistent object or variable HelpSys.
The URL may be incorrect.
The parameters passed to this resource may be incorrect.
A resource that this resource relies on may be encountering an error.
For more detailed information about the error, please
  refer to the HTML source for this page.
 
If the error persists please contact the site maintainer.
  Thank you for your patience.
 

Traceback (innermost last):
  File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 222,
in publish_module
  File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 187,
in publish
  File /usr/local/www/Zope/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
    (Object: Traversable)
  File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 171,
in publish
  File /usr/local/www/Zope/lib/python/ZPublisher/mapply.py, line 160,
in mapply
    (Object: roles_func)
  File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 112,
in call_object
    (Object: roles_func)
  File /usr/local/www/Zope/lib/python/OFS/DTMLDocument.py, line 177, in
__call__
    (Object: roles_func)
  File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_String.py,
line 528, in __call__
    (Object: roles_func)
  File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_Util.py, line
337, in eval
    (Object: manage_defined_roles('Delete Role', REQUEST))
    (Info: REQUEST)
  File <string>, line 0, in ?
  File /usr/local/www/Zope/lib/python/AccessControl/Role.py, line 483,
in manage_defined_roles
    (Object: roles_func)
  File /usr/local/www/Zope/lib/python/AccessControl/Role.py, line 517,
in _delRoles
    (Object: roles_func)
  File /usr/local/www/Zope/lib/python/AccessControl/Role.py, line 256,
in manage_access
    (Object: roles_func)
  File /usr/local/www/Zope/lib/python/App/special_dtml.py, line 120, in
__call__
    (Object: access)
    (Info: /usr/local/www/Zope/lib/python/AccessControl/access.dtml)
  File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_String.py,
line 528, in __call__
    (Object: access)
  File /usr/local/www/Zope/lib/python/App/special_dtml.py, line 120, in
__call__
    (Object: manage_tabs)
    (Info: /usr/local/www/Zope/lib/python/App/manage_tabs.dtml)
  File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_String.py,
line 528, in __call__
    (Object: manage_tabs)
  File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_With.py, line
146, in render
    (Object: _(manage_options=filtered_manage_options()))
  File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_With.py, line
146, in render
    (Object: _(option=manage_options[a_]))
  File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_Util.py, line
337, in eval
    (Object: HelpSys.button(HelpSys, REQUEST,
      product=option['help'][0],
      topic=option['help'][1]))
    (Info: REQUEST)
  File <string>, line 0, in ?
NameError: (see above)


-- 
Klaus Herrmann <klaus.herrmann@gmx.net>