[Zope] TransientObjectContainer.keys()
Chris McDonough
chrism@ZOPE.COM
06 Mar 2003 19:40:51 -0500
TransientObjectContainer does have a keys method. At least in Zope 2.6
and the Zope trunk it does...
On Thu, 2003-03-06 at 16:53, Shannon -jj Behrens wrote:
> Hi,
>
> I'm using Zope as an application server for some weird, non-Web-related stuff.
> TransientObjectContainer really matches my needs for a particular problem
> (the dict-like interface and the auto-delete feature are quite useful), but
> TransientObjectContainer has no keys() method. I can see why this is the case
> considering sessions, but it's something that I absolutely need for my
> application. I assume my options are:
>
> o Hack Zope and submit a patch.
> o Hack Zope and don't submit a patch, because it won't be accepted.
> o Figure out some (really inconvenient) way to store a list of keys in the
> TransientObjectContainer.
> o Don't use TransientObjectContainer, just use normal Zope objects. Use a cron
> job to implement auto-delete.
>
> I welcome your advice.
>
> Best Regards,
> -jj
>
> --
> Hacker is to software engineer as
> Climbing Mt. Everest is to building a Denny's there.
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )