I am attempting to use a file management button to move objects
from one directory to another. Currently I am using a submit button which
passes to a dtml method which passes the object id to
the python script which cuts and pastes the object to the correct spot. For
some reason this does not work.
The DTML method is as follows:
<dtml-if release_box>
<dtml-in release_box>
<dtml-let
temp=sequence-item>
<dtml-call expr="archive_items(release_box = temp)">
</dtml-let>
</dtml-in>
</dtml-if>
<dtml-call "RESPONSE.redirect('manage_main')">
Where the variable release_box represents a set of checkboxes.
The python script is as follows:
cb_copy_data = context.manage_cutObjects(ids=[release_box])
return context.archive.manage_pasteObjects(cb_copy_data)
with the
parameter list being:
release_box
If you have any idea what might be wrong, let me know
- Alex