[web2py] Re: Scheduler misleading DEBUG logging when task reaches timeout

2014-11-21 Thread Francisco Ribeiro
just create and trigger the following task: def schedule_call(): import time time.sleep(3600) return 'completed' and queue it like: myscheduler.queue_task(schedule_call, timeout=0) once it's triggered check the CPU load of your python scheduler node and should be 100%. If this is n

[web2py] Re: Scheduler misleading DEBUG logging when task reaches timeout

2014-11-21 Thread Niphlod
will do. in the meantime with timeout=0 what are you trying to achieve ? On Friday, November 21, 2014 12:42:54 PM UTC+1, Francisco Ribeiro wrote: > > just create and trigger the following task: > def schedule_call(): > import time > time.sleep(3600) > return 'completed' > > > and q

[web2py] Re: Web2py Funding

2014-11-21 Thread Anthony
Meteor probably got funding because (a) they have an impressive team with an established track record, (b) they are building the next generation web framework, and (c) they have a business plan for making money (i.e., enterprise add-on products and support). Interestingly, in the Node.js world,

[web2py] SQLite query with random not working anymore

2014-11-21 Thread Dominique
Hello, I have a small personal website published on PythonAnywhere. PythonAnywhere upgraded SQLITE some time ago. Since then, one query doesn't work anymore. It is a query with a many to many relationship and the select should give results at random. rows = db(...).select(..., orderby='') It do

Re: [web2py] Re: Web2py Funding

2014-11-21 Thread António Ramos
I think web2py need a push funded or not funded. For my experience where i deal daily with web2py, i see the admin app web interface kind of lost in time. It did not change much in the last years. Why ? I have for example a table with 50 rows, when i browse it with admin , every columns is prefixe

Re: [web2py] Re: Web2py Funding

2014-11-21 Thread Anthony
On Friday, November 21, 2014 10:19:37 AM UTC-5, Ramos wrote: > > I think web2py need a push funded or not funded. > > For my experience where i deal daily with web2py, i see the admin app web > interface kind of lost in time. It did not change much in the last years. > Why ? > You might also try

[web2py] Re: Scheduler misleading DEBUG logging when task reaches timeout

2014-11-21 Thread Francisco Ribeiro
So, by disabling the timeout, I'm making sure that the scheduler will be taken by that process for 3600s rather than being released on its own through a term signal triggered by a timeout. This way, you should be able to easily verify the high CPU load caused by any task loaded into the schedul

[web2py] Re: SQLite query with random not working anymore

2014-11-21 Thread Anthony
The .sort() method is done in Python and has nothing to do with SQLite. That makes me think something else is going on, such as something being cached and therefore not updating with your code changes. Anthony On Friday, November 21, 2014 9:32:00 AM UTC-5, Dominique wrote: > > Hello, > > I have

[web2py] Re: SQLite query with random not working anymore

2014-11-21 Thread Dominique
Hi Anthony, Thanks for replying. I already withdrew all references to cache to make sure it is not the cause of the problem. But... it's the same. Dominique Le vendredi 21 novembre 2014 16:50:04 UTC+1, Anthony a écrit : > > The .sort() method is done in Python and has nothing to do with SQLite.

[web2py] Re: SQLite query with random not working anymore

2014-11-21 Thread Anthony
Can you show more of your code? In particular, how are you displaying the results to determine the order? Or you sure there is not some subsequent step that is re-ordering the records? Are you absolutely sure that: rows=db(...).select().sort(lambda row: random.random()) produces the same Rows

[web2py] Re: RSVP: Massimo @ Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-21 Thread Joe Barnhart
Has anyone notified the BayPiggies list of our event? Should we? -- Joe On Wednesday, November 5, 2014 11:48:14 PM UTC-8, weheh wrote: > > Hi Bay Area web2py'ers. Get excited! > > *Massimo will attend our very own Bay Area* *web2py meetup* to meet, > greet and present. Additional talks are pla

[web2py] Re: Scheduler misleading DEBUG logging when task reaches timeout

2014-11-21 Thread Niphlod
0 doesn't disable the timeout. it sets it to 0. which is kinda the nonsense I was trying to figure it out ;-P On Friday, November 21, 2014 4:47:53 PM UTC+1, Francisco Ribeiro wrote: > > So, by disabling the timeout, I'm making sure that the scheduler will be > taken by that process for 3600s rat

[web2py] Java Client for web2py SOAP web service

2014-11-21 Thread Pengfei Yu
Hi, I am using the SOAP service provided by web2py to create a simple web service for my web application. The document provide a example of using "pysimplesoap" to consume the created SOAP web service. The code is like below: >>> from gluon.contrib.pysimplesoap.client import SoapClient >>> cli

[web2py] Request for assistance

2014-11-21 Thread mmoradrrrr
I am in the process of creation of synthesis site looking at other sites, do any of you can aide true value of some books for aggregate roads, aggregate sites, and thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sourc

[web2py] Re: CAS not working - redirect loop

2014-11-21 Thread Srini K
Debugged the issue and got the solution. The root problem is with the 'pagespeed' module that I had installed for apache and when I disabled 'pagespeed' module the CAS consumer worked fine without going into infinite redirection loop. Thanks, Srini On Thursday, November 6, 2014 5:36:43 PM UTC-8

[web2py] Re: Published my collection of plugins

2014-11-21 Thread Dennis Jacobs
Hi Kenji, First of all I wanted to thank you for submitting and maintaining your web2py plugins. However I do have one small issue with the “multiselect_widget”, which could be due to the fact that I don’t know how to implement the plugin properly. The problem I’m currently facing is the fa

