<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 found the solution...&nbsp;&nbsp; use _.getitem(name)</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">this took some book&nbsp;flipping through some&nbsp;basic methods&nbsp;of zope modules in 'The Book of ZOPE' by Beehive. A pretty good book for beginners<BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Allen Huang &lt;swapp0@yahoo.com&gt;<BR>To: zope@zope.org<BR>Sent: Sunday, January 7, 2007 5:00:03 PM<BR>Subject: Re: [Zope] saving/creating an object to an exsisting folderish object<BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<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&nbsp;find with a string input.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">If you've read my previous message,&nbsp; </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">&nbsp;</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>&nbsp;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 &lt;lists@zopyx.com&gt;<BR>To: Allen Huang &lt;swapp0@yahoo.com&gt;; Zope &lt;zope@zope.org&gt;<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 &lt;swapp0@yahoo.com&gt; wrote:<BR><BR>&gt; 'name' is a string obj<BR>&gt; I have a exsisting folder<BR>&gt;<BR>&gt; name == folder.getId()<BR>&gt;<BR>&gt; say I want to use manage_addFile('point', 'a point') into this folder<BR>&gt; with the getId() == name<BR>&gt;<BR>&gt; but I can't do name.manage_addFile('point', 'a point') because 'name' is<BR>&gt; a str object<BR>&gt;<BR>&gt; so how do I create a file inside a folder whose id is 'name'?<BR>&gt;<BR>&gt;<BR><BR>here is a german FAQ:<BR><BR>&lt;<A href="http://www.zope.de/dokumentation/faqs/entwicklung/PythonScripts/add_product/?searchterm=manage_add" target=_blank rel=nofollow>http://www.zope.de/dokumentation/faqs/entwicklung/PythonScripts/add_product/?searchterm=manage_add</A>*&gt;<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 
<DIV>_______________________________________________<BR>Zope maillist&nbsp;&nbsp;-&nbsp;&nbsp;Zope@zope.org<BR><A href="http://mail.zope.org/mailman/listinfo/zope" target=_blank>http://mail.zope.org/mailman/listinfo/zope</A><BR>**&nbsp;&nbsp; No cross posts or HTML encoding!&nbsp;&nbsp;**<BR>(Related lists - <BR><A href="http://mail.zope.org/mailman/listinfo/zope-announce" target=_blank>http://mail.zope.org/mailman/listinfo/zope-announce</A><BR><A href="http://mail.zope.org/mailman/listinfo/zope-dev" target=_blank>http://mail.zope.org/mailman/listinfo/zope-dev</A> )</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>