Re: [Zope] preventing acquisition

2000-11-02 Thread Robin Becker

In article [EMAIL PROTECTED]
iams.com, Farrell, Troy [EMAIL PROTECTED] 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

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




Re: [Zope] preventing acquisition

2000-11-01 Thread Chris Withers

Robin Becker wrote:
 So if I have a path
 
 /A/B/C
 
 I would like to inhibit the behaviour that allows
 me to view
 
 /A/B/C/A and /A/B/C/A/B/C etc.
 
 to inhibit the first I can put something like
 
 dtml-if "PARENTS[0].id not in PARENTS[1].objectIds()"
  dtml-raise NotFound
   h2You're not supposed to be looking at
   dtml-var "absolute_url()" /h2
  /dtml-raise
 /dtml-if
 
 in my index_html, but this doesn't work for the second case. Is there a
 generic way to do this?

You could create a non-acquiring folder product and use that...

cheers,

Chris

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




Re: [Zope] preventing acquisition

2000-10-31 Thread Robin Becker

In message [EMAIL PROTECTED]
iams.com, Farrell, Troy [EMAIL PROTECTED] writes
Sorry for the blank.  That was my mistake.  Try the dtml-with tag and the
"only" keyword.
...
It's quite difficult to get netscape/ie to do a dtml-with only! The
problem I'm seeing is that
in my browser I can use
http://localhost/A/B/C 
correctly, but also incorrectly I can view 
http://localhost/A/B/C/A/C
-- 
Robin Becker

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




RE: [Zope] preventing acquisition

2000-10-31 Thread Farrell, Troy

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

-Original Message-
From: Robin Becker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 31, 2000 2:52 PM
To: Farrell, Troy
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] preventing acquisition


In message [EMAIL PROTECTED]
iams.com, Farrell, Troy [EMAIL PROTECTED] writes
Sorry for the blank.  That was my mistake.  Try the dtml-with tag and the
"only" keyword.
...
It's quite difficult to get netscape/ie to do a dtml-with only! The
problem I'm seeing is that
in my browser I can use
http://localhost/A/B/C 
correctly, but also incorrectly I can view 
http://localhost/A/B/C/A/C
-- 
Robin Becker

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