Toby Gustafson wrote at 2003-8-14 04:35 -0700:
> I am having a problem accessing a function defined in a product I have
> created and installed.
> From that script I try to call the
> function with the lines:
> from Products.StoreEvent import StoreEvent
> storeEvents = StoreEvents.searchForStoreEvents(context, ...)
> "You are not allowed to access searchForStoreEvents in this
> I have read the security document at:
> and have tried adding several things to my StoreEvent.__init__.py file,
> such as:
> modulesecurity = ModuleSecurityInfo()
> modulesecurity.declarePublic( \
"ModuleSecurityInfo" is quite complex. I do not understand it completely.
However, I see one error in your code: in your "declarePublic",
one "StoreEvent" is missing.
Your "seachForStoreEvents" is at
> However, nothing seems to work. Anybody have any idea what I am doing
The "AccessControl.allow_module" may be simpler to use
(however, it make available the complete module content).
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -