[web2py] Re: Creating a CSV backup for the database file in the app

2018-10-24 Thread mostwanted
I got the answer here: https://stackoverflow.com/questions/52976228/accessing-and-importing-data-from-a-private-csv-file-using-os-path-join/52981326#52981326 Regards: Mostwanted On Wednesday, October 24, 2018 at 3:01:52 PM UTC+2, mostwanted wrote: > > I am able to save some information with

Re: [web2py] Re: Auth question

2018-10-24 Thread Rahul
Yes this is in default.py. Please excuse me for my bad code as I am still experimenting with Auth and not totally familiar with the implementation. Is this the right way that I am doing it? or only having user() function is enough ? Thanks, Rahul On Wednesday, October 24, 2018 at 9:45:21 PM

Re: [web2py] Re: Auth question

2018-10-24 Thread Jim S
I'm confused. Is this code in your controller somewhere? # User functions --- def login(): return dict(form=auth.login()) def register(): return dict(form=auth.register()) def retrieve_password(): return dict(form=auth.reset_password()) def logout(): return dict(form=auth.logout()) def

Re: [web2py] Re: Multiples requieres in SQLFORM

2018-10-24 Thread Christian Varas
Thanks Anthony, Sorry is my fault, i didn't knew how to explain the issue... I ended up like this: Field("Grado", default=grados_roca[2], requires=IS_IN_SET([], multiple=False)), and works perfect, now I have a empty set that I can populate in the view Thank you! ☺ Cheers. Chris. El mar.,

[web2py] Re: Creating a CSV backup for the database file in the app

2018-10-24 Thread mostwanted
I am able to save some information with the code you gave but when i try read from that file i get back *None *values: Am i missing something??? *CONTROLLER FOR READING THE FILE:* def viewInfo(): db = DAL('sqlite:memory') db.define_table('Clients', Field('Name'),