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'])">

 

<dtml-call "manage_delObjects(REQUEST['hoursid'],REQUEST)">

Hours entry has been removed.

<dtml-var manage_page_footer>

 

When pages are rendered, they look in the catalog and find the object fine.  When I call this method, however, it tells me the objects do not exist (using what appears to be the same id).  Is it possible that there are two versions of the catalog, or that the catalog is caching objects in some way?

 

Any help on where to start debuggin this is much appreciated.  (I'm using v2.4).