Seems like a bug. You can report it 
here: http://code.google.com/p/web2py/issues/list

On Wednesday, October 12, 2011 4:55:44 AM UTC-4, apple wrote:
>
> Is this a bug then? 
>
> I have tried string and text fields; specifying length and using 
> IS_LENGTH. In every case it seems to generate strings longer than 
> specified. 
>
> On Oct 11, 4:30 pm, Anthony <abas...@gmail.com> wrote: 
> > On Tuesday, October 11, 2011 10:49:59 AM UTC-4, apple wrote: 
> > 
> > > Have just started using "populate" which is a really useful tool. 
> > > However I have a couple of questions: 
> > 
> > > 1) It seems to ignore the length specified for string fields. For 
> > > example it fills my postcode field with 100 characters of text despite 
> > > it having length of 8. Is there a way of restricting the text to 8 
> > > characters? 
> > 
> > Looking at the code, it appears it should respect the length attribute of 
> a 
> > string field. Not sure what the problem is. 
> > 
> > 
> > 
> > > 2) Sometimes it fails with a sqlite error saying "column name is not 
> > > unique". Does it not recognise unique constraints? 
> > 
> > It doesn't appear to recognize unique constraints. 
> > 
> > Anthony

Reply via email to