It is a bug in validator with numbers where int(float(x))!=int(x).
I no fixed it in trunk. There may still be problems with the fact that this 
number is so large that may not be store in a database integer and requires 
a database big-int. 

I also changed the default validator for integers to be between -2**31 and 
2**31-1 as correct for SQL integers.

On Friday, 11 October 2013 13:20:28 UTC-5, Stefan Pochmann wrote:
>
> I'm getting an "enter an integer between -1e+100 and 1e+100" error message 
> when trying to enter 77777777777777777 into an integer form field in the 
> appadmin. Screenshot:
> http://tinypic.com/r/minx2c/5
> Clearly the number is in that range, what's wrong? I'm doing the "images" 
> example from chapter 3 of the book and just added an integer field out of 
> curiosity. The changed part of my db.py (I only added the inttest line):
>
> db.define_table('post',
>    Field('image_id', 'reference image'),
>    Field('author'),
>    Field('email'),
>    Field('inttest', 'integer'),
>    Field('body', 'text'))
>
> Also, the appadmin form field always jumps the cursor to the end, I can't 
> edit digits in the beginning or use ctrl-a (for following with ctrl-c). 
> This is rather annoying.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to