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.
_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )