Re: [Zope] saving/creating an object to an exsisting folderish object
'name' is a string obj I have a exsisting folder name == folder.getId() say I want to use manage_addFile('point', 'a point') into this folder with the getId() == name but I can't do name.manage_addFile('point', 'a point') because 'name' is a str object so how do I create a file inside a folder whose id is 'name'? ----- Original Message ---- From: Andreas Jung <lists@zopyx.com> To: Allen Huang <swapp0@yahoo.com>; Zope <zope@zope.org> Sent: Sunday, January 7, 2007 3:39:39 PM Subject: Re: [Zope] saving/creating an object to an exsisting folderish object --On 6. Januar 2007 21:28:06 -0800 Allen Huang <swapp0@yahoo.com> wrote:
is there a method that uses 'name'(a str object) as an argument to call upon this folder?
"to call upon this folder"? No idea what you mean. -aj __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--On 7. Januar 2007 00:02:21 -0800 Allen Huang <swapp0@yahoo.com> wrote:
'name' is a string obj I have a exsisting folder
name == folder.getId()
say I want to use manage_addFile('point', 'a point') into this folder with the getId() == name
but I can't do name.manage_addFile('point', 'a point') because 'name' is a str object
so how do I create a file inside a folder whose id is 'name'?
here is a german FAQ: <http://www.zope.de/dokumentation/faqs/entwicklung/PythonScripts/add_product/?searchterm=manage_add*> Google for manage_addProduct() or search on zope.org -aj
participants (2)
-
Allen Huang -
Andreas Jung