[Zope] Generate edito form from dtmlDocument : property type

Sin Hang Kin kentsin@poboxes.com
Sat, 20 May 2000 18:36:04 +0800


Hello,

I have the method form_dtmlDocument which generate the data entry form from
an existing dtmldocument, How can I determine the type of the properties?
Moreover, if the property is expected as list, how can I convert it into
multiple input tag?

CODE : form_dtmlDocument

<dtml-var standard_html_header>
<h2><dtml-var title_or_id> <dtml-var document_title></h2>
<form action="<dtml-var URL1 missing>" method="post">
<dtml-in "propertyIds()">
   <b><dtml-var "_['sequence-item']"> : </b>
   <input type="text" name="<dtml-var "_['sequence-item']">"
value="<dtml-var "_[_['sequence-item']]">" size="50">
   <br>
</dtml-in>
<textarea cols="50" rows="4">
<dtml-var this>
</textarea><br>


<input type="submit" name="edit_dtmlDocument:method" value="OK">
<input type="submit" name="dump_request:method" value="debug">
</form>

<dtml-var standard_html_footer>
Rgs,

Kent Sin
---------------------------------
kentsin.weblogs.com
kentsin.imeme.net