[Zope] manage_delObjects on ZopeTime

Dr. Anthony Monta amonta@regents.state.la.us
Mon, 18 Sep 2000 14:26:08 -0500


Hi everyone,

I'm rolling my own resume'-posting application for Zope 2.2.x using custom 
ZClasses and methods, and I have a question: what's the DTML for making 
these objects auto-delete after x number of days?

I think I have to tell a method displaying the resume's to apply 
manage_delObjects to any invoked resume'-class instance if thirty days (or 
hour equivalent) from the time of that object's creation has elapsed.  But 
I'm unsure of the syntax and whether there's a danger in using a public 
display method to delete items this way.

<dtml-with Resumes>
   <dtml-in "objectValues(['Resume'])">
     <dtml-with sequence-item>
       <dtml-if "bobobase_modification_time...
         <dtml-call manage_delObjects...
           <dtml-else>
             <dtml-var index_html>
etc.

Could someone point me (and other fledglings) in the right direction?

Many thanks,
Anthony

~~~~~~~~~~~~~~~~
Anthony Brietz Monta
Coordinator of Curricular Assessment & Academic Reporting
Louisiana Board of Regents
150 Third Street, Suite 129
Baton Rouge, LA 70801-1389
225.342.4253, ext. 143
amonta@regents.state.la.us