[web2py] Re: web2py as Grafana endpoint

2016-11-27 Thread Dave S
Any suggestions on how to force the response to ASCII instead of UFT-8? /dps On Tuesday, November 22, 2016 at 11:36:27 PM UTC-8, Dave S wrote: > > > > On Thursday, November 17, 2016 at 11:09:27 PM UTC-8, Dave S wrote: >> >> >> >> On Thursday, November 17, 2016 at 2:38:57 PM UTC-8, Niphlod wrote:

[web2py] S3 Fineuploader with web2py

2016-11-27 Thread Sharjeel Ali Shaukat
Does anyone done work on fineuploaders3 with web2py need multipart upload tutorial regarding that Please help -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues)

[web2py] Re: REST especification - Documentation RESTFul services in web2py

2016-11-27 Thread Massimo Di Pierro
You are right. That documentation is 10 years old and needs a revision. On Saturday, 26 November 2016 17:08:33 UTC-6, Marlysson Silva wrote: > > In web2py's documentation about RESTFul services it shows how retrieve > resources by people , example: > > http://127.0.0.1/myapp/default/api/persons.j

[web2py] Re: web2py with IIS and Postgresql

2016-11-27 Thread Massimo Di Pierro
Can you access it from the shell. I would be surprised if there are no restrictions to connect to a remote prostgres. You may need a SSL tunnel. On Friday, 25 November 2016 22:11:41 UTC-6, Alvaro Diaz Valenzuela wrote: > > Hi, I have successfully installed web2py behind IIS on an Azure VM with >

[web2py] bulk insert and it's data type have a strange behaviour

2016-11-27 Thread 黄祥
just wondering about bulk insert and it's data type have a strange behaviour (error traceback occured), while the same code using DAL insert syntax and using import csv don't have a problem *e.g.* *models/db.py* def __before_insert_attendance(f): chosen_employee = db(db.employee.id == f['employee

[web2py] Smart-joins helper needs peer review :)

2016-11-27 Thread Jurgis Pralgauskis
Hi, Web2py is nice for its expression brevity -- but joins still need quite long texting.. I wanted to make it simpler, because "readability counts" :) now you can write build_joins( ['auth_user', 'auth_membership', 'auth_group', 'auth_permission'

Re: [web2py] Adding user to a group after registration

2016-11-27 Thread Joe Lwe
Hi Kumar, am at the wall with the same problem you hard, am not having success below is my code, its from the account type table that i have defined account type Any assistance is so much appreciated. Thank you /dbypy file db.define_table('account_type', Field('name', 'string', length=20, not

[web2py] Re: Do conditionals short circuit for DAL?

2016-11-27 Thread Anthony
On Saturday, November 26, 2016 at 5:39:49 PM UTC-5, Brian M wrote: > > Well even if you're writing the query using the DAL the actual data > processing is being done by the database itself so that's where the "short > circuiting" would need to happen and is dependent on the database's query > op

[web2py] Re: Action commit and scheduled task commit racing?

2016-11-27 Thread Anthony
See http://stackoverflow.com/a/40776846/440323. On Friday, November 25, 2016 at 11:11:41 PM UTC-5, Albert Rothman wrote: > > My code has roughly the following form, and I am wondering if this can > generate a race condition or if the first insert happens right away: > > def receive_webhook(): >

[web2py] Action commit and scheduled task commit racing?

2016-11-27 Thread Niphlod
It absolutely can't happen. But the logic in the code is quite prone to inconveniences: every time a task runs, it only processes the last record of the table...what happens if you have called the webhook function several times before the task has the chance to be executed? You end up having hol

[web2py] Action commit and scheduled task commit racing?

2016-11-27 Thread Niphlod
It absolutely can't happen. But the logic in the code is quite prone to inconveniences: every time a task runs, it only processes the last record of the table...what happens if you have called the webhook function several times before the task has the chance to be executed? You end up having hol

[web2py] Action commit and scheduled task commit racing?

2016-11-27 Thread Niphlod
It absolutely can't happen. But the logic in the code is quite prone to inconveniences: every time a task runs, it only processes the last record of the table...what happens if you have called the webhook function several times before the task has the chance to be executed? You end up having hol