OK, let's do it the hard way. ;-) None of this is tested, BTW. The session data container acts just like a dictionary, where the keys are the session id and the values are the session data container. <dtml-let sdc="getInternalSessionDataContainer(session_data_manager)"> <dtml-in "sdc.keys()"> <dtml-let key=sequence-item> <dtml-var "sdc[key].getLastAccessed()"><br> </dtml-let> </dtml-in> </dtml-let> Pawel Lewicki wrote:
----- Original Message ----- From: "Chris McDonough" <chrism@digicool.com> To: "Pawel Lewicki" <lewicki@provider.pl>; <zope@zope.org> Sent: Tuesday, July 24, 2001 12:01 AM Subject: Re: [Zope] CoreSessionTracking - looping over items
It depends what you want to do with each object, but for instance in order to show the last accessed time for each data object, do this:
<dtml-in "getInternalSessionDataContainer(session_data_manager)" mapping> <dtml-var getLastAccessed> </dtml-in>
Of course it was the first thing to try, but after simple: <dtml-in "getInternalSessionDataContainer(session_data_manager)" mapping> </dtml-in>
I got zope error: Error Type: KeyError Error Value: 0
Pawel
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )