[Zope] Restricting URL access to objects that are not complete web pages
Phil Harris
phil.harris@zope.co.uk
Thu, 21 Sep 2000 10:16:55 +0100
Chris, Stephen,
Wouldn't an external method something like the following work for the
moment?
def getobj(self,url=None):
if url==None:
return None
return self.restrictedTraverse(url)
so in dtml you can do something like:
<dtml-var "getobj(url='/home/myfolder/index_html')">
or
<dtml-var "getobj(url='/home/myfolder/index_html').absolute_url()">
etc.
maybe?!!?
Phil
phil.harris@zope.co.uk
----- Original Message -----
From: "Chris Withers" <chrisw@nipltd.com>
To: "Stephen Simmons" <stephen.simmons@healtharena.net>
Cc: <zope@zope.org>
Sent: Thursday, September 21, 2000 9:56 AM
Subject: Re: [Zope] Restricting URL access to objects that are not complete
web pages
> Stephen Simmons wrote:
> > 3. Sections are only used as building blocks for other documents so it
must
> > not be possible to retrieve a section via a URL.
>
> That is not currently possible in Zope and is one of my pet peaves :-S
>
> See the 'Protocol Accessibility' proposal on dev.zope.org for a possible
> solution...
>
> cheers,
>
> Chris
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> 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 )