[Zope-CMF] Creating an object
Ian Ford
iford@US.NET
Wed, 5 Sep 2001 12:59:16 -0700
I am trying to create an object but I need to store it in a directory
called purchase_orders.
I am automaticaly creating the id for the object but I am not sure how
to store it in the purchase_orders directory.
CODE SAMPLE:
<dtml-var standard_html_header>
<dtml-call "REQUEST.set('user',_.SecurityGetUser().getUserName())">
<dtml-call "REQUEST.set('cdate',ZopeTime())">
<form name=3D"create_doc" action=3D"purchase_orders/invokeFactory"
method=3D"GET">
<input type=3D"hidden" name=3D"id" value=3D"po<dtml-var cdate
fmt=3D"%Y%m%d%S">&dtml-user;">
<table width=3D"50%" cellpading=3D"0" cellspacing=3D"0" border=3D"0">
<tr valign=3D"top">
<td> <input type=3D"radio" name=3D"type_name" value=3D"po"> Create =
PO</td>
</tr>
<tr>
<td><input type=3D"submit" name=3D"create_po" value=3D"Create a =
PO"></td>
</tr>
</table>
</form>
<dtml-var standard_html_footer>
END CODE:
Thank you,
Ian Ford