[Zope] get an object based on URL???

Chris McDonough chrism@digicool.com
Sat, 22 Apr 2000 16:07:23 -0400 (EDT)


Geez, a while back we had a question about this from somebody else which
Evan Simpson solved (before he worked for DC, back when he was a lounge
singer).

You may want to search the mail archives for messages between me, Evan
Simpson, and errrrr.... somebody else... wait here it is...

Date: Mon, 6 Dec 1999 09:45:24 -0600
From: Evan Simpson evan@tokenexchange.com
Subject: [Zope] String to object ID

Look at that whole thread.  Then read about _.string.split (ie. Python's
'string.split' function).

You may want to rethink your way of doing this, however.  Are you sure you
need to use a URL-style string to reference the object?

On Sat, 22 Apr 2000, Kevin Howe wrote:

> I want to be able to take a URL and read the properties of that object:
> 
> You can't do it directly in a WITH tag
> 
> Example:
>          <!--#with "http://domain/my/object"-->
> 
> but it seems like the whole premise of Zope is translating URLs into
> Objects, is there a routine that can be used in DTML to translate the URL to
> an object reference?
> 
> Example:
>         <!--#with " ObjectFromURL( 'http://domain/my/object' ) "-->
>             <!--#var id --><br>
>         <!--#/with-->
> 
> 
> Thanks!
> kh
> 
> 
> 
> _______________________________________________
> 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 )
>