<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I don't have a problem with manage_addProduct(). I know how it works. Creating objects in a folder is not a problem to me.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">My problem is the folderish object which I'm trying to find with a string input.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">If you've read my previous message, </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">the server output error with <STRONG>name.manage_addFile('point', 'a point') </STRONG>because <STRONG>name</STRONG> is a str object and does not have manage_addFile.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I understand this.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">But <STRONG>name</STRONG> is an <STRONG>id</STRONG> to an exsisting folder that I want to access and do operation inside.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">how would I modify <STRONG>name.manage_addFile('point', 'a point')</STRONG> into a working statement?<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Andreas Jung <lists@zopyx.com><BR>To: Allen Huang <swapp0@yahoo.com>; Zope <zope@zope.org><BR>Sent: Sunday, January 7, 2007 4:06:27 PM<BR>Subject: Re: [Zope] saving/creating an object to an exsisting folderish object<BR><BR>
<DIV>--On 7. Januar 2007 00:02:21 -0800 Allen Huang <swapp0@yahoo.com> wrote:<BR><BR>> 'name' is a string obj<BR>> I have a exsisting folder<BR>><BR>> name == folder.getId()<BR>><BR>> say I want to use manage_addFile('point', 'a point') into this folder<BR>> with the getId() == name<BR>><BR>> but I can't do name.manage_addFile('point', 'a point') because 'name' is<BR>> a str object<BR>><BR>> so how do I create a file inside a folder whose id is 'name'?<BR>><BR>><BR><BR>here is a german FAQ:<BR><BR><<A href="http://www.zope.de/dokumentation/faqs/entwicklung/PythonScripts/add_product/?searchterm=manage_add" target=_blank>http://www.zope.de/dokumentation/faqs/entwicklung/PythonScripts/add_product/?searchterm=manage_add</A>*><BR><BR>Google for manage_addProduct() or search on zope.org<BR><BR>-aj</DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>