Hi Jonathan
user once, then it is discarded. In order to eliminate many writes to
the zodb (disk), I have decided to put the customized images into a
temporary folder (RAM).
Can't you just put the images in the TOC and let them expire by themselves?
--
jean
- Original Message -
From: Jean Jordaan [EMAIL PROTECTED]
To: zope@zope.org
Sent: Thursday, June 22, 2006 11:32 AM
Subject: Re: [Zope] Problem with constructTransientObjectContainer -
Resolved
Hi Jonathan
user once, then it is discarded. In order to eliminate many writes
Jonathan wrote:
folder = self.restrictedTraverse('Coz/TempImages')
constructTransientObjectContainer(folder, 'GarbageCollector',
timeout_mins=10, limit=0,
delNotification=BASEFOLDER+'DeleteTempImage')
Be careful, I see a lot of hints in there that make me
- Original Message -
From: Chris Withers [EMAIL PROTECTED]
To: Jonathan [EMAIL PROTECTED]
Cc: Chris McDonough [EMAIL PROTECTED]; zope@zope.org
Sent: Wednesday, June 21, 2006 6:25 AM
Subject: Re: [Zope] Problem with constructTransientObjectContainer -
Resolved
Jonathan wrote
I have an external method that is trying to create
a Transient Object Container in a 'temp_folder', as follows:
def BuildGarbageCollector(self):
folder =
self.restrictedTraverse('Coz/TempImages')
# Coz/TempImages already exists
folder.constructTransientObjectContainer(self,
- Original Message -
From: Chris McDonough [EMAIL PROTECTED]
folder.manage_addProducts ['Transience'].constructTransientObjectContainer
might work (assuming constructTransientObjectContainer is the right
constructor name, I didn't check).
Chris, thanks for the idea - I tried it,