<!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> </DIV>
<DIV><FONT face=Arial size=2>def BuildGarbageCollector(self):</FONT></DIV>
<DIV><FONT face=Arial size=2> folder =
self.restrictedTraverse('Coz/TempImages')
# Coz/TempImages already exists<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>
folder.constructTransientObjectContainer(self, id='GarbageCollector',
timeout_mins=10,
limit=0,<BR>
delNotification=BASEFOLDER+'DeleteTempImage')<BR></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and I get the following error:</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>Traceback (innermost last):<BR> Module
ZPublisher.Publish, line 115, in publish<BR> Module ZPublisher.mapply,
line 88, in mapply<BR> Module ZPublisher.Publish, line 41, in
call_object<BR> Module OFS.DTMLMethod, line 144, in
__call__<BR> - <DTMLMethod at /Coz/WUI/tst><BR> -
URL: http://192.168.123.2:8080/Coz/WUI/tst/manage_main<BR> -
Physical Path: /Coz/WUI/tst<BR> Module DocumentTemplate.DT_String, line
476, in __call__<BR> Module DocumentTemplate.DT_Let, line 75, in
render<BR> Module DocumentTemplate.DT_Util, line 196, in
eval<BR> - __traceback_info__: document_id<BR> Module
<string>, line 1, in <expression><BR> Module
Products.ExternalMethod.ExternalMethod, line 232, in __call__<BR> -
__traceback_info__: (('tst',), {}, None)<BR> Module
/apps/zope/Extensions/cozumo.py, line 212, in ProcessControl<BR> Module
<string>, line 1, in ?<BR> Module /apps/zope/Extensions/cozumo.py,
line 219, in subtst<BR> Module /apps/zope/Extensions/cozumo.py, line 2473,
in BuildGarbageCollector<BR>AttributeError:
constructTransientObjectContainer<BR></DIV></FONT>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> </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>
constructTransientObjectContainer(self, id='GarbageCollector', timeout_mins=10,
limit=0,<BR>
delNotification=BASEFOLDER+'DeleteTempImage')<BR></FONT></DIV>
<DIV><FONT size=2>There is no error, but the TOC is created in the wrong
folder. 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> </DIV>
<DIV><FONT size=2>Can anyone point me in the right direction?!</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Jonathan</FONT></DIV></FONT></BODY></HTML>