[web2py] Re: Strange but useful THEAD trick!

2014-09-11 Thread Joe Barnhart
Well, I have to eat my tuple claims. And they are tasty. This works and renders the strings inside TH elements:: head = THEAD([['Date','Name','Amount','Term']]) As does this: head = THEAD([('Date','Name','Amount','Term')]) But (no surprise) these do not: head =

Re: [web2py] Re: web2py app as proxy... but how?

2014-09-11 Thread Manuele Pesenti
Il 10/09/14 11:18, Niphlod ha scritto: too much code will kill you. Start simple, and go from there onwards. | deftest(): url ='http://creativity103.com/collections/Landscape/golf_course.jpg' r =requests.get(url) ifr.status_code ==200: newheaders =r.headers

Re: [web2py] Re: web2py app as proxy... but how?

2014-09-11 Thread Manuele Pesenti
Il 11/09/14 09:12, Manuele Pesenti ha scritto: I need to proxy an external application but what happens is that the first page loading stops at a certain point of the html header, I suspect after too mutch requests to the same controller because every requirement (like css, js, images and so

[web2py] Re: request password generates an infite loop?

2014-09-11 Thread Leonel Câmara
Can you provide a simple app with this happening? -- 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 message because you are subscribed to

[web2py] Database design question regarding the usage of supertypes for a web2py project

2014-09-11 Thread Jan Beilicke
Hi everyone, I'm working on a web2py project which requires a complex relationship model. I want to use a model that works well with web2py's DAL and I would be glad if somebody could point me into the right direction. I created a small sample ER diagram to illustrate my problem, only the

Re: [web2py] Database design question regarding the usage of supertypes for a web2py project

2014-09-11 Thread Richard Vézina
Why component_a, _b, _c... You will end up create new table all the time... Richard On Thu, Sep 11, 2014 at 7:04 AM, Jan Beilicke jan.beili...@gmail.com wrote: Hi everyone, I'm working on a web2py project which requires a complex relationship model. I want to use a model that works well

Re: [web2py] Database design question regarding the usage of supertypes for a web2py project

2014-09-11 Thread Jan Beilicke
These are just sample names. In reality they are separate business/use case entities sharing only the same supertype, they are not enumerated. Am Donnerstag, 11. September 2014 15:42:47 UTC+2 schrieb Richard: Why component_a, _b, _c... You will end up create new table all the time... Richard

[web2py] Column filter

2014-09-11 Thread Gael Princivalle
Hello all. Someone have an experience of implementing a column filter in web2py ? Here is an example: http://jsfiddle.net/UwjUt/ Thanks ! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Allow only selected ips to log in my app

2014-09-11 Thread António Ramos
Hello, i have 2 apps that for headaches prevention i moved to the cloud (webfaction) However its exposed to everyone and i would like to know if the login form could be disabled in case of origin ip not allowed. If a user has an easy password and is discovered by unwanted person, it could cause

Re: [web2py] Database design question regarding the usage of supertypes for a web2py project

2014-09-11 Thread Richard Vézina
B will help you filter your drop down of component package if you can only have in a package the same supertype component. Difficults to say without concrete example. Richard On Thu, Sep 11, 2014 at 9:58 AM, Jan Beilicke jan.beili...@gmail.com wrote: These are just sample names. In reality

[web2py] Re: web2py 2.9.6 is out!

2014-09-11 Thread Copper Lark
support for SAML2 (with pysaml2) in docs not found ( -- 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 message because you are

[web2py] Re: web2py meetup Bay Area

2014-09-11 Thread weheh
Thanks for the replies. I went to a meetup last night for the Bay Area python group (not the Bay Area Piggies group), which is one of the largest if not the largest python group in the North Bay. I also looked into setting up a more permanent meetup group for web2py. Here are my conclusions

Re: [web2py] Re: Minify (compress) response HTML

2014-09-11 Thread Francisco Costa
would be nice to have this https://pypi.python.org/pypi/htmlmin/0.1.5 incorporated in web2py On Thursday, 25 July 2013 04:00:41 UTC+1, Kernc wrote: On Thu, Jul 25, 2013 at 1:15 AM, Elcimar elc...@gmail.com javascript: wrote: Hmm... Go to listacaiu.com and view source code of the main

Re: [web2py] Is it possible to compress the output html before rendering out?

2014-09-11 Thread Francisco Costa
tried with https://pypi.python.org/pypi/htmlmin/0.1.5 and worked fine On Thursday, 27 October 2011 14:59:30 UTC+1, Anthony wrote: If you have a function that does the compressing, I suppose you could do something like: def my_action(): [some code] d = dict(...) return

[web2py] Re: Is it possible to compress the output html before rendering out?

2014-09-11 Thread Leonel Câmara
Make sure you profile stuff before making all your controllers ugly. Configure your servers to gzip the contents, use response.optimize_js and response.optimize_css. That may be enough. Anyway, do profile before and after this change there may not be much to gain by minifying the HTML. --

[web2py] Re: Version 2.9.6 indeed breaks backward compat for some users

2014-09-11 Thread Leonel Câmara
Has this been finalized yet? The autocomplete widget also needs fixing. -- 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 message because

[web2py] How to return a more specific error message from auth.login(), rather than a generic invalid login

2014-09-11 Thread Mark Li
Looking through the source for auth.login(), it seems that the same invalid login error is given no matter what the particular error is (either username/email, or the password is wrong). I wanted to know if it is possible to return a more specific error msg after a failed login. If I use

Re: [web2py] Re: web2py app as proxy... but how?

2014-09-11 Thread Niphlod
btw: a session.forget(response) on top of all, if you don't need the sessions to be persisted, may be a good idea to improve parallel calls. on the content-length matter: you should pass what the underlying resource-site pass you. The above implementation should be perfectly fine in that

Re: [web2py] getting type 'exceptions.IOError' [Errno 13] Permission denied over and over

2014-09-11 Thread Simon Ashley
quite painful on win8.1 and web2py™Version 2.9.5-stable+timestamp.2014.03.16.02.35.39PythonPython 2.7.7: C:\Anaconda\python.exe (prefix: C:\Anaconda) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Allow only selected ips to log in my app

2014-09-11 Thread Jose
El jueves, 11 de septiembre de 2014 12:05:41 UTC-3, Ramos escribió: Hello, i have 2 apps that for headaches prevention i moved to the cloud (webfaction) However its exposed to everyone and i would like to know if the login form could be disabled in case of origin ip not allowed. If a

[web2py] Re: [web2py-dev] Version 2.9.6 indeed breaks backward compat for some users

2014-09-11 Thread Massimo DiPierro
What's broken in autocomplete? Was it a preexisting condition? Another reason for client-side widgets. Autocomplete is JS code. On Sep 11, 2014, at 2:35 PM, Leonel Câmara leonelcam...@gmail.com wrote: Has this been finalized yet? The autocomplete widget also needs fixing. -- -- mail

Re: [web2py] getting type 'exceptions.IOError' [Errno 13] Permission denied over and over

2014-09-11 Thread Leonel Câmara
I'm going to give you guys a simple workaround - Uninstall pywin32. That way there will be no file locking. Which should be no problem for a development machine. If this is a production machine just turn migrations off. That said it would be nice to know what the problem is exactly. Probably

[web2py] Re: Version 2.9.6 indeed breaks backward compat for some users

2014-09-11 Thread Leonel Câmara
Nothing is exactly broken, but autocomplete uses like in its queries when it's not running on gae, so, once this is decided, we need to either set it case_sensitive=False or make it use ilike (so it has the same behaviour on gae and other adapters) -- Resources: - http://web2py.com -

[web2py] Re: Version 2.9.6 indeed breaks backward compat for some users

2014-09-11 Thread Joe Barnhart
Just set case_sensitive=False and it will work exactly the way you want regardless of the convention chosen. I now set the case on my queries since it seems prudent to do so. After all, I may change from Postgres to MySql or something and I don't want to be surprised. -- Joe On Thursday,

Re: [web2py] getting type 'exceptions.IOError' [Errno 13] Permission denied over and over

2014-09-11 Thread JorgeH
Definitely , looks sooo Random.. On Thursday, September 11, 2014 9:26:04 PM UTC-5, Leonel Câmara wrote: I'm going to give you guys a simple workaround - Uninstall pywin32. That way there will be no file locking. Which should be no problem for a development machine. If this is a production

[web2py] Re: request password generates an infite loop?

2014-09-11 Thread Martin Weissenboeck
2014-09-11 12:37 GMT+02:00 Leonel Câmara leonelcam...@gmail.com: Can you provide a simple app with this happening? ​It is not necessary to create a new application. Please try the following steps: 1. Install a fresh copy of web2py 2. Goto to the welcom app 3. Register with your name 4.