[Zope] preventing acquisition
Robin Becker
robin@jessikat.fsnet.co.uk
Thu, 2 Nov 2000 08:33:12 +0000
In article <DB56BAD3BFCED3119D3100D0B72386560713C41E@wcgtule103.wcg.will
iams.com>, Farrell, Troy <troy.farrell@wilcom.com> writes
>Sorry. -2 points for lack of clarity (my fault)
>
>I thought you were talking about a document. If you want to do something
>like that you will need to use <dtml-with> inside your documents. The only
>way I know to prevent a user from doing this by typing a URL is to set some
>security permissions.
>
>You might look at
>http://www.zope.org/Members/rossl/SpecificContext
>It is not specific to your problem, but it might help.
>
>Troy
>
...
well I eventually succeeded for dtml-methods with this kind of thing
<dtml-if "absolute_url() != URL1">
<dtml-raise NotFound>.....</dtml-raise>
</dtml-if>
--
Robin Becker