[Zope] using capitalize in dtml-var in sqlmethods

Marie Robichon robichon@esrf.fr
Tue, 10 Jun 2003 08:53:21 +0200


At 21:03 06/06/2003 +0200, Dieter Maurer wrote:
>Marie Robichon wrote at 2003-6-6 17:00 +0200:
>  > ...
>  > I would like to capitalize an entry of a form before it goes into my 
> db thus:
>  > ...
>  >   <dtml-var project_title capitalize>,
>
>Try:
>
>      <dtml-sqlvar expr="project_title.capitalize()" column=project_title 
> type=string>
>
>
>Dieter

No this gives :

with or without quotes around column=."....."

Invalid attribute name, "column", for tag <dtml-sqlvar 
expr="project_title.capitalize()" column="project_title" type="string">, on 
line 4 of <string>

Marie
Marie Robichon

Web Task Force
European Synchrotron Radiation Facility
BP 220
38043 Grenoble Cedex
France

http://www.esrf.fr

Tel: (33) 04 76 88 21 86
Fax: (33) 04 76 88 24 27