[Zope] Strange result

Francois-Regis CHALAOUX fchalaou@strasbourg.synthelabo.fr
Thu, 08 Jul 1999 17:05:09 +0100


Hi,

With this little program I can store values from a form to properties of a new folder.
The problem is that only 'firstname' and 'date' are stored :) for each new folder !!

Configuration : Linux RH6.0, intel, Zope 1.10.3.

Tell me why, Tell me Why ?

FR


index_html DTML document
========================


<FORM ACTION="processForm" METHOD="POST">

 <p>Prénom<INPUT TYPE="TEXT" NAME="firstname:string"></p>
 <p>Nom<INPUT TYPE="TEXT" NAME="lastname:string"></p>
 <p>Description<INPUT TYPE="TEXT" NAME="description:string"></p>
 <p>Fréquence<INPUT TYPE="TEXT" NAME="frequency:string"></p>
 <p>N° du PC<INPUT TYPE="TEXT" NAME="pcnumber:string"></p>
 <p>Local<INPUT TYPE="TEXT" NAME="room:string"></p>

  <INPUT TYPE="HIDDEN" NAME="date" VALUE="<!--#var PrincipiaTime fmt=aCommon-->">

  <p><INPUT TYPE="SUBMIT" NAME="submit" VALUE="Validez"></p>

</FORM>


ProcessForm DTML document
==========================

<!--#with "_.namespace(newId=_.str(_.len(previousPosts.objectItems())+1))"-->
<!--#with previousPosts-->
<!--#call "manage_addFolder(newId, title='')"-->
<!--#with "_.namespace(newFolder=_.getitem(_['newId']))"-->


   <!--#call "newFolder.manage_addProperty( 'lastname', _['lastname'], 'string')"--> 
   <!--#call "newFolder.manage_addProperty( 'firstname', _['firstname'], 'string')"-->
   <!--#call "newFolder.manage_addProperty( 'description', _['description'], 'string')"-->
   <!--#call "newFolder.manage_addProperty( 'frequency', _['frequency'], 'string')"-->
   <!--#call "newFolder.manage_addProperty( 'pcnumber', _['pcnumber'], 'string')"-->
   <!--#call "newFolder.manage_addProperty( 'room', _['room'], 'string')"-->
   <!--#call "newFolder.manage_addProperty( 'date', _['date'], 'string')"-->

<!--#/with-->
<!--#/with-->
<!--#/with-->