[Zope] Unable to locate object by ID
Paul Winkler
pw_lists at slinkp.com
Wed May 19 15:43:41 EDT 2004
On Wed, May 19, 2004 at 12:52:21PM -0400, Lapointe, David wrote:
> I'm a fairly experienced programmer/admin, but relatively new to zope (have
> been forced to pick it up to manage a legacy system written in v 2.3). I'm
> having a very confusing problem. Essentially I have some dtml code which is
> used to remove certain objects. The code is as follows:
>
>
>
> <dtml-var manage_page_header>
>
> <dtml-var manage_tabs>
>
> <h2><dtml-var document_title></h2>
>
> <dtml-call "_.getitem('lhCatalog').uncatalog_object(REQUEST['hoursid'])">
I think the arg to uncatalog_object() needs to be a full path,
not just an id.
e.g. something like (untested)
<dtml-let catalog="_.getitem('lhCatalog')"
path="'/'.join(_.getitem(REQUEST['hoursid']).getPhysicalPath())">
<dtml-call "catalog.uncatalog_object(path)">
</dtml-let>
... assuming the objects in question are in the current folder.
--
Paul Winkler
http://www.slinkp.com
More information about the Zope
mailing list