[web2py] how to remove column header

2016-10-14 Thread Alex Glaros
how to supress field header {{taxonomy_set = ['super_city_3', 'super_city_2', 'super_city_1', 'city', 'sub_city_1', 'sub_city_2', 'sub_city_3']}} {{for r in taxonomy_set:}} {{db.geo_political_generic_fields_lookup.taxonomy_column_fk.label = ''}} #does not work {{geoFieldNa

[web2py] Re: web2py + cordova + APIs

2016-10-14 Thread samuel bonill
Hi massimo, I like a lot APPMaker, i would like collaborate in this project... i'm thinking implements authentication on token based authentication -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.c

[web2py] Re: How to create a search field(while typing display suggested pages)

2016-10-14 Thread Val K
web2py has SQLFORM.widgets.autocomplete, but you can try chosen.js On Wednesday, October 12, 2016 at 4:55:46 AM UTC+3, sanjana chowdary wrote: > > please help me > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://githu

[web2py] Re: Help with App memory usage

2016-10-14 Thread Niphlod
try using psycopg2 on the prod env too. pg8000 (especially the one shipped with web2py in the latest stable, which was quite old) can exhibit memory leaks (or, for better saying, a premature optimization resulted in an "evil" usage of the memory for the way web2py uses pg8000). On Friday, Octob

[web2py] Re: from apache to nginx

2016-10-14 Thread Niphlod
in-process I think it's a no-go, as nginx just doesn't know how to interpret python in the same process as apache does. http_auth_request together with http_access though can help, as you should be able to code an handler that returns either 200 or 403 instead of true/false . Check http://nginx

[web2py] Re: nested loops in views

2016-10-14 Thread Pierre
I dedented it with an "air extractor" {{extend 'layout.html'}} {{ d={'a':[1,2],'b':[3,4]} }} {{for k,v in d.items():}}{{=k}} {{for vi in v:}}{{=vi}}{{pass}}{{pass}} -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - htt

[web2py] Re: Referencing another table

2016-10-14 Thread Val K
'reference bursary_users' and requires = [IS_IN_DB(db, 'bursary_users .barcode')] - I think, that it's mutually exclusive requirements 'reference bursary_users' == requires = IS_IN_DB(db, 'bursary_users.*id*') On Friday, October 14, 2016 at 6:21:38 PM UTC+3, James Booth wrote: > > Hey gu

[web2py] Re: nested loops in views

2016-10-14 Thread Val K
just keep in mind simple rule: {{pass}} == anti-indent On Friday, October 14, 2016 at 7:24:11 PM UTC+3, Pierre wrote: > > Hi, > > why is this not working ? > > {{extend 'layout.html'}} > {{ d={'a':[1,2],'b':[3,4]} }} > > {{for k,v in d.items():}}{{=k}}{{pass}} > {{for vi in v:}}{{=vi}}{{pass}}

[web2py] Re: Help with App memory usage

2016-10-14 Thread daniel
On my development environment i am using psycopg2 in production pg8000, and im not using db cache anywhere El viernes, 14 de octubre de 2016, 10:07:43 (UTC-5), Paolo Valleri escribió: > > Which driver are you using for postgres? Are you using cache in models? > Try to figure out if there are con

[web2py] Re: Help with App memory usage

2016-10-14 Thread daniel
anthony, thats a good point did not notice that, thanks El jueves, 13 de octubre de 2016, 21:03:20 (UTC-5), Anthony escribió: > > That's a lot of code to review. You're probably going to have to do some > digging and narrow it down for us. I did see one problem, though: > > class IS_BARCODE_AVAIL

[web2py] web2py + cordova + APIs

2016-10-14 Thread Massimo Di Pierro
So I made this: https://github.com/mdipierro/web2py-cordova Anyone is brave enough to try make a sample app that uses it and runs with APIMaker (https://github.com/mdipierro/collection2)? Massimo -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github

Re: [web2py] Securing admin doc still accurate?

2016-10-14 Thread Richard Vézina
We could update this section by adding a suggestion... Someone can just clone it nginx config (virtual server) for port 80 and set "listen 127.0.0.1:8002;" instead of "listen 80;" and now you can access the admin app as long as you made the ssh port foward and had create the parameters_8002.py file

[web2py] nested loops in views

2016-10-14 Thread Pierre
Hi, why is this not working ? {{extend 'layout.html'}} {{ d={'a':[1,2],'b':[3,4]} }} {{for k,v in d.items():}}{{=k}}{{pass}} {{for vi in v:}}{{=vi}}{{pass}} -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://co

[web2py] Referencing another table

2016-10-14 Thread James Booth
And that was meant to be INexperienced with web2py. It's been a long week. -- 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 becau

[web2py] Referencing another table

2016-10-14 Thread James Booth
Hey guys, Excuse me if I'm missing something (or a lot), but I'm pretty experienced with web2py. I have the following defined in my model: db.define_table('bursary_users', > Field('forename', type='string', requires=IS_NOT_EMPTY()), > Field('surname', type='strin

[web2py] Re: Help with App memory usage

2016-10-14 Thread Paolo Valleri
Which driver are you using for postgres? Are you using cache in models? Try to figure out if there are controllers using more memory than others. On Friday, October 14, 2016 at 4:03:20 AM UTC+2, Anthony wrote: > > That's a lot of code to review. You're probably going to have to do some > digging

[web2py] Re: datetime midnight is None - BUG?

2016-10-14 Thread Massimo Di Pierro
Anthony answered this question but I will rephrase: if not start2 is None: end2 cannot be empty if not start1 is None and not end1 is None and not start 2 is None: end2 cannot be smaller then start2, except if value 0:00 is inserted On Friday, 14 October 2016 06:58:17 UTC-5, Yeba

[web2py] Re: datetime midnight is None - BUG?

2016-10-14 Thread Yebach
But how to distinguish between empty entry and a value of midnight? In my case i have a form with start1, end1 and start2 and end2: if start2 exists. end2 cannot be empty if start1 and end1 and start 2 exist: end2 cannot be smaller then start2, except if value 0:00 is inserted

[web2py] Re: datetime midnight is None - BUG?

2016-10-14 Thread Anthony
It does not behave as None but as False (so you can actually test to see if it is None). For details, see https://bugs.python.org/issue13936. At the end of that issue discussion, you will not it was closed with a commit that changed the behavior in Python 3.5 (in 3.5, time(0, 0) evaluates to Tru

[web2py] Re: accessing auth_user username

2016-10-14 Thread Pierre
Hi, Using* iterselect* is there a better way to collect usernames than to include auth_user in join queries. Is there an equivalent of *rows.render()* compatible with *iterselect* ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (

[web2py] datetime midnight is None - BUG?

2016-10-14 Thread Yebach
Hello I have a datetime field in db. If I set time to 0:00 - datetime.time(0, 0) the if statement behaves as variable is None Any ideas why? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/w

[web2py] Re: accessing auth_user username

2016-10-14 Thread Jaimee S
Oh I see, I misunderstood how to access Auth. You're right, I'll need to read more of the documentation. BTW your answer worked, thanks! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/i