[Zope-dev] Re: [Zope] Lobbying (was: [Zope] html_quote in python methods?)

Evan Simpson evan@4-am.com
Thu, 4 Jan 2001 16:07:31 -0500


From: Chris Withers <chrisw@nipltd.com>
> > Only if you add security declarations to expose functionality from
> > xmlrpclib.
>
> Is that hacky and nasty? :-S

In Zope 2.3, you place the following code somewhere that it will get
executed at startup (a custom Product's __init__ is the best bet):

from AccessControl import ModuleSecurityInfo
security = ModuleSecurityInfo('xmlrpclib')
security.declarePublic('Server')
# or security.setDefaultAccess(1), if you feel lucky.

Cheers,

Evan @ digicool & 4-am