logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Bug report: msg#00002

Subject: Re: Bug report
> I have this table at a PostgreSQL Server :
>
> CREATE TABLE cursos
> (
>   id serial NOT NULL,
>   nombre varchar(1000) NOT NULL,
>   especialidad varchar(1000),
>   horario varchar(255),
>   lugar varchar(255),
>   horaslectivas int2,
>   perfilparticipantes varchar(255),
>   plazas int2,
>   precio numeric(6,2),
>   url varchar(1000),
>   organizador int4 NOT NULL,
>   idxfti tsvector,
>   fechadesde date NOT NULL,
>   fechahasta date NOT NULL,
>   CONSTRAINT cursos_pkey PRIMARY KEY (id),
>   CONSTRAINT "$1" FOREIGN KEY (organizador) REFERENCES organizadores
> (id) ON
> UPDATE RESTRICT ON DELETE RESTRICT
> ) WITH OIDS;
>
> I've added all fields to a ZetaDB Table Manager inside a ZetaDB
> Application with the database connection correctly configured.
>
> I've found and error in every generated form, in textareas for varchar
> fields. The error is than the name of each text area is fieldname:text.
>
> An example: For 'nombre varchar(1000) NOT NULL', the generated textarea
> is 'textarea name="nombre:text" cols="80" rows="5" wrap="off"
> onchange="set_changed()"', so the validation javascript fail when
> checking for f.nombre.value
>

Ups, yes, there is a problem with textarea and mandatory fields.  The name
of fieldname:text is right, this allows Zope to handle multiline fields
OK.  The problem is in validation javascript, which doesn't work fine in
this case.

I will fix this as soon as poosible in CVS and send a e-mail to the list

Thanks for the report

Santi Camps
http://zetadb.sourceforge.net






-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click


<Prev in Thread] Current Thread [Next in Thread>