[web2py] Re: cron not work in 2.0.9

2012-09-28 Thread Márcio
Not start. --

[web2py] Re: How do you change memcache session expiry?

2012-09-28 Thread Robert Clark
Thanks, I am not having any problems with the memcached api & python interface, that part all works as advertised. The problem is that if you follow the deployment recipe for storing sessions in Memcached, then they always expire after 300s and there's no way to provide an expiry. Here's what'

[web2py] Re: Inconsistent multi-select POST values?

2012-09-28 Thread MichaelF
Makes sense; thanks. Posting a list on multi-selects would be a help, but there's still the other problem you mentioned (other input types). I've written code to try to take this into account by always converting the value. Any thoughts on why sometimes the value comes across as an int, other t

[web2py] bootstrap changes

2012-09-28 Thread Massimo Di Pierro
http://blog.getbootstrap.com/2012/09/29/onward/ --

Re: [web2py] XML Webservice

2012-09-28 Thread Massimo Di Pierro
Should this line be there in the default generic.xml? On Friday, 28 September 2012 20:02:26 UTC-5, Derek wrote: > > https://web2py.com/books/default/chapter/29/10#HTML,-XML,-and-JSON > > I didn't see your response, sorry. Read this chapter. Notice the > "generic.xml" code: > {{ > try: >from g

Re: [web2py] XML Webservice

2012-09-28 Thread Derek
https://web2py.com/books/default/chapter/29/10#HTML,-XML,-and-JSON I didn't see your response, sorry. Read this chapter. Notice the "generic.xml" code: {{ try: from gluon.serializers import xml response.write(xml(response._vars),escape=False) response.headers['Content-Type']='text/xml' e

[web2py] Re: Inconsistent multi-select POST values?

2012-09-28 Thread Massimo Di Pierro
Good question. The issues is the following. When an HTML form is submitted with one variable (a) the query_string contains ?a=value. If it is submitted with two values, the query string contains ?a=value&a=other. When web2py (or any other framework) parses the query_string it may find ?a=valu

[web2py] Re: Send Errors To Email

2012-09-28 Thread Dave
using os.popen leaves you potentially vulnerable to attack. I would use a mail API that way you reduce the possibility of shell injection. If someone is crafty enough they may be able to break out of your mail notification and execute arbitrary commands as your web user. Neat approach, I woul

[web2py] Re: Remember me with custom or alternate login?

2012-09-28 Thread Dave
That's what I recall too. I will report back. I am actually writing an auth class that will use rauth (compatible with Oauth 1.0-1.0a and Oauth 2.0 specs. My project requires integration with google, facebook, linkedin, twitter, pinterest and a few others. Ultimately I will be storing the au

[web2py] Re: Remember me with custom or alternate login?

2012-09-28 Thread Anthony
I believe it should work. Auth initialization checks for the auth object in the session -- the auth object in the session includes auth.expiration and auth.remember. If auth.expiration hasn't expired, the user is considered logged in. The login form/method/function shouldn't be involved at this

[web2py] Re: Send Errors To Email

