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"



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

Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to