Sin Hang Kin writes:
> 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 ZPublisher uses ":<type>" suffixes in argument names (and
thereby form field names) to convert the (necessarily) string
content to the appropiate type.
And, of cause, it raises an exception, if this is impossible.
If you want do the conversion by yourself, use a different
suffix, e.g. "__<type>". Maybe "-<type>" or something
in the same spirit will work, too.
Zope maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -