[Zope] CoreSessionTracking - looping over items

Chris McDonough chrism@digicool.com
Mon, 23 Jul 2001 19:01:29 -0400


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>

See the SessioningInterfaces.py file for methods callable on session data
objects.

- C

----- Original Message -----
From: "Pawel Lewicki" <lewicki@provider.pl>
To: <zope@zope.org>; "Chris McDonough" <chrism@digicool.com>
Sent: Monday, July 23, 2001 6:49 PM
Subject: Re: [Zope] CoreSessionTracking - looping over items


>
> ----- Original Message -----
> From: "Chris McDonough" <chrism@digicool.com>
> To: "Pawel Lewicki" <lewicki@provider.pl>; <zope@zope.org>
> Sent: Monday, July 23, 2001 10:22 PM
> Subject: Re: [Zope] CoreSessionTracking - looping over items
>
>
> > Hi Pawel,
> >
> > PythonScripts, like DTML, can't access attributes of objects which start
> > with an underscore.  Please read this HowTo in order to understand how
to
> > use external methods:
> > http://www.zope.org/Documentation/How-To/ExternalMethods .
> >
> > As far as returning the whole _sdc object for use in DTML, do this:
> >
> > def getInternalSessionDataContainer(session_data_manager):
> >     return session_data_manager._sdc
> >
> > <dtml-with "getInternalSessionDataContainer(session_data_manager)">
> >    ...
> > </dtml-with>
> >
> > ... where session_data_manager is the session data manager you're using.
> >
> > HTH,
>
> Everything is working now, but I still don't know how to make a loop over
> sessions. I have a container. What should I put into <dtml-in> tag?
>
> Pawel
>
>