On Tue, Apr 20, 2004 at 02:28:04PM -0700, Alec Mitchell wrote:
On Tuesday 20 April 2004 11:39 am, Robb Shecter wrote:
I just discovered the TransientObject. How about I add a Transient Object Container to the temp_folder, which will store my application data? That looks like it'll work...
My data set is read-only, by the way.
I also just discovered how easy it is to get access to the SESSION transient object from a python script, and how you can easily use that. Very nice. I've never used any transient objects myself. If your data is read-only and it is associated with a single user session, then it seems almost ideal to store it in the SESSION object. Even if it were mutable you could probably store it there as long as you set _p_changed explicitly when necessary (not possible from a python script though). Sounds like you are getting pretty deep into Zope rather quickly, enjoy.
Be careful with very heavy use of sessions... check recent threads from Chris McDonough on the subject, either here or on the zope-dev list. There are apparently some problems that crop up with sessions under heavy load. -- Paul Winkler http://www.slinkp.com