automatic (un-)pickling / overwriting self
John J Lee
jjl at pobox.com
Sun Mar 9 19:32:38 CET 2003
On Fri, 7 Mar 2003, Alex Martelli wrote:
> Clemens Hermann wrote:
> > while working on a cgi-admin interface i got a little problem with
> > pickle.
> > I use a hierarchical class structure to keep users, permissions, etc.
> > As the amount of data is quite small i just pickle the top class
> > instance that references the rest.
> So far so good...
> > I am looking for a way to automatically pickle the top class whenever
> > one of the referenced object changes.
Sounds like what you *think* you want would be ZODB.
> That's pretty hard indeed, to put it mildly; you'd basically have
> to wrap every "referenced object" into the Observed side of an
> Observed/Observer patter, catch EVERY change (a VERY tall order
> indeed, with the amount of indirections being unbounded) and do
> a callback to the top-class Observer.
... or use ZODB.
Actually, what you *really* may be something like Zope or webware.
(caveat: not entirely sure I understand what you mean by cgi-admin
More information about the Python-list