ModuleSecurityInfo and Product registerClass
I have a product that defines a manage_addMyselfForm which has the following security declaration: from AccessControl import ModuleSecurityInfo modulesecurity = ModuleSecurityInfo() modulesecurity.declareProtected('View management screens', 'manage_addMyselfForm') modulesecurity.apply(globals()) The function manage_addMyselfForm doesn't have a docstring, and when I try to actually add the product through the web, I get "Missing doc string". Is there a missing security declaration I need? Any help appreciated. Richard
Richard Jones wrote:
The function manage_addMyselfForm doesn't have a docstring, and when I try to actually add the product through the web, I get "Missing doc string". Is there a missing security declaration I need?
Yeah, the docstring! Welcome to hell... Chris ;-)
On Wednesday 10 October 2001 20:08, Chris Withers wrote:
Richard Jones wrote:
The function manage_addMyselfForm doesn't have a docstring, and when I try to actually add the product through the web, I get "Missing doc string". Is there a missing security declaration I need?
Yeah, the docstring!
Welcome to hell...
Chris ;-)
D'oh! I was hoping that the module security info would be enough :( This basically means Zope still can't be run with python -OO :( Richard
participants (2)
-
Chris Withers -
Richard Jones