[Zope-dev] Preventing scripts from being called directly

Dario Lopez-Kästen dario at ita.chalmers.se
Mon Aug 23 02:28:18 EDT 2004


Hello,

I am trying to prevent PythonScripts from being called directly TTW.

Is there a better way of doing this than the following code being called 
at the very begining of the script?

if script.getPhysicalPath() = context.REQUEST.PUBLISHED.getPhysicalPath():
   raise "UnAuthorisedOrSimilar"

Thanks,

/dario

-- 
-- -------------------------------------------------------------------
Dario Lopez-Kästen, IT Systems & Services Chalmers University of Tech.



More information about the Zope-Dev mailing list