[web2py] Trying to post a small improvement to web2py source.

2014-09-12 Thread Encompass solutions
How do I submit a small change I have made the the Web2py source? It's a small improvement. But when I try to git push I get a 403 error. I also don't know much about pull requests, but I think those are involved too. BR, Jason Brower -- Resources: - http://web2py.com - http://web2py.com/book (

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

2014-09-12 Thread Martin Weissenboeck
This change does the job - works fine. Thank you. 2014-09-13 0:07 GMT+02:00 Ricardo Pedroso : > I sent a pull request that, I think, fix this issue. > > You can try it by change line 3014 on gluon/tools.py > > if not key and len(request.args)>0: > > to > > if not key and len(request.args)

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

2014-09-12 Thread Massimo Di Pierro
done On Thursday, 11 September 2014 23:34:43 UTC-5, Joe Barnhart wrote: > > 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 t

[web2py] Re: web2py 2.9.6 is out!

2014-09-12 Thread Massimo Di Pierro
Not published yet: https://dl.dropboxusercontent.com/u/18065445/Tmp/saml2.pdf On Thursday, 11 September 2014 10:50:29 UTC-5, Copper Lark wrote: > > support for SAML2 (with pysaml2) >> > > in docs not found ( > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://

[web2py] Re: 'Table' object has no attribute 'type'

2014-09-12 Thread Tommi Lahtonen
'Table' object has no attribute 'type' > > Version web2py™ Version 2.9.5-stable+timestamp.2014.03.16.02.35.39 > Python Python 2.7.5+: /usr/bin/python (prefix: /usr) > I updated to the latest version 2.9.9 and still the same error. It looks like there is something wrong in DAL. -- Resou

[web2py] Web2py web mapping capabilities

2014-09-12 Thread Farzin Ashouri
Hi all, I've just switched from Django to web2py but I want to know about web2py web mapping capabilities, can I make custom maps and applications by web2py? is there any specific tools or modules (like geoDjango in Djjango project) to support web mapping services and to visualize maps? Thanks

[web2py] Beginner issues

