[Zope] Product - default Folders/Documents...
Juergen R. Plasser / HEXAGON
plasser@hexagon.at
Thu, 07 Feb 2002 16:53:48 +0100
I have tried copy/paste with this code snippet:
<dtml-with "Control_Panel.Products.Test.defFiles">
<dtml-let clip="manage_copyObjects(objectIds())">
<dtml-with "_.getitem(REQUEST['id'])">
<dtml-call "manage_pasteObjects(clip)">
</dtml-with>
</dtml-let>
</dtml-with>
in the Test_add constructor, but Zope tells me that "The object
editor_browse_files.html does not support this operation ". Seems to be a
right problem...
--On Donnerstag, 07. Februar 2002 15:37 +0100 "Juergen R. Plasser /
HEXAGON" <plasser@hexagon.at> wrote:
> Hi all!
>
> I want to copy some default folders and documents (as well as other
> objects) into the created product (I want to use the ieeditor from
> http://vsbabu.org/webdev/zopedev/ieeditor.html and copy the files
> programmatically)
>
> When I have a folder containing some other folders/documents/objects in
> the product folder in the control panel (puhh) I want to copy this folder
> object to the product instance at creation time (in the product add
> method). How can I implement this with dtml (preferred) or python scripts?
>
> Thanks for your time,
> Juergen
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>