[Zope-CVS] CVS: Products/Transience/help - Transience-change.stx:1.1 Transience-export.stx:1.1
Matthew T. Kromer
matt@zope.com
Mon, 5 Nov 2001 16:48:56 -0500
Update of /cvs-repository/Products/Transience/help
In directory cvs.zope.org:/tmp/cvs-serv27689/help
Added Files:
Transience-change.stx Transience-export.stx
Log Message:
Updated help files
=== Added File Products/Transience/help/Transience-change.stx ===
TransientObjectContainer - Change
Transient Object Containers
A TransientObjectContainer contains objects which will expire after
a given period of time. A TransientObjectContainer is used by
SessionDataMangers to store session information.
To change a TransientObjectContainer, specify the following:
- *title*
The title of the object.
- **timeout_minutes**
The minimum number of minutes that objects in the container will
persist for. Objects in the container are passively deleted, so
they may not be deleted exactly after timeout_minutes elapses.
- *addNotification*
The name of an object to receive notifications when objects are
added to the TransientObjectContainer. See NotificationTargets.
- *delNotification*
The name of an object to receive notifications when objects are
deleted from the TransientObjectContainer. See NotificationTargets.
Notification Targets
A NotificationTarget is a callable (a bound method, function, or
named Zope object) which is called when an object is added or removed
from a TransientObjectContainer.
NotificationTargets are called with two arguments, the first being
the item being added or removed from the container, and the second
being the container itself. Within Zope, the container will be
acquisition wrapped, allowing the container to be used as a context
to reference other Zope objects.
See Also
- "Transient Objects":Transience.stx
- "Transience API":TransienceInterfaces.py
=== Added File Products/Transience/help/Transience-export.stx ===
TransientObjectContainer - Import/Export
You may import or export transient objects *inside* a transient object
container.
For exporting, click the **Export Transient Objects** button.
The data in the transient object container will be saved to a special
file 'var/transientobjects.zexp' in your Zope directory.
For importing, click the **Import Transient Objects** button.
The data in the special file 'var/transientobjects.zexp' will be read,
creating the transient objects in your transient object container.
See Also
- "Transient Object Containers":Transience.stx