Re: [web2py] Re: Auto-generate PUT and DELETE methods

2020-08-24 Thread AGRogers
Hi Rahul I haven't done much at all with the rest api. But I would have assumed that you would need to decorate it with @requires to control who can access what. I can't see that in your code. On Tue, 25 Aug 2020, 3:06 am Rahul, wrote: > Hi All, >Not sure if this is the right

[web2py] Re: Auto-generate PUT and DELETE methods

2020-08-24 Thread Rahul
Hi All, Not sure if this is the right thread to put this up -- I was trying to use this code for rest/json -- however -- with slight changes and wrong parameters in the URL my entire table got exposed -- Here is the code -- *CONTROLLER : DEFAULT.PY CODE* ## API ---

[web2py] Re: fake_migrate=True is not working

2020-08-24 Thread Clemens
Hi, I'm not very deep in your issue. But opening your appconfig.ini with my default editor shows that the apostrophe in your authors value could be a problem: [image: Untitled.jpg] Thus, just delete it and have try. If it doesn't change anything, please let me know and I will have a closer

[web2py] fake_migrate=True is not working

2020-08-24 Thread Andrea Fae'
Hello, if I chose migrate= False and fake_migrate=True the .tables in databases folder are not created. Why? I'm attaching appconfig.ini and py.db and my custom db db_asset.py Thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: Add to home screen

2020-08-24 Thread mostwanted
Hey guys i'm still struggling with the *add to home screen* prompt, please look at my code above & suggest something. Help me to get this to work. I really need this functionality, please help me. Regards; Mostwanted On Friday, May 29, 2020 at 12:46:38 AM UTC+2 mostwanted wrote: > Ok! So far

[web2py] Re: formatting a field in SQLTABLE

2020-08-24 Thread 'Annet' via web2py-users
Maybe use the represent attribute in the field constructor db.table.field.represent = lambda val, row: function()) and use: locale.format('%10.2f', val, grouping=True) Best, Annet Op maandag 24 augustus 2020 om 07:43:15 UTC+2 schreef Vlad: > I've got the rows to be displayed in a table: > >

Re: [web2py] Re: How to debug "lost password"

2020-08-24 Thread Jon Subscripted
Hi Jim, Actually I thought I did not need to "send" the mail myself. I thought the framework took care of it. But I think I'll try to send the email in some part of the application to test if everything is ok. Thanks for the suggestion Jim. I'll try it and get back to you. Thanks, Jon. On Sat,