I have make the method for adding a dtml-document to the current folder with
additional data as properties, However, I can not determine the type of the
data, the type information I put in the form :date is removed by zope.
(also, zope display an ugly debug screen if the data type is wrong), HOW can
I get control of the data type?

the code is below, I have manually make all data to string.

CODE : add_dtmlDocument

This method add a dtml-document to the current folder or to what folder
point to
If no id is found in REQUEST one is generated,
the title, data is set to the title and data of the DTML document.
all other data from the form including those hidden data, is set as
properties of the dtmldocument
<dtml-if id>
  <dtml-call "REQUEST.set('id', 'randomstr')">

  <dtml-call "manage_addDTMLDocument(REQUEST['id'], REQUEST['title'],

  <dtml-in "REQUEST.form.keys()">
      <dtml-if "_['sequence-item']!='id' and _['sequence-item']!='data' and
_['sequence-item']!='title' and _['sequence-item']!='add_dtmlDocument'">
[_['sequence-item']], 'string', REQUEST)">
<dtml-comment>  <dtml-call


Kent Sin

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to