[web2py] 2.18.3 blank logger message window. Mac users please chime in

2019-03-06 Thread Yi Liu
Hi, previously I reported this Rocket error after switching to py3. It is still there and I can tolerate. After recent 2.18.3 update, a new error comes up. This one is more annoying. Symptom

Re: [web2py] Re: how to use a user specific form input

2019-03-06 Thread Maurice Waka
Thanks a lot @Leonel Regards On Wed, 6 Mar 2019, 20:37 Maurice Waka wrote: > More, > this works some how: > db.define_table('weight', > Field('author', 'reference auth_user', > default=auth.user_id, writable=False, readable=False), > Field('weight','double',), >

Re: [web2py] Re: how to use a user specific form input

2019-03-06 Thread Maurice Waka
More, this works some how: db.define_table('weight', Field('author', 'reference auth_user', default=auth.user_id, writable=False, readable=False), Field('weight','double',), Field('created_by','reference auth_user',default = auth.user_id, readable = F

Re: [web2py] Re: how to use a user specific form input

2019-03-06 Thread Maurice Waka
getting an error: Syntaxerror:(keyword can't an expression) On Wed, Mar 6, 2019 at 8:05 PM Leonel Câmara wrote: > Ok that problem is easily solved by adding common_filter to the weight > table > > db.weight._common_filter = lambda query: db.weight.author == auth.user_id > > You can also set the

[web2py] Re: how to use a user specific form input

2019-03-06 Thread Leonel Câmara
Ok that problem is easily solved by adding common_filter to the weight table db.weight._common_filter = lambda query: db.weight.author == auth.user_id You can also set the common filter in your define_table call if you want to keep the weight table lazy. -- Resources: - http://web2py.com - htt

Re: [web2py] Re: how to use a user specific form input

2019-03-06 Thread Lovedie JC
Ok. I the first example after I logged in several users, I noticed that they share the same table result. Meaning that when one user updates, everyone else sees the data. I want the privacy of a user having his/her own result. On Wed, 6 Mar 2019, 17:49 Leonel Câmara wrote: > Do you mean you want

[web2py] Re: how to use a user specific form input

2019-03-06 Thread Leonel Câmara
Do you mean you want to store the author automatically? Or do you want to edit a specific record of weight from a given user? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

Re: [web2py] Re: Debug error

2019-03-06 Thread Maurice Waka
Done. Thanks On Wed, 6 Mar 2019, 16:55 Leonel Câmara wrote: > The error is here: > > T.M("You need to set up and reach a [[breakpoint %s]] to use the debugger!') > > Notice how you open the string with " but then try to close it with '. > > > -- > Resources: > - http://web2py.com > - http://web2

[web2py] how to use a user specific form input

2019-03-06 Thread Maurice Waka
I'm trying to make a tracker that users input data. So far its successful with this code: form = SQLFORM(db.weight, submit_button=T('Submit')).process() How ever, I need an author specific data, but can't get around this code: form = SQLFORM((db.weight.author == auth.user.id).select(db.weight)

[web2py] Re: Debug error

2019-03-06 Thread Leonel Câmara
The error is here: T.M("You need to set up and reach a [[breakpoint %s]] to use the debugger!') Notice how you open the string with " but then try to close it with '. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - ht

[web2py] Debug error

2019-03-06 Thread Maurice Waka
I got this error when trying to debug: Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. Traceback (most recent call last): File "/home/mauricewaka/web2py/gluon/main.py", line 444, in wsgibase serve_controller(request, response, session) File "/home/mauricewaka/web2py/gluon/main.py

[web2py] Re: Web2py Thumbnail App

2019-03-06 Thread Rahul
Hi Jeff, I have an app here (http://www.targetsoft.co.in/artpic) but it isn't open source yet. Besides, I am working heavily to transform it to a new pro level app which would include a social platform and loads of goodies. Also it would be an independent app/site. This app does let the