[Zope3-dev] inherited security (and timezones)
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sun Aug 28 16:52:30 EDT 2005
On Thursday 25 August 2005 23:50, Gary Poster wrote:
> instead of this monkey patch (recorded for posterity, in case anyone
> needs this now...or has a better suggestion)
>
> # XXX argh.
> import pytz.tzinfo
> from zope.security.checker import NamesChecker
> from zope.interface.common.idatetime import ITZInfo
> names = set(ITZInfo.names(all=True))
> names.add('zone')
> checker = NamesChecker(names)
> pytz.UTC.__Security_checker__ = checker
> pytz.tzinfo.BaseTzInfo.__Security_checker__ = checker
> # end argh.
You can always create a custom directive, which I think would be okay here.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-dev
mailing list