Hiyah zopistas. I am estranged to why i cannot solve this problem by myself. I thought I had finally come to peace with namespaces and objects, but, alas, no.. I have a method which makes a folder and creates users with local roles for it, based on submissions from a form. The problem is, I want to make another object, let's say another folder, within my newly created folder. <dtml-call "REQUEST.set('id',REQUEST.name)"> <dtml-call "acl_users.manage_users(submit='Add',REQUEST=REQUEST)"> <dtml-call "manage_addFolder(REQUEST.name, REQUEST=REQUEST)"> <---with tag to get within the newly created folder goes here----> <dtml-call "manage_addFolder('testfolderwithin', REQUEST=REQUEST)"> <--end the with tag-----> tried all variations of the with tag i could think of, but without success: <dtml-with name> <dtml-with "name"> <dtml-with _['name']> they all return 'name' as a string, not an object, and the 'testfolderwithin' is created in the parent folder, not as a child of 'name'... i also tried using ..-call "name.manage_addFolder .." with all the above variations. Then i get the expected error that 'name' is a string not an object. How can i make Zope understand that i want to reference the newly created 'name' folder (of which we do not know the actual name) as an object and not a string ?? -- Geir B Hansen web-developer/designer geirh@funcom.com http://www.funcom.com
At 11:23 AM 12/22/99 +0100, Geir B Hansen wrote:
Hiyah zopistas.
I am estranged to why i cannot solve this problem by myself. I thought I had finally come to peace with namespaces and objects, but, alas, no..
I have a method which makes a folder and creates users with local roles for it, based on submissions from a form. The problem is, I want to make another object, let's say another folder, within my newly created folder.
<dtml-call "REQUEST.set('id',REQUEST.name)"> <dtml-call "acl_users.manage_users(submit='Add',REQUEST=REQUEST)"> <dtml-call "manage_addFolder(REQUEST.name, REQUEST=REQUEST)">
<---with tag to get within the newly created folder goes here----> <dtml-call "manage_addFolder('testfolderwithin', REQUEST=REQUEST)"> <--end the with tag----->
tried all variations of the with tag i could think of, but without success: <dtml-with name> <dtml-with "name"> <dtml-with _['name']>
I believe you're looking for: <dtml-with "_[name]"> Note the double quotes to indicate an expression, and the lack of single quotes around name, indicating it is a variable rather than a string constant.
participants (2)
-
Geir B Hansen -
Phillip J. Eby