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
[EMAIL PROTECTED]

----- Original Message -----
From: "Chris Withers" <[EMAIL PROTECTED]>
To: "Stephen Simmons" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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  -  [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 )


_______________________________________________
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 )

Reply via email to