Acquisition

----- Original Message ----- 
From: "Peter Bengtsson" <[EMAIL PROTECTED]>
To: "Phil Harris" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, August 16, 2000 10:03 AM
Subject: Re: [Zope] DTML: fetch an object by its url?


> 
> What's the difference between:
> <dtml-with "_.string.split(URL,'/')[-2]"> (for current folder)
> or <dtml-with "_.string.split(URL,'/')[-1]"> (for current object)
> 
> and
> 
> 
> > <dtml-var "REQUEST.resolve_url('/some/folder/and/path/wotsit')">
> ??
> 
> 
> > 
> > ----- Original Message ----- 
> > From: "Scott Shepherd" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 16, 2000 5:06 AM
> > Subject: [Zope] DTML: fetch an object by its url?
> > 
> > 
> > > In DTML is it possible to get an object using its url? Something like
> > > 
> > >     <dtml-with "get_object( '/some/local/url' )">...</dtml-with>
> > > 
> > > Similar to
> > > 
> > >     <dtml-with "_.getitem( name )">...</dtml-with>
> > > 
> > > but what I have is the object's zserver url, not its name in the 
> > > current namespace.
> > > 
> > > TIA,
> > > Scott
> > > 
> > > _______________________________________________
> > > 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 )
> > 
> 
> 
> _______________________________________________
> 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