[web2py] Can I use TACACS+ for authentication?

2014-11-21 Thread Luis Ramos
Can I use TACACS+ for authentication? I can't find any documentation nor questions on this. Thanks! -- 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) --- You r

[web2py] (de-)select values for the multiselect_widget from ScubismLabs.

2014-11-21 Thread Dennis Jacobs
Hi Kenji, First of all I wanted to thank you for submitting and maintaining your web2py plugins. However I do have one small issue with the “multiselect_widget”, which could be due to the fact that I don’t know how to implement the plugin properly. The problem I’m currently facing is the f

[web2py] Running multiple DAL transactions atomically

2014-11-21 Thread Bilal Hasan
Is there a way to run multiple DAL transactions in one go? Maybe even use semaphores? I want to query a database, get all the jobs in queue, select one, update it's running status from queued to running, and then let go of the lock. Anyone have any ideas on how this can be done? -- Resources:

[web2py] web2py and security

2014-11-21 Thread James O' Driscoll
Are there any good resources on how to boost the security of web2py. Regards, James -- 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) --- You received this me

[web2py] Web2py debugger not working with Nginx+uWSGI setup.

2014-11-21 Thread Srini K
Hi: I have deployed web2py on Ngnix+uWSGI setup using the script that comes with web2py and it works fine. But the problem I'm facing is in trying to set a breakpoint and debug using the web2py debugger. I have tried tweaking options in uWSGI and Nginx conf files to make it single process and m

[web2py] Re: pagination issue redirecting to the current page

2014-11-21 Thread Joe
@Massimo, Thanks very much Massimo. I am trying to find a way to redirect the user to the page where the user clicks on the select button to select an item. The user might be on page 2 or page 3 page 4 or any other page when he selects the item. How can I redirect the user to the same page he i

[web2py] web2py RESTful timeout

2014-11-21 Thread Bart
I have a python script that posts data to my web2py/application/projects database using RESTful services. Everything works fine for an hour or two, but then all future posts will timeout. If, using a web browser, I reload the web2py application's main page then the RESTful services start worki

[web2py] API authorization without decorators

2014-11-21 Thread Francesco S
I am novice in web2py. I am developing an angularjs+web2py web application. In addition to using web2py to write the APIs, at least at the first stage, I would like to use the web2py authentication class (i.e., no API approach for authentication) and to have it working even when calling the APIs

[web2py] Re: API authorization without decorators

2014-11-21 Thread Massimo Di Pierro
You should be able to do if not auth.user: do_whatever_you_like() instead of using the decorator. On Thursday, 20 November 2014 07:40:29 UTC-6, Francesco S wrote: > > I am novice in web2py. I am developing an angularjs+web2py web > application. > In addition to using web2py to write the APIs,

[web2py] Re: Running multiple DAL transactions atomically

2014-11-21 Thread Massimo Di Pierro
you can db.commit() your partial work. On Thursday, 20 November 2014 12:09:37 UTC-6, Bilal Hasan wrote: > > Is there a way to run multiple DAL transactions in one go? Maybe even use > semaphores? > > I want to query a database, get all the jobs in queue, select one, update > it's running status

[web2py] Re: web2py RESTful timeout

2014-11-21 Thread Massimo Di Pierro
We need more details. How often do you post? How long does it take to get a response? On Friday, 21 November 2014 09:36:36 UTC-6, Bart wrote: > > I have a python script that posts data to my web2py/application/projects > database using RESTful services. Everything works fine for an hour or two,

[web2py] Re: CAS not working - redirect loop

2014-11-21 Thread Massimo Di Pierro
Thanks for letting us know! On Friday, 21 November 2014 14:54:19 UTC-6, Srini K wrote: > > Debugged the issue and got the solution. The root problem is with the > 'pagespeed' module that I had installed for apache and when I disabled > 'pagespeed' module the CAS consumer worked fine without goin

[web2py] Re: Java Client for web2py SOAP web service

2014-11-21 Thread Dave S
On Thursday, November 20, 2014 6:49:18 AM UTC-8, Pengfei Yu wrote: > > Hi, > > I am using the SOAP service provided by web2py to create a simple web > service for my web application. The document provide a example of using > "pysimplesoap" to consume the created SOAP web service. The code is li

[web2py] Re: Java Client for web2py SOAP web service

2014-11-21 Thread Dave S
On Friday, November 21, 2014 3:16:45 PM UTC-8, Dave S wrote: > > [...] > My imports include "javax.xml.soap.xml", and i instantiate using > SOAPConnectionFactory. > > Boy, I bungled that line, even when proof-reading. "import javax.xml.soap.*;" (which might also need "import javax.xml.transfo

[web2py] Re: Scheduler misleading DEBUG logging when task reaches timeout

2014-11-21 Thread Francisco Ribeiro
Now, that is amusing :) that timeout = 0 is triggering an endless loop which actually works as a way to prevent the app from timing out! It also explains the problem at hands, i.e. the intense CPU load so there is some progress here. Out of curiosity, the same behaviour (both disabling timeout a

[web2py] Possible to use CAS/Single Signon with custom auth_db?

2014-11-21 Thread LoveWeb2py
Hello, I'm trying to use Web2py's CAS feature and database cooperation. I tried to follow this article: http://www.web2pyslices.com/slice/show/1877/single-login-by-two-different-ways And it looks good, but what if I'm using custom authentication? The appliance found here: https://github.com/