On Wednesday, September 14, 2011 8:38:23 AM UTC-4, Web2Py Freak wrote:
>
> Dear All , 
>  am using Webfaction for hosting and am using postgreSQL when i try to 
> add things to the database through the CMS it gives me a limit  the 
> the litters cant be more than 512  , what to do ??


What do you mean by "through the CMS"? Are you talking about appadmin? What 
type of field is it? If it is a string field, the default max is 512 
characters. For a text field, it should be 65536 characters, though there 
may have been a recent bug affecting that (see 
https://groups.google.com/d/topic/web2py/L_m6Ny1PRvo/discussion). You can 
change the max length of a string or text field by specifying the 'length' 
argument in the field definition 
(see http://web2py.com/book/default/chapter/06#Record-Representation). You 
can also enforce length requirements in forms via the IS_LENGTH validator.

Anthony

Reply via email to