[Zope] convert a String ...

2001-01-14 Thread Marc Fischer
Hi, how is it possible to convert a string into my own zclass type? I get a String from a form and want to do some operation like string.manage_addFile(... on it. So what to do ??? Perhaps some out there is able to help ... Thanks, Marc ___ Zope

Re: [Zope] convert a String ...

2001-01-14 Thread Peter Bengtsson
To "convert" a string to an object, you use the getitem() function. ## example 1: Your: dtml-var last_name #returns: Your: Peter Bengtsson ## example 2: dtml-call "REQUEST.set('var_to_go_and_get','last_name')" Your: dtml-var "_.getitem(var_to_go_and_get)" # returns: Your: Peter Bengtsson

Re: [Zope] convert a String ...

2001-01-14 Thread Dieter Maurer
Marc Fischer writes: how is it possible to convert a string into my own zclass type? I get a String from a form and want to do some operation like string.manage_addFile(... on it. So what to do ??? Perhaps some out there is able to help ... "_.getitem(string)" converts a string into an