[Zope] help with manage_renameObjects
grissom at qwickconnect.net
grissom at qwickconnect.net
Mon Sep 15 15:36:26 EDT 2003
All,
I have been trying to build a method around the
manage_renameObjects so that I don't have to expose the
users of my application to zmi.
Here is my method rename2:
<dtml-call "manage_renameObjects(ids=[oldlid],
new_ids=[newid])">
<dtml-call "RESPONSE.redirect('deleteForm2')">
and here is the form that calls it deleteform2:
<form action="<!--#var URL0-->" method="POST"
enctype="multipart/form-data">
<dtml-in "objectValues(['File'])">
<input class="form-element" type="text" name="<dtml-var
id>" size="40" value=" <dtml-var id> "><br>
</dtml-in>
<input type=hidden name="ids:tokens:default">
<input class="form-element" type="submit"
name="rename2:method" value=" Save Changes "/>
</form>
When I submit the form I get the following:
Error Type: NameError
Error Value: global name 'oldlid' is not defined
How do I define the global name oldid and newid?
Am I dooing this right in the first place?
Any pointers, examples or urls to docs are welcome.
Thanks,
Rob
More information about the Zope
mailing list