[Zope] ZODB and persistent objects
Les Ferguson
lhf at xtra.co.nz
Sat Aug 21 21:03:29 EDT 2004
I have searched and read a whole bunch of stuff on ZODB. Why do all the
examples I can google for seem to resort to telling us how to implement
ZODB externally from Zope? Where is some good old fashioned example
code for implementing a simple collection of objects within Zope?
I want to keep a small collection of data, the last 10 customer id's
that were viewed/updated, with a timestamp and maybe a brief name field.
This collection will be managed by an object that can do, eg.
recentCust.Add(Customer_id, BriefName)
recentCust.GetList()
I thought rather than poking this small dataset into MySQL, I could just
keep it in ZODB as a queue-type collection of data.
What is the best approach for achieving this? Do I create a folder and
store persistent objects in it of some kind, or are there more suitable
built-in queue classes or dictionary type features already in the Zope API?
--
Les Ferguson
Software developer
Waitakere, NZ
More information about the Zope
mailing list