RESIZE requires PIL installed. The windows binary version of web2py does
not come with PIL. You have to install python 2.7. Then install PIL. Then
run web2py from source.
Massimo
On Saturday, 26 December 2015 09:19:37 UTC-6, RAGHIB R wrote:
>
> db1.py reads as:
>
> from images import RESIZE
> db.define_table('info',
>
> Field('info_id',default=auth.user_id,writable=False,readable=False),
> Field('first_name'),
> Field('last_name'),
> Field('dp','upload'),
> Field('back','upload',requires=RESIZE(100,100)),
> Field('hometown'),
> Field('country'),
>
> Field('dob','datetime',default=request.now,requires=IS_DATE(format=('%d-%m-%Y'))),
> Field('about','text'),
> )
>
>
> eroor ticket says:
> Error ticket for "Site"Ticket ID
>
> 127.0.0.1.2015-12-26.20-29-44.a454583a-f445-435a-a8da-788f2d417165
> <type 'exceptions.Exception'> Validation error, field:back
> <applications.Site.modules.images.RESIZE object at 0x08417310>Version
> web2py™Version 2.12.3-stable+timestamp.2015.08.19.00.18.03PythonPython
> 2.7.9: D:\web2py\web2py.exe (prefix: )
>
>
>
>
>
>
> and
> images.py is same as D:\web2py\gluon\contrib\imageutils.py
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.