[web2py] How do I solve an image validation error?

2019-10-06 Thread Maurice Waka
I was looking for a good image app and came across this link . After uploading it, on trying to upload an image, I get this error: Traceback (most recent call last): File "/home/mauricewaka/web2py/gluon/restricted.py",

[web2py] Re: py4web has now a grid ...

2019-10-06 Thread Massimo Di Pierro
I do not know. Try check the JS console for errors. Maybe it is missing the js components. On Sunday, 15 September 2019 14:19:37 UTC-7, isi_jca wrote: > > Hi! > > This is output from console and the browser is Google Chrome VersiĆ³n > 66.0.3359.181 (Build oficial) (64 bits) > > [jalbornoz@QuoVadi

Re: [web2py] How do I solve an image validation error?

2019-10-06 Thread Maurice Waka
Found out it's was a python 3.7 vs 2.7 when dealing with syringIO. I managed to change code at module images.py to try: from StringIO import StringIO except ImportError: from io import StringIO This was instead of import cStringIO Now a new form error, error comes still when uploading : i

[web2py] Re: xmlrpc python3 error

2019-10-06 Thread Dave S
On Friday, September 27, 2019 at 6:39:00 AM UTC-7, Mark wrote: > > I am using either Rocket or Azure, and get the same error. > > Yes, there is a ticket, which I didn't realize before: > > Traceback (most recent call last): > File "R:\web2py\gluon\restricted.py", line 219, in restricted > e

[web2py] Re: permissions question

2019-10-06 Thread Dave S
On Friday, September 27, 2019 at 12:55:47 PM UTC-7, Yoel Benitez Fonseca wrote: > > h! > > With `auth.accessible_query` u get the rows accessible to a user, how to > do the inverse ? > > I want to know the users who have a given permission > Try auth.has_membership(group_id='agents') , per th

[web2py] auth_membership grid with both, group id and group roles displayed when adding a new record

2019-10-06 Thread Vlad
the following line works perfectly: grid = SQLFORM.grid(db.auth_membership) by "perfect" in the context, I mean that when I click "add record", the group id field contains both values, group id and group role (for example, "Manager (4)", "Loyal customer (9)", ... However, I want to limit wha

[web2py] Re: Db Creation Error Message : Adapter not found for sqLite

2019-10-06 Thread Dave S
On Saturday, September 28, 2019 at 11:30:07 AM UTC-7, dangeo wrote: > > Hello to All, > > I new to the web2py platform particularly and web development in general. > Using the web2py book (page 91) as a learning guide i'm recreating the > image blog exercise. However, after creation I'm getting