2014-09-12 Thread Pedro Henrique Correa Ferreira
Hey, lads! How you're doing? I've got a issue with data validation. I gotta use a validator that depends on a previous field from the same table, for example: db.define_table( 'driver', Field('your_age'), Field('years_as_driver'), #requires IS_INT_IN_RANGE (0,(your_age-18) Field('y

[web2py] Re: contact importer

2014-09-12 Thread Rael G.C.
Hi Leonel, I use cloudsponge.com for contact importer. They offer a HTML widget (to the user import his/her contacts) or an API for several languages. Thanks! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://c

[web2py] Beginner questions

2014-09-12 Thread Pedro Henrique Correa Ferreira
Hi, lads! I'd like to know how can I validate a table Field after a previous field in the same table, for ex: 'Years as driver' = X So 'Years driving actual car' should be INT_IN_RANGE(0, "Years as driver input + 1") Hope you fellows understand my issue. Cheers -- Resources: - http://web2

[web2py] Looking for alternative to Janrain !!!

2014-09-12 Thread Matt Godfrey
Looking for a social login solution which I can afford. I was using janrain's free version -- 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

[web2py] Deploying Web2py with nginx on FreeBSD

2014-09-12 Thread myappengineering
Hi, everyone. I'm in the process of deploying Web2py with nginx on FreeBSD. Does anyone have a deployment script for this configuration. All the recipes I have seen are for Linux and I'm having difficulties converting them for FreeBSD. I have installed nginx and uwsgi succesfully, but I get

[web2py] Re: RSS is an error! What to do?

2014-09-12 Thread Капылов Данил
Thank you very much, it works. I have little experience, but I'm trying to learn as quickly as possible web2py Thanks for a wonderful framework. Small wish more educational material and examples of application web2py to create mobile applications. Thanks !!! среда, 10 сентября 2014 г.,

[web2py] Reddit clone - make a menu by a query error

2014-09-12 Thread olivier hubert
I try implement Reddit clone from massimo video (2013 edition), but I have a strange problem with the dynamic menu construction part. My menu.py (I remove all comments): response.logo = A(B('web',SPAN(2),'py'),XML('™ '), _class="brand",_href="http://www.web2py.com/";) response.

[web2py] Reload a component form another component without submit form

2014-09-12 Thread Michel Krav
Hi, I'd like to reload a component when an event (dble click) occurs on client side (browser) from another component : I am not able to solve on my own those issues using the code below : - when setting ajax = True to second component LOAD, the script do not provide the sid anymore. - make the

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

2014-09-12 Thread Ricardo Pedroso
I sent a pull request that, I think, fix this issue. You can try it by change line 3014 on gluon/tools.py if not key and len(request.args)>0: to if not key and len(request.args)>1: Ricardo On 9/12/14, Leonel Câmara wrote: > Ahh yes I see the problem. Tried to figure out what was goin

[web2py] Re: Comments/notes and api documentation

2014-09-12 Thread Derek
definitely contribute to web2pyslices. it's easy, takes just a few seconds, and it's pretty much become the standard way to share your recipes with others. On Wednesday, September 10, 2014 2:55:36 PM UTC-7, Robin Manoli wrote: > > Hey, > the php documentation has user comments with examples of h

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

2014-09-12 Thread Derek
You and I understand that, but that doesn't make it any more valid to return more specific login error related information. https://www.owasp.org/index.php/Authentication_Cheat_Sheet#User_IDs If we want to pass security checks for 'owasp' then we have to have generic messages for login failures

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-12 Thread JorgeH
Ok I ran out of hypothesis then On Friday, September 12, 2014 4:06:27 PM UTC-5, Niphlod wrote: > > SQLite has nothing to do with portalocker > > On Friday, September 12, 2014 10:59:21 PM UTC+2, JorgeH wrote: >> >> Hmmm >> >> I tend to think that the combination of SQLite + Windows, may have

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-12 Thread Niphlod
SQLite has nothing to do with portalocker On Friday, September 12, 2014 10:59:21 PM UTC+2, JorgeH wrote: > > Hmmm > > I tend to think that the combination of SQLite + Windows, may have most > or everything to do with the prob with portalocker. > > Time will tell > > > On Friday, September 1

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-12 Thread JorgeH
Hmmm I tend to think that the combination of SQLite + Windows, may have most or everything to do with the prob with portalocker. Time will tell On Friday, September 12, 2014 8:22:32 AM UTC-5, Leonel Câmara wrote: > > It may seem like it disappeared but it hasn't because the database has > no

Re: [web2py] Re: scheduler not showing 1 task

2014-09-12 Thread Niphlod
that's why you don't get a scheduler_run record then. Directly from the book (http://web2py.com/books/default/chapter/29/04/the-core#Results-and-output) *Beware that if the task has no return values, it is removed from the scheduler_run table as soon as it is finished.* On Friday, September 12

Re: [web2py] Re: scheduler not showing 1 task

2014-09-12 Thread António Ramos
no, it does not return data 2014-09-12 20:18 GMT+01:00 Niphlod : > does the alertusers task return something ? > > > On Friday, September 12, 2014 12:33:22 PM UTC+2, Ramos wrote: >> >> I have 2 tasks queued but only only one is shown in the run table.The >> alertUsers task is running because it i

[web2py] Re: scheduler not showing 1 task

2014-09-12 Thread Niphlod
does the alertusers task return something ? On Friday, September 12, 2014 12:33:22 PM UTC+2, Ramos wrote: > > I have 2 tasks queued but only only one is shown in the run table.The > alertUsers task is running because it is sending emails but i cannot see it > in the run table. > [image: Imagem i

[web2py] Re: web2py setup scripts for windows

2014-09-12 Thread Niphlod
nope because - as often with FOSS and Windows - it never left the "experimental" status. I really think that wfastcgi.py will be the de-facto standard for python deployments under windows. As a matter of fact, it's what Azure is using to power, e.g., Django sites. On Friday, September 12, 2014

[web2py] Re: get hidden input value in controller

2014-09-12 Thread Anthony
Note, you need to give your input a "name" attribute: INPUT(_name='txtNoOfRows', _id='txtNoOfRows', _class='hidden', _value=len(l )) Anthony On Wednesday, September 10, 2014 10:17:31 AM UTC-4, Anthony wrote: > > On Wednesday, September 10, 2014 7:26:12 AM UTC-4, trr wrote: >> >> Thanks Niphlod.

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-12 Thread Leonel Câmara
It may seem like it disappeared but it hasn't because the database has nothing to do with it, it's the files web2py uses to save the table structure and perform migrations which are creating the problem. 13 table definitions doesn't seem excessive to me and shouldn't create any problems. -- Re

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-12 Thread JorgeH
Well I am already moving the app to mysql, the problem dissapeared. One thing I suspect has something to do with this issue, is that in the model file I was using 13 table definitions. Even using lazy_tables = true, this error was rising up. Almost every time pointing to a different line of the

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

2014-09-12 Thread Massimo DiPierro
I used to have JS but I then I learned it and it is not that bad. ;-) On Sep 12, 2014, at 1:36 AM, Niphlod wrote: > muhaha, funny all the push you're giving towards client-side widgets > autocomplete NEEDS to be js code, and it's probably one of the three that > NEED js (just a bit or a lo

[web2py] Re: web2py setup scripts for windows

2014-09-12 Thread Tim Richardson
Hi Simone, I came across on old post of yours mentioning uswgi. I downloaded cygwin, cloned uswgi and v 2.0 built first time in about two minutes so that was easy (this was on a 32 bit Windows Server 2003, an old machine not in use). But before I learn how to use it ... should I? In the earlier

[web2py] scheduler not showing 1 task

2014-09-12 Thread António Ramos
I have 2 tasks queued but only only one is shown in the run table.The alertUsers task is running because it is sending emails but i cannot see it in the run table. [image: Imagem inline 1] [image: Imagem inline 2] Help please António -- Resources: - http://web2py.com - http://web2py.com/book (

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

2014-09-12 Thread Leonel Câmara
Ahh yes I see the problem. Tried to figure out what was going on, but the code has too many redirects for my head too. -- 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

[web2py] Re: web2py 2.9.6 is out!

2014-09-12 Thread Tim Richardson
On Friday, 12 September 2014 01:50:29 UTC+10, Copper Lark wrote: > > support for SAML2 (with pysaml2) >> > > in docs not found ( > http://web2py.com/books/default/chapter/29/15/helping-web2py#Documentation--Updating-the-book :) -- Resources: - http://web2py.com - http://web2py.com/book (D

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-12 Thread Leonel Câmara
One thing we can do to avoid this can of weird async stuff from happening (LockFileEx is asynchronous if the file is not opened in synchronous mode) is to use LOCKFILE_FAIL_IMMEDIATELY and then actively wait. Sort of the approach followed by oauth2client: https://github.com/google/oauth2client/b

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

2014-09-12 Thread Manuele Pesenti
Il 11/09/14 23:02, Niphlod ha scritto: > 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 implement