[Zope-CMF] Extracting data from ZODB

Tim Terlegård timte878@student.liu.se
Mon, 31 Mar 2003 08:53:02 +0200


What's the best way to extract data from a ZODB with a python
script used with cron?

Background:
I have a site using Zope. When someone registers a new user they
get an email alias pointing to some other email address. Every night
I'd like to update the system with the current email aliases. So what
I'd like is to extract username, email and build an /etc/aliases file and
use /bin/newaliases on that. I guess this is someting for cron. How
do I access and extract data from the ZODB without using the ZMI?

Thanks,
Tim