[web2py] Re: web2py 2.21.1 is OUT

2020-12-05 Thread Massimo Di Pierro
Will look into this asap.

On Monday, 30 November 2020 at 00:34:48 UTC-8 jpa...@gmail.com wrote:

> Hello, 
>
> I think it is an issue that comes from previous version. It has to do with 
> IS_NOT_IN_DB validator and auth. It worked in 2.17.2 version with no problem
>
> Traceback (most recent call last): 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/restricted.py",
>  
> line 219, in restricted exec(ccode, environment) 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/applications/myapp/controllers/mycontroller.py",
>  
> line 199, in  
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/globals.py",
>  
> line 430, in  self._caller = lambda f: f() 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/tools.py",
>  
> line 3875, in f return action(*a, **b) 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/applications/myapp/controllers/mycrontroller.py",
>  
> line 110, in crear_usuario if form.accepts(request.vars, session): 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/sqlhtml.py",
>  
> line 1790, in accepts **kwargs 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
>  
> line 2162, in accepts status = self._traverse(status, hideerror) 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
>  
> line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
> newstatus 
>   File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
>  
> line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
> newstatus 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
>  
> line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
> newstatus 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
>  
> line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
> newstatus 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
>  
> line 928, in _traverse newstatus = self._validate() 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
>  
> line 1908, in _validate raise Exception(msg) 
> Exception: Validation error, field:email  object at 0x3ebef34de910>
>
> This is the code of the controller where it breaks
>
>
> form = SQLFORM(db.auth_user)
> if form.accepts(request.vars, session):
>
> It also fails in appadmin db.auth_user new record
>
>
> El sábado, 28 de noviembre de 2020 a las 5:22:19 UTC+1, Massimo Di Pierro 
> escribió:
>
>>
>> Hello everybody, 
>>
>> first of all my apologies to you all. I have been absent from this list 
>> for some time, mostly because busy with py4web.
>>
>> I made a new release (2.21.1) of web2py which includes mostly small bug 
>> fixes but no new features. Please report any problem.
>>
>> At this point web2py has been stable for long time so we are not planning 
>> to add features.
>>
>> py4web on the other side is growing fast. It now has Auth, 
>> internationalization, Form, Grid and it is 20x faster than wb2py. pyDAL 
>> woks the in the same way as in web2py. I insist you should check it out and 
>> consider moving you code. It is easy and we will help.
>>
>> Massimo
>>
>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/a6641acd-99b1-4a17-9183-c2961f58eb3an%40googlegroups.com.


[web2py] Re: web2py 2.21.1 is OUT

2020-11-30 Thread Jacinto Parga
Hello, 

I think it is an issue that comes from previous version. It has to do with 
IS_NOT_IN_DB validator and auth. It worked in 2.17.2 version with no problem

Traceback (most recent call last): 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/restricted.py",
 
line 219, in restricted exec(ccode, environment) 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/applications/myapp/controllers/mycontroller.py",
 
line 199, in  
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/globals.py",
 
line 430, in  self._caller = lambda f: f() 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/tools.py",
 
line 3875, in f return action(*a, **b) 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/applications/myapp/controllers/mycrontroller.py",
 
line 110, in crear_usuario if form.accepts(request.vars, session): 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/sqlhtml.py",
 
line 1790, in accepts **kwargs 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
 
line 2162, in accepts status = self._traverse(status, hideerror) 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
 
line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
newstatus 
  File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
 
line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
newstatus 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
 
line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
newstatus 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
 
line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
newstatus 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
 
line 928, in _traverse newstatus = self._validate() 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
 
line 1908, in _validate raise Exception(msg) 
Exception: Validation error, field:email 

This is the code of the controller where it breaks


form = SQLFORM(db.auth_user)
if form.accepts(request.vars, session):

It also fails in appadmin db.auth_user new record


El sábado, 28 de noviembre de 2020 a las 5:22:19 UTC+1, Massimo Di Pierro 
escribió:

>
> Hello everybody, 
>
> first of all my apologies to you all. I have been absent from this list 
> for some time, mostly because busy with py4web.
>
> I made a new release (2.21.1) of web2py which includes mostly small bug 
> fixes but no new features. Please report any problem.
>
> At this point web2py has been stable for long time so we are not planning 
> to add features.
>
> py4web on the other side is growing fast. It now has Auth, 
> internationalization, Form, Grid and it is 20x faster than wb2py. pyDAL 
> woks the in the same way as in web2py. I insist you should check it out and 
> consider moving you code. It is easy and we will help.
>
> Massimo
>
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2698dff8-00b2-4bf0-ae27-3a2f66774a54n%40googlegroups.com.