<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I have an external method that is trying to create 
a Transient Object Container in a 'temp_folder', as follows:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>def BuildGarbageCollector(self):</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; folder = 
self.restrictedTraverse('Coz/TempImages')&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# Coz/TempImages already exists<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
folder.constructTransientObjectContainer(self, id='GarbageCollector', 
timeout_mins=10, 
limit=0,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
delNotification=BASEFOLDER+'DeleteTempImage')<BR></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>and I get the following error:</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2>Traceback (innermost last):<BR>&nbsp; Module 
ZPublisher.Publish, line 115, in publish<BR>&nbsp; Module ZPublisher.mapply, 
line 88, in mapply<BR>&nbsp; Module ZPublisher.Publish, line 41, in 
call_object<BR>&nbsp; Module OFS.DTMLMethod, line 144, in 
__call__<BR>&nbsp;&nbsp; - &lt;DTMLMethod at /Coz/WUI/tst&gt;<BR>&nbsp;&nbsp; - 
URL: http://192.168.123.2:8080/Coz/WUI/tst/manage_main<BR>&nbsp;&nbsp; - 
Physical Path: /Coz/WUI/tst<BR>&nbsp; Module DocumentTemplate.DT_String, line 
476, in __call__<BR>&nbsp; Module DocumentTemplate.DT_Let, line 75, in 
render<BR>&nbsp; Module DocumentTemplate.DT_Util, line 196, in 
eval<BR>&nbsp;&nbsp; - __traceback_info__: document_id<BR>&nbsp; Module 
&lt;string&gt;, line 1, in &lt;expression&gt;<BR>&nbsp; Module 
Products.ExternalMethod.ExternalMethod, line 232, in __call__<BR>&nbsp;&nbsp; - 
__traceback_info__: (('tst',), {}, None)<BR>&nbsp; Module 
/apps/zope/Extensions/cozumo.py, line 212, in ProcessControl<BR>&nbsp; Module 
&lt;string&gt;, line 1, in ?<BR>&nbsp; Module /apps/zope/Extensions/cozumo.py, 
line 219, in subtst<BR>&nbsp; Module /apps/zope/Extensions/cozumo.py, line 2473, 
in BuildGarbageCollector<BR>AttributeError: 
constructTransientObjectContainer<BR></DIV></FONT>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT size=2>If I change the external method as follows (remove the 
reference to 'folder'):</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
constructTransientObjectContainer(self, id='GarbageCollector', timeout_mins=10, 
limit=0,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
delNotification=BASEFOLDER+'DeleteTempImage')<BR></FONT></DIV>
<DIV><FONT size=2>There is no error, but the TOC is created in the wrong 
folder.&nbsp; I can manually (thru the ZMI) add a TOC to the TempImages folder, 
but I can't create one programmatically.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Can anyone point me in the right direction?!</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Thanks,</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Jonathan</FONT></DIV></FONT></BODY></HTML>