Re: [Zope] Problem with constructTransientObjectContainer - Resolved

2006-06-22 Thread Jean Jordaan
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

Re: [Zope] Problem with constructTransientObjectContainer - Resolved

2006-06-22 Thread Jonathan
- 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

Re: [Zope] Problem with constructTransientObjectContainer - Resolved

2006-06-21 Thread Chris Withers
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

Re: [Zope] Problem with constructTransientObjectContainer - Resolved

2006-06-21 Thread Jonathan
- 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

[Zope] Problem with constructTransientObjectContainer

2006-06-20 Thread Jonathan
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,

Re: [Zope] Problem with constructTransientObjectContainer - Resolved

2006-06-20 Thread Jonathan
- 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,