[Zope-dev] Preventing scripts from being called directly
Dario Lopez-Kästen
dario at ita.chalmers.se
Wed Aug 25 01:58:15 EDT 2004
Florent Guillaume wrote:
>
> The way I do it is:
>
> ##parameters=foo, bar, ..., REQUEST=None
>
> if REQUEST is not None:
> raise 'Unauthorized', 'Not callable TTW'
>
I believe this is much better. I get "function not accessible in
restricted mode" with my own solution.
Thanks,
/dario
--
-- -------------------------------------------------------------------
Dario Lopez-Kästen, IT Systems & Services Chalmers University of Tech.
More information about the Zope-Dev
mailing list