<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">dear Andreas</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">make my question short.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I have a string object 'name' and it is a name of an exsiting folder</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">is there a method that uses 'name'(a str object) as an argument to call upon this folder? </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"> </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">----- Original Message ----<BR>From: Andreas Jung <lists@zopyx.com><BR>To: Allen Huang <swapp0@yahoo.com>; Zope <zope@zope.org><BR>Sent: Saturday, January 6, 2007 10:20:16 PM<BR>Subject: Re: [Zope] saving/creating an object to an exsisting folderish object<BR><BR>
<DIV>--On 6. Januar 2007 06:17:40 -0800 Allen Huang <swapp0@yahoo.com> wrote:<BR><BR>> This is a problem a got a lot and I never able to seem to solve it.<BR>> I want save or create a object to a specific folder or other folderish<BR>> object, I ask the user for the id of that folder or folderish<BR>> object I store the id name in a variable 'name'<BR>><BR>> the problem is I know the type of the folder or folderish object but<BR>> 'name' is a str object and I can't use command like name.manage_addFile().<BR>> The server just tells me that name is a str which contains no function<BR>> manage_addFile().<BR>><BR>> I always end up doing a<BR>> <dtml-in "objectValues(['Folder'])"><BR>> <dtml-if "getId() ==
name"><BR>> do something....<BR>> </dtml-if><BR>> </dtml-in><BR>><BR>><BR><BR>Please take the advice and learn Python. Such logic should be implemented<BR>in Python and *not* in DTML. DTML/ZPT are for presentation *only*, not for<BR>implementing business logic.<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>