[Zope] Iterating over objects in temp_folder/session_data

Chris McDonough chrism@zope.com
25 Nov 2002 13:12:59 -0500


See the help system.  The interface for the TransientObjectContainer is
the interface for the temp_folder/session_data object.  It also supports
the (undocumented) items, values, and keys methods, which act just like
the dictionary methods of the same name.  The keys are the browser ids
and the values are the session objects.  This has not been exposed in
the interface because the data container was never meant to be used this
way, but you can do so (caveat emptor).

On Mon, 2002-11-25 at 09:57, Tony McDonald wrote:
> Hi all,
> I'd like to iterate over all transient objects and SESSION variables held=
 in
> those transient objects on our server. That is all the transient objects
> held in temp_folder/session_data.
>=20
> Ideally I'd like to be able to access the variables in the same way that =
we
> access then now, ie <dtml-var "REQUEST['SESSION']['username']"> except it
> wouldn=B9t happen that way would it :)
>=20
> Any snippets around to show how to do this?
>=20
> TIA for any pointers
> Tone.=20
> --=20
> Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
> The Medical School, Newcastle University Tel: +44 191 243 6140
> A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope
>=20
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )