[web2py] Re: CREATING A SCHEDULED DATABASE BACKUP

2017-11-24 Thread Dave S
On Friday, November 24, 2017 at 8:53:59 PM UTC-8, Dave S wrote: > > > > On Friday, November 24, 2017 at 1:05:22 AM UTC-8, mostwanted wrote: >> >> I have two questions but its basically about database backups >> > > > > *QUESTION 2:* > After creating creating my database backups how can i re-cre

[web2py] Re: Pydal upload compatibility with pyfilesystem

2017-11-24 Thread Yangbo Xu
Anyone has any suggestion on some workaround? Thanks in advance! Yangbo On Saturday, 18 November 2017 12:09:55 UTC+8, Yangbo Xu wrote: > > Hello, > > > I have a question regarding how Pydal can accept remote filesystem thru > pyfilesystem. > > According to the web2py documentation > > > http://w

[web2py] Re: CREATING A SCHEDULED DATABASE BACKUP

2017-11-24 Thread Dave S
On Friday, November 24, 2017 at 1:05:22 AM UTC-8, mostwanted wrote: > > I have two questions but its basically about database backups > > *QUESTION 1.* > The sleep will never be executed, you have it after the return. But what would you be watching? If you use a browser to invoke the backup f

Re: [web2py] Re: Retrieve database item using print vs return

2017-11-24 Thread Dave S
On Thursday, November 23, 2017 at 4:38:44 AM UTC-8, Maurice Waka wrote: > > 4 lines in the html file is a second different way I was trying to get the > result, the same I also did in the controller to get the result:quiz. > I re-did the app and used the same code but unfortunately am still gett

[web2py] Re: How to distribute your applications as binaries¶

2017-11-24 Thread Dave S
On Thursday, November 23, 2017 at 12:23:34 AM UTC-8, mostwanted wrote: > > Isn't there a way to eliminate the web2py screen that prompts me to *choose > a password, *can't i specify the password somewhere in the batch file so > th screen doesn't have to pop up requesting me to choose a password

Re: [web2py] Re: scheduler: force another try, count tries

2017-11-24 Thread Dave S
On Thursday, November 23, 2017 at 12:07:10 AM UTC-8, mweissen wrote: > > Thank you - but I think I should explain my question with an example. > Let's say this is my task in scheduler.py: > > def mytask(): > res = mail.send(some arguments...) > if res: > db.emailprotocol.insert(

Re: [web2py] Re: Web2Py + VueJS SPA (Webpack)

2017-11-24 Thread Richard Vézina
For me, having a good supported (backward) path to pick ractive/vue/angular (to big for my need) would be nice... Massimo's has made w3 if I recall, but I rapidly feel lost with ractive.js... I try vue.js and find it easier to pick it up. But there is a lot of boiler plate to implement to levrage

Re: [web2py] Double registration form (one in controller, two in view)

2017-11-24 Thread Richard Vézina
If you reuse the user function you can add an if statement : if request.args(1-2-3) or request.vars.somevarname == something particular in your url depending of the context of your form: db.auth_user.profile_type.default = PROFILE_TYPE_YOU_PREFER elif ... Richard On Fri, Nov 24, 2017 at 10:4

Re: [web2py] Double registration form (one in controller, two in view)

2017-11-24 Thread Richard Vézina
Does removing writable=False in your extra_fields help? It you set this to false it means the field is neither readable or writable it you want it to be include in the form put it to writable=True so form will include the field... I am not sure what you try to achieve with session variable, but you

[web2py] Double registration form (one in controller, two in view)

2017-11-24 Thread Fabio Ceccarani
Hi all, I have a double registration form (one in controller, two in view): IN DB.PY auth.settings.extra_fields['auth_user']= [ Field('profile_type', readable=False, writable=False, label='Profile type', requires=IS_IN_SET({1:'Person',2:'Organization'})), ... ] IN USER.HTML ... profile

[web2py] CREATING A SCHEDULED DATABASE BACKUP

2017-11-24 Thread mostwanted
I have two questions but its basically about database backups *QUESTION 1* I am trying to create a scheduled database back-up but i am failing can someone help me and correct my script, I used a sleep time of 10seconds because i wanted to witness it happen on real time import StringIO import cs