[web2py] Re: Intersection of rows

2018-02-06 Thread Dave S
On Tuesday, February 6, 2018 at 1:57:29 PM UTC-8, Dave S wrote: > > [...] > I think this is on 2.14.6; I may be able to test newer web2py's tonight. > Am I doing something wrong, or was there a hiccup in intersection? > > Downloading 2.16.1 and blindly copying my 2.14.6 copy to the new

Re: [web2py] Re: scheduler question

2018-02-06 Thread Dave S
On Tuesday, February 6, 2018 at 12:10:18 PM UTC-8, Andrea Fae' wrote: > > I created like in the book. It's a model. I'm scheduling from the database > administrative interface. 2 days ago worked perfectly! I don't know! > > I've never tried that. The production system I run the scheduler on

[web2py] Re: POST api return 405

2018-02-06 Thread Leonel Câmara
Your controller function where you used the request.restful decorator probably doesn't have a "def POST" function inside it to deal with the post method. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] query to match if boolean field is not True

2018-02-06 Thread David Zejda
Hi :) Intuitively I would expect that these queries are equivalent ways to match if boolean_field is not True: ~(db.mytable.boolean_field == True) (db.mytable.boolean_field != True) ((db.mytable.boolean_field == None) | (db.mytable.boolean_field == False)) But only the last one works as

[web2py] Re: Downloading ALL images in a table at once

2018-02-06 Thread Jim S
Based on my experience and simple web protocols, you can't do what you want. You could however combine all the images into one file (a zip file) and download that zip file. In your controller you could do something like this: import os import StringIO import zipfile tempfile =

[web2py] Re: Update Web2Py from admin page > Error - from version 2.14.6

2018-02-06 Thread Jim S
Can you try here? https://github.com/web2py/web2py/tree/master/scripts/setup-web2py-ubuntu.sh I believe web2py moved their hosting to github a year or so back. -Jim On Sunday, February 4, 2018 at 11:48:28 AM UTC-6, Mamisoa Andriantafika wrote: > > > Hi, > > I tried to upgrade the easy way

[web2py] Intersection of rows

2018-02-06 Thread Dave S
I have an application (used for comparing routes) with 2 tables relevant to this question. (Paraphrasing; code is at home, where the router jammed.) db.define_table('run', Field('when', 'date'), Field('description', 'string))

[web2py] Re: not authorised flash message when I used SQLFORM.grid, but worked fine with SQLFORM.smartgrid

2018-02-06 Thread dave . liotta
Just ran into and fixed this problem after much trial and error. In short, the URL that links to this controller method needs to have the user_signature=True attribute: In our case this was a link from another form grid: ... links=[ dict( header='Manage',

[web2py] Re: Upload an image from front-end

2018-02-06 Thread Πέτρος Χατζηλάμπρος
So, I did the following: - I created a controller and I put the following code inside # Example of a form that sends a valid POST request to changeAvatar() @auth.requires_login() def showChangeAvatarForm(): return locals() # use /showChangeAvatarForm from browser for testing

Re: [web2py] Re: scheduler question

2018-02-06 Thread andfae
I created like in the book. It's a model. I'm scheduling from the database administrative interface. 2 days ago worked perfectly! I don't know! Il 06 feb 2018 9:05 PM, "Dave S" ha scritto: > > > On Tuesday, February 6, 2018 at 7:58:15 AM UTC-8, Andrea Fae' wrote: >> >>

[web2py] Re: scheduler question

2018-02-06 Thread Dave S
On Tuesday, February 6, 2018 at 7:58:15 AM UTC-8, Andrea Fae' wrote: > > Hello, days ago I started to use scheduler and all was working very well. > I could see db.scheduler_run.task_id lines in the db with all the results > and console. > > Now the scheduler works very well but I don't see

[web2py] Demo site pointed from About page is not working

2018-02-06 Thread Marcelo Huerta
The about page of the main web2py site (http://web2py.com/init/default/what) points to a demo page at http://www.web2py.com/demo_admin, but the demo is not working, it fails attempting to create a ticket but the "ticket number" is "unknown". Either the demo or the page should be fixed... --

[web2py] scheduler question

2018-02-06 Thread Andrea Fae'
Hello, days ago I started to use scheduler and all was working very well. I could see db.scheduler_run.task_id lines in the db with all the results and console. Now the scheduler works very well but I don't see nothing in the table db.scheduler_run.task_id. Why? Talk completed without

[web2py] Re: Web2py scheduler

2018-02-06 Thread Simona Chovancová
solved, ran worker in different application than the task was sent from On Tuesday, February 6, 2018 at 2:34:24 PM UTC+1, Simona Chovancová wrote: > > Hello, > > I'm having trouble using the scheduler. I have managed to set it up to > queue tasks and successfully complete them. Although, that

[web2py] Web2py scheduler

2018-02-06 Thread Simona Chovancová
Hello, I'm having trouble using the scheduler. I have managed to set it up to queue tasks and successfully complete them. Although, that only works if I do not use database. If I include db in function that is tasked, I get this: Traceback (most recent call last): File