[Zope] Creating a ZClass within a folder
Aaron Payne
aaron@aaronpayne.com
Tue, 20 Jun 2000 15:07:45 -0400
Hi all,
I am trying to create a zclass instance within a newly added folder.
Here is the sequence of events
1. get name from a form, vendor
2. add a folder with id of vendor
3. within the new folder create a CouponProduct
The following add method (snipped) puts the zclass instance at the same
level as the new folder and not inside of it.
Note:
merchants is a folder containing all of the vendor folders.
The add method is at the same level as the merchant folder.
<dtml-with merchants>
<dtml-call "merchants.manage_addFolder(vendor,'',1)">
<dtml-with "vendor">
<dtml-with "manage_addProduct['CouponProduct']">
<dtml-call "REQUEST.set('id',`ZopeTime().timeTime()`)">
<dtml-call "CouponProductZClass_add(_.None, _, noRedirect=1)">
</dtml-with manage_addProduct-->
</dtml-with vendor>
</dtml-with merchants>
Peacefully,
Aaron