2012-09-28 Thread Michael Toomim
If you want a realtime solution, you can trigger an email on each error. Here's a sketch: 1. Add an error handler to routes.py: routes_onerror = [ ('appname/*', '/appname/default/show_error') ] 2. and in default.py: def show_error(): Scheduler.insert(function_name='send_self_email'

[web2py] Re: Remember me with custom or alternate login?

2012-09-28 Thread Dave
Anthony, do you happen to know off the top of you head if the "remember me" logic automatically gets checked even if Auth(login_form=Myclass) is used? I will tinker this weekend and try to determine that myself too. Thanks On Friday, September 28, 2012 1:11:10 AM UTC-4, Anthony wrote: > > You

[web2py] Re: Send Errors To Email

2012-09-28 Thread Dave
As Niphlod said there is a complete email script in the distro. I am not sure it was there when I created this, but for compliance reasons I had to strip stuff out of the request and session. Cant be emailing credit card numbers around now ;) I just put it in my home directory. you will need

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-28 Thread Paolo Caruccio
Joe, thank you very much for the precious informations. The behavior in Ubuntu that you described at 2.2 point of the list is normal (collapsed menu). With regard to Windows I can't reproduce the issue on my XP3 system. Would you please use a cleaned browser (I usually use a portable version f

[web2py] Inconsistent multi-select POST values?

2012-09-28 Thread MichaelF
I have a form with a multi-select. If I choose one value and submit, the value is set in request.vars.xxx as a single integer (e.g., 2). If I choose more than one value and submit I get a list of string values (e.g., ['1', '5']). If I select no values I get None. Expected? Why the inconsistency

[web2py] Re: DAL - postgresql - circular table definitions

2012-09-28 Thread Paolo
Hi, I had the same problem a while ago. As you can see here, https://groups.google.com/d/topic/web2py/Uyjpd_GsMJk/discussion I solved the problem by commenting the second reference field (competition), running web2py and uncommenting the field (competition). I know that it isn't the best way a

[web2py] Re: cron not work in 2.0.9

2012-09-28 Thread Massimo Di Pierro
Is that problem that it does not start or that it does not run? On Friday, 28 September 2012 13:15:11 UTC-5, Márcio wrote: > > My cron.py file: > *****root *monitor/rastrear > > In browser the controller and function run fine. > --

Re: [web2py] Re: Login error in the new web2py

2012-09-28 Thread Massimo Di Pierro
Many little ones. But I just want to make sure the problem has not been fixed already and we are working off the same code. On Friday, 28 September 2012 11:24:02 UTC-5, Hassan Alnatour wrote: > > Dear Massimo , > > i will try it now , but what is the difference between the > stable version and

Re: [web2py] framework benchmarks - web2py surprisingly slow?

2012-09-28 Thread Niphlod
waitress does not support ssl On Friday, September 28, 2012 8:19:12 PM UTC+2, Vasile Ermicioi wrote: > > yes, waitress is great - async and threads combined and that in pure > python :) > > --

Re: [web2py] [OT] Has Massimo ever considered a JavaScript framework?

2012-09-28 Thread Anthony
> > Anthony: That looks all well and good, but what is `tag` doing? > Look at some of the other HTML helper classes in html.py -- they inherit from DIV and include a "tag" attribute, which can be empty if you don't want any surrounding HTML tag (the CAT helper is just a DIV with no tag). Anth

Re: [web2py] framework benchmarks - web2py surprisingly slow?

2012-09-28 Thread Vasile Ermicioi
yes, waitress is great - async and threads combined and that in pure python :) --

[web2py] Re: cron not work in 2.0.9

2012-09-28 Thread Márcio
My cron.py file: * * * * * root *monitor/rastrear In browser the controller and function run fine. --

Re: [web2py] framework benchmarks - web2py surprisingly slow?

2012-09-28 Thread Derek
Waitress? But it's not a single file. On Friday, September 28, 2012 5:38:10 AM UTC-7, Massimo Di Pierro wrote: > > Anyway, to my knowledge cherrypy is the only pure-python single-file > ssl-enabled web server, apart for rocket. Are there others? > > On Friday, 28 September 2012 07:37:28 UTC-5, Ma

[web2py] Re: DAL - postgresql - circular table definitions

2012-09-28 Thread Leonel Câmara
Is this something that is a bug that's going to be fixed, for instance by the DAL deferring the checks on foreign keys, or is it a feature (supposed to work this way) and I have to change in my application? --

Re: [web2py] [OT] Has Massimo ever considered a JavaScript framework?

2012-09-28 Thread Alec Taylor
On Sat, Sep 29, 2012 at 3:16 AM, Anthony wrote: > On Friday, September 28, 2012 12:31:26 PM UTC-4, Derek wrote: >> >> Have you ever tried using AngularJS with Web2py? It's a mess because all >> the instructions I tried didn't work. >> You can't use their templates at all, you have to do this: >>

Re: [web2py] [OT] Has Massimo ever considered a JavaScript framework?

2012-09-28 Thread Anthony
On Friday, September 28, 2012 12:31:26 PM UTC-4, Derek wrote: > > Have you ever tried using AngularJS with Web2py? It's a mess because all > the instructions I tried didn't work. > You can't use their templates at all, you have to do this: > > > instead of the much easier {{item.name}} > You ca

Re: [web2py] Web2py on Linux Server + DB2 + pyodbc

2012-09-28 Thread Bruno Rocha
maybe freeTDS driver can help: http://freetds.schemamania.org/ On Fri, Sep 28, 2012 at 1:34 PM, Christian Espinoza wrote: > Hi, somebody know how connect web2py on linux box to a db2 database server? > > I have pyodbc installed, but I dont know how to.. > > Thanks in advance > Christian. > > --

[web2py] Web2py on Linux Server + DB2 + pyodbc

2012-09-28 Thread Christian Espinoza
Hi, somebody know how connect web2py on linux box to a db2 database server? I have pyodbc installed, but I dont know how to.. Thanks in advance Christian. --

Re: [web2py] [OT] Has Massimo ever considered a JavaScript framework?

2012-09-28 Thread Derek
Have you ever tried using AngularJS with Web2py? It's a mess because all the instructions I tried didn't work. You can't use their templates at all, you have to do this: instead of the much easier {{item.name}} I would love to use Angular or something similar because it takes one round trip a

Re: [web2py] Re: Login error in the new web2py

2012-09-28 Thread hasan alnator
Dear Massimo , i will try it now , but what is the difference between the stable version and the nightly build ? Best Regards, Hassan Alnatour On Fri, Sep 28, 2012 at 7:10 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Can you try the web2py nightly build? > > > On Friday, 28 S

Re: [web2py] Re: Login error in the new web2py

2012-09-28 Thread Massimo Di Pierro
Can you try the web2py nightly build? On Friday, 28 September 2012 10:12:25 UTC-5, Hassan Alnatour wrote: > > Dear Massimo , > > i tested on early version of web2py and it works just fine , can you help > me with this please ? > > Best Regards, > > > > On Friday, September 28, 2012 3:44:45 PM U

[web2py] Re: cron not work in 2.0.9

2012-09-28 Thread Massimo Di Pierro
can you show us some code? How do you start it? On Friday, 28 September 2012 10:07:28 UTC-5, Márcio wrote: > > Hello, I have a routine that runs from cron built in version 1.99.7, after > upgrading to 2.0.9 no more triggers cron. Anyone know? > --

[web2py] Re: Send Errors To Email

2012-09-28 Thread Niphlod
reinventing the wheel is good, but if you don't need "stripping out parts" you can use the default script https://github.com/web2py/web2py/blob/master/scripts/tickets2email.py Il giorno venerdì 28 settembre 2012 16:08:57 UTC+2, Hassan Alnatour ha scritto: > > Dear Dave , > > Where did you add

Re: [web2py] Re: Login error in the new web2py

2012-09-28 Thread Hassan Alnatour
Dear Massimo , i tested on early version of web2py and it works just fine , can you help me with this please ? Best Regards, On Friday, September 28, 2012 3:44:45 PM UTC+3, Hassan Alnatour wrote: > > Dear Massimo , > > i am getting this not in just on of my apps , and am not storing anyth

[web2py] cron not work in 2.0.9

2012-09-28 Thread Márcio
Hello, I have a routine that runs from cron built in version 1.99.7, after upgrading to 2.0.9 no more triggers cron. Anyone know? --

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-28 Thread JoeCodeswell
Dear Paolo, I will try this on *both* my *Windows* machine *AND* my *Ubuntu* machine. Also, please see my previous post, of about 5 minutes ago, in response to you, regarding the *different* types of *failure modes* for my *Windows and Ubuntu* machines. [The "*three white lines*" *never* show

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-28 Thread JoeCodeswell
Dear Paolo, You said: > I tested my layout.html in several Windows scenarios (windows7, windowsXp > sp3) with several browsers... I am not sure I was clear about the fact that the *Small Viewport Problem *was *NOT on my Windows machine*. It *WAS on my Ubuntu machine*. On my windows machine,

[web2py] Re: scheduler: signal only works in main thread

2012-09-28 Thread Massimo Di Pierro
In trunk. Thanks Niphlod. On Friday, 28 September 2012 08:33:07 UTC-5, Niphlod wrote: > > http://code.google.com/p/web2py/issues/detail?id=1040 > > replace line 983 of gluon/widget.py with > > if len(apps) == 1 and not options.with_scheduler: > > Il giorno venerdì 28 settembre 2012 15:23:04 UTC+2,

[web2py] Re: ImportError on command line running with -R

2012-09-28 Thread Massimo Di Pierro
Can you please open a ticket about this? On Thursday, 27 September 2012 20:27:25 UTC-5, paul.mcilwaine wrote: > > I am attempting to create console scripts which can be run by a scheduled > task or manually which requires import of custom modules. My python script > is located in the application

[web2py] Re: Send Errors To Email

2012-09-28 Thread Hassan Alnatour
Dear Dave , Where did you add this file , and how do you use it ? Best Regards, Hassan Alnatour On Friday, September 28, 2012 6:38:18 AM UTC+3, Dave wrote: > > I have written a script that will load the error pickle file and email me > parts of it. The thing I had to be careful about was com

[web2py] Re: scheduler: signal only works in main thread

2012-09-28 Thread Niphlod
replace line 983 of gluon/widget.py with if len(apps) == 1 and not options.with_scheduler: Il giorno venerdì 28 settembre 2012 15:23:04 UTC+2, Niphlod ha scritto: > > Oops, my bad, I'll send a patch to Massimo in the next few hours. Right > now just start the scheduler process outside the main w

[web2py] Re: pathoc: testing web servers with pathological requests

2012-09-28 Thread Jose C
> Please open a goole ticket and this will be given high priority. Thanks to testing it. Ok, will run a batch of comprehensive tests this weekend and open ticket with results. --

[web2py] Re: ImportError on command line running with -R

2012-09-28 Thread Niphlod
try with -M Il giorno venerdì 28 settembre 2012 03:27:25 UTC+2, paul.mcilwaine ha scritto: > > I am attempting to create console scripts which can be run by a scheduled > task or manually which requires import of custom modules. My python script > is located in the applications/[appname]/priva

[web2py] Re: scheduler: signal only works in main thread

2012-09-28 Thread Niphlod
Oops, my bad, I'll send a patch to Massimo in the next few hours. Right now just start the scheduler process outside the main web2py.py process (no -X option, it has a problem.) Il giorno venerdì 28 settembre 2012 06:54:58 UTC+2, mweissen ha scritto: > > After starting > > python.exe web2py.py

[web2py] Re: [fcgi.py] "SyntaxError: invalid syntax"

2012-09-28 Thread Massimo Di Pierro
We do not have that line of code: https://github.com/web2py/web2py/blob/master/gluon/contrib/gateways/fcgi.py#L473 and this file has not changed in at least 10 months. Probably more. I suspect you have a newer version somewhere in your path and you picking up that other version. . On Friday, S

[web2py] [fcgi.py] "SyntaxError: invalid syntax"

2012-09-28 Thread Heck Lennon
Hello I'm trying to set things up on a shared Apache server with mod_fcgid before learning about Web2Py, but it seems like the fcgi.pyfile in the repository doesn't work: #

[web2py] ImportError on command line running with -R

2012-09-28 Thread paul.mcilwaine
I am attempting to create console scripts which can be run by a scheduled task or manually which requires import of custom modules. My python script is located in the applications/[appname]/private folder. In a very simple example of the issue Ive run the following command python web2py.py -S t

Re: [web2py] SQLFORM.grid custom search where is the error?

2012-09-28 Thread alex
Thank you Massimo, I have just tried with web2py-web2py-af258c3, latest trunk, and the situation didn't changed. On Friday, September 28, 2012 9:37:13 PM UTC+9, Massimo Di Pierro wrote: > > Clearly something is wrong I will try this today. Before I do, could you > check the latest trunk? > >

Re: [web2py] Re: Login error in the new web2py

2012-09-28 Thread hasan alnator
Dear Massimo , i am getting this not in just on of my apps , and am not storing anything in the session , the only thing using it is the login and i keep getting this error when the user tries to login .. Best Regards, Hassan Alnatour On Fri, Sep 28, 2012 at 7:39 AM, Massimo Di Pierro < ma

[web2py] Re: pathoc: testing web servers with pathological requests

2012-09-28 Thread Massimo Di Pierro
Please open a goole ticket and this will be given high priority. Thanks to testing it. On Friday, 28 September 2012 06:41:46 UTC-5, Jose C wrote: > > We should try this. >> >> Massimo >> > > Hi Massimo, > > Had a few minutes so ran some of the default tests against web2py running > on rocket. W

[web2py] Re: Login error in the new web2py

2012-09-28 Thread Massimo Di Pierro
You are storing in session something that cannot be properly serialized. On Friday, 28 September 2012 05:47:52 UTC-5, Hassan Alnatour wrote: > > Dear ALL , > > i am having some trouble with the new web2py , i have a window server 2008 > that i am using apache in to host my sites , now everything

Re: [web2py] framework benchmarks - web2py surprisingly slow?

2012-09-28 Thread Massimo Di Pierro
Anyway, to my knowledge cherrypy is the only pure-python single-file ssl-enabled web server, apart for rocket. Are there others? On Friday, 28 September 2012 07:37:28 UTC-5, Massimo Di Pierro wrote: > > +1 > > On Friday, 28 September 2012 04:57:59 UTC-5, Michele Comitini wrote: >> >> If we have t

Re: [web2py] framework benchmarks - web2py surprisingly slow?

2012-09-28 Thread Massimo Di Pierro
+1 On Friday, 28 September 2012 04:57:59 UTC-5, Michele Comitini wrote: > > If we have to change, could we come up with a list of good candidates, > including cherrypy, and have a voting session? > > mic > > > > 2012/9/27 Massimo Di Pierro > > >> Tim, creator or Rocket has not been very responsiv

Re: [web2py] SQLFORM.grid custom search where is the error?

2012-09-28 Thread Massimo Di Pierro
Clearly something is wrong I will try this today. Before I do, could you check the latest trunk? On Friday, 28 September 2012 04:36:26 UTC-5, alex wrote: > > Thank you Johann, of course I did already, > > The query itself gets translated correctly. > I think that something very subtle is happeni

Re: [web2py] [OT] Packpub giving free e-books

2012-09-28 Thread apps in tables
Thanks... On Friday, September 28, 2012 2:44:46 PM UTC+3, Johann Spies wrote: > > On 28 September 2012 10:45, apps in tables > > wrote: > >> Hi everybody, >> >> why does everybody need to download his own copy of the ebook (directly) >> from the site? >> >> can i get a copy (indirectly) from Bru

[web2py] Re: How do you change memcache session expiry?

2012-09-28 Thread Jose C
> > The only way I've found to change this is to explicitly modify the default > value from this source file. > > Is there a better way to configure this value for session expiry from > within application code? Cheers. > > Far as I know it's done like this: set(key=key, value=value, time=)

Re: [web2py] [OT] Packpub giving free e-books

2012-09-28 Thread Johann Spies
On 28 September 2012 10:45, apps in tables wrote: > Hi everybody, > > why does everybody need to download his own copy of the ebook (directly) > from the site? > > can i get a copy (indirectly) from Bruno? (assuming that Bruno got a free > copy from the site) > > is this legal? > > No. The copy

[web2py] Re: pathoc: testing web servers with pathological requests

2012-09-28 Thread Jose C
> > We should try this. > > Massimo > Hi Massimo, Had a few minutes so ran some of the default tests against web2py running on rocket. We do get a few 500 errors, in 2 places as far as i can see: `gluon/main.py` and in `gluon/rocket.py`. Nothing catastrophic. How/where do you want the error

[web2py] Login error in the new web2py

2012-09-28 Thread Hassan Alnatour
Dear ALL , i am having some trouble with the new web2py , i have a window server 2008 that i am using apache in to host my sites , now everything was working fine but when i updated web2py , it was okey but every once and while the login stops , i open the server and i do the same thing locall

Re: [web2py] framework benchmarks - web2py surprisingly slow?

2012-09-28 Thread Niphlod
Well, I wouldn't know if leaving sockets open for such a high concurrency is enough to change, but cherrypy is definitely more active. When Tim rejoins we could switch back as soon as the bugs are fixed. @mic: is there really an alternative to cherrypy.wsgiserver (multiplatform, pure python, SSL

Re: [web2py] framework benchmarks - web2py surprisingly slow?

2012-09-28 Thread Michele Comitini
If we have to change, could we come up with a list of good candidates, including cherrypy, and have a voting session? mic 2012/9/27 Massimo Di Pierro > Tim, creator or Rocket has not been very responsive recently. Should we > revert to cherrypy wsgiserver? > > > On Wednesday, 26 September 201

Re: [web2py] SQLFORM.grid custom search where is the error?

2012-09-28 Thread alex
Thank you Johann, of course I did already, The query itself gets translated correctly. I think that something very subtle is happening when I pass search_widget= search_form, and I cannot catch it I uploaded herethe packed version

[web2py] Re: pathoc: testing web servers with pathological requests

2012-09-28 Thread apps in tables
Hi Massimo, It seems too advanced topic for me. Do you know a simpler one, as an introduction to the topic? Regards, Ashraf On Friday, September 28, 2012 4:52:31 AM UTC+3, Massimo Di Pierro wrote: > > http://corte.si/posts/code/pathod/pythonservers/index.html > > We should try this. > > Massim

Re: [web2py] [OT] Packpub giving free e-books

2012-09-28 Thread apps in tables
Hi everybody, why does everybody need to download his own copy of the ebook (directly) from the site? can i get a copy (indirectly) from Bruno? (assuming that Bruno got a free copy from the site) is this legal? Regards, Ashraf > --