[Zope] Building a cache on an object
Anthony Pfrunder
s341625@student.uq.edu.au
Fri, 30 Jul 1999 15:51:05 +1000 (GMT+1000)
On Thu, 29 Jul 1999, A.M. Kuchling wrote:
> I'd like to construct an associative cache of information, which would
> basically be a dictionary. My first thought was to create a property
> that was a dictionary, and store values in the dictionary.
> Unfortunately, none of the allowable property types corresponds to a
> dictionary. Can I add a dictionary directly to an object such as a
> folder or DTML method?
>
No, but you can subclass an object via zclasses and construct a custom
property interface ;) Look for my forth-coming "policy suggestions" post
on zope-dev
> --
> A.M. Kuchling http://starship.python.net/crew/amk/
> The world is a tragedy to those who feel, but a comedy to those who think.
> -- Horace Walpole
Cheers,
Anthony Pfrunder
Zope Community Development Partner