Normally : "folder_F.object_O.manage_addProperty(id,file,content_type)" How to change "object_O" with another variable "var_V" ?
On Fri, 26 May 2000, calvin33 wrote:
Normally : "folder_F.object_O.manage_addProperty(id,file,content_type)"
How to change "object_O" with another variable "var_V" ?
I'm assuming you want object_O to be specified elsewhere? Now, this is just a gut reaction (not tested), but have you tried: folder_F[object_name_string].manage_addProperty(id, file, content_type)" ? -- Have a better one, Curtis. <dtml-var standard_work_disclaimer>
calvin33 wrote:
Normally : "folder_F.object_O.manage_addProperty(id,file,content_type)"
How to change "object_O" with another variable "var_V" ?
Have you tried <untested> <dtml-call "folder_F.getitem('var_V').manager_addProperty(id, file, content_type)"> </untested> or <untested> <dtml-with "<whatever>.<whatever>"> <dtml-call "_.getitem('var_V').manage_<whatever>"> </dtml-with> </untested> Sorry, no time to test, but they should work Rik, (who is wondering why he is answering this getitem thing at least three times a week)
participants (3)
-
calvin33 -
Curtis Maloney -
Rik Hoekstra