[Zope] Modification Reminder

abg@comco-inc.com abg@comco-inc.com
Fri, 12 Oct 2001 14:59:23 -0500


Thanks! Worked like a charm.

In addition to not converting the variable I was looking for to an integer,
I didn't have the TinyTable column defined as :int, so I was doubly screwed.

Whoops.

Thanks again.

-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Jim
Washington
Sent: Friday, October 12, 2001 2:28 PM
To: Niclas Kuehne
Cc: Zope Mailinglist
Subject: Re: [Zope] Modification Reminder


Niclas Kuehne wrote:

>I am working on a project that requires people to update their
>(HTML-)documents about once every 6 month. Is there a Zope 
"plug-in" of any
>kind that gives me the opportunity to check all the files in a specific
>folder and it's subfolders for the modification time and send 
an email to
>the user who uploaded/created it if the modification date lies 
back more
>than 6 month? Has anyone any experiences with a problem like 
this and could
>offer a solution? Thank you very much for any help.
>
Here's part of it, which may be called from any folderish object:

PythonScript named last_modification_date(mod_date=None)

if mod_date is None:
  mod_date = context.bobobase_modification_time()
newlist = context.objectValues()
if len(newlist) > 0:
  for k in newlist:
    z = k.bobobase_modification_time()
    if z > mod_date:
      mod_date = z
    if k.isPrincipiaFolderish:
      z = k.last_modification_date(mod_date = mod_date)
    if z > mod_date:
      mod_date = z
else:
  t = context.bobobase_modification_time()
  if t > mod_date:
    mod_date = t
return mod_date

I needed this for a project...

-- Jim Washington


_______________________________________________
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 )