[web2py] Re: faulty show_if case

2014-11-08 Thread 'DenesL' via web2py-users
A workaround: enclose the value in quotes. e.g. db.news.link.show_if = (db.news.category=='1') As a plus, I believe it will keep on working even after running a version of web2py that has the fix. On Saturday, November 8, 2014 3:26:30 PM UTC-5, Niphlod wrote: > > > https://github.com/web2py/

[web2py] Re: conditional form feilds when using =form.custom.widget.begin

2014-11-08 Thread 'DenesL' via web2py-users
Actually that will keep on working. Good choice. On Saturday, November 8, 2014 9:05:05 PM UTC-5, Jeremiah Peterson wrote: > > I changed it to db.news.link.show_if = (db.news.category=='1') adding the > ' ' around the numbers and it seems to be working. I'm assuming once that's > fixed, what I h

[web2py] Re: conditional form feilds when using =form.custom.widget.begin

2014-11-08 Thread Jeremiah Peterson
I changed it to db.news.link.show_if = (db.news.category=='1') adding the ' ' around the numbers and it seems to be working. I'm assuming once that's fixed, what I have will quit working? On Saturday, November 8, 2014 7:43:23 PM UTC-6, DenesL wrote: > > Note that there is an issue with show_if >

[web2py] Re: conditional form feilds when using =form.custom.widget.begin

2014-11-08 Thread 'DenesL' via web2py-users
Note that there is an issue with show_if https://groups.google.com/forum/#!topic/web2py/dnbPyALwZKE On Friday, November 7, 2014 5:37:27 PM UTC-5, Jeremiah Peterson wrote: > > Thank you very much, I really appreciate it. That worked perfectly! > > On Friday, November 7, 2014 4:11:09 PM UTC-6, Dene

[web2py] Help with web2py on webfaction

2014-11-08 Thread Hans Soflao
Can somebody help me with getting web2py app to work with webfaction? This is a very simple question I imagine. The way my folders are structured are like this: home/user/webapps/appname. Inside appname folder, there are these folders: apache2, htdocs and web2py. These get created when an app

[web2py] Re: RFC on component trap form, serialize also the button used to submit the form

2014-11-08 Thread 'DenesL' via web2py-users
Good catch Anthony. My test submit button did not have a name. On Saturday, November 8, 2014 11:32:09 AM UTC-5, Anthony wrote: > > In web2py.js, we have: > > formInputClickSelector: 'input[type=submit]:not([name]), > input[type=image]:not([name]), button[type=submit]:not([name]), > button:

Re: [web2py] Re: how to accept args

2014-11-08 Thread 'DenesL' via web2py-users
personID = db.auth_user(request.args(0)) or redirect(...) The redirect is there in case there is no request.args(0). You have to think about these things and provide a nice handling for the end user, otherwise they end up looking at a screen with an error message that could and should have been

[web2py] Re: RFC on component trap form, serialize also the button used to submit the form

2014-11-08 Thread Niphlod
PR in, with updates to the current situation. -- 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 the

[web2py] Re: admin access under gunicorn on Heroku

2014-11-08 Thread Jay Martin
I followed this step with the exception of the -u www-data because that user isn't present on my os x system and heroku nor gunicorn docs mention it. I still receive the access denied message "admin disabled because unable to access password file" even though I have a parameters_443.py file. My

[web2py] Re: RFC on component trap form, serialize also the button used to submit the form

2014-11-08 Thread Niphlod
my bad. I was working on an app that had an old web2py.js. seems definitely some bad idea to exclude buttons with no name. On Saturday, November 8, 2014 5:32:09 PM UTC+1, Anthony wrote: > > In web2py.js, we have: > > formInputClickSelector: 'input[type=submit]:not([name]), > input[type=imag

[web2py] Re: faulty show_if case

2014-11-08 Thread Niphlod
https://github.com/web2py/web2py/commit/1e35262e6746dd74485587ddef25205573785ca9 2.9.11 still doesn't include the fix On Saturday, November 8, 2014 4:44:54 PM UTC+1, DenesL wrote: > > May I ask in which release is it fixed?. > Just re-downloaded 2.9.11 and it has the exact same problem as 2.9.5 >

[web2py] openshift

2014-11-08 Thread Avi A
Hi, Maybe someone can help with that, how do I start the openshift web2py version localy ? Also how do I set the admin password? I mean this is what i have on the parameters_80 file: password="pbkdf2(1000,20,sha512)$b7328c..205b" thanks, Avi. -- Resources: - http://web2py.com - http://w

[web2py] apache logs

2014-11-08 Thread António Ramos
hello i was used to rocket every python print statement i could see it in the terminal. now with apache i dont know where to look for my print statements Any help Thank you António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (So

Re: [web2py] Re: packaging an app

2014-11-08 Thread António Ramos
Yes that is what i mean! Thank you 2014-11-08 16:21 GMT+00:00 Anthony : > If you're talking about using admin to pack the app, there is an option > for custom packing that allows you to select whatever folders and > subfolders you want. > > Anthony > > > On Saturday, November 8, 2014 9:00:42 AM U

Re: [web2py] Re: how to accept args

2014-11-08 Thread Alex Glaros
now receive error: Set: no tables selected HTML {{=personID.last_name}} CONTROLLER @auth.requires_login() def view_user_profile(): personID=db(db.auth_user(request.args(0))).select() return locals() ERROR REPORT locals args_get:attributes:{}fields:[]query:self:tablenames:[] tabl

[web2py] Re: RFC on component trap form, serialize also the button used to submit the form

2014-11-08 Thread Anthony
In web2py.js, we have: formInputClickSelector: 'input[type=submit]:not([name]), input[type=image]:not([name]), button[type=submit]:not([name]), button:not([type]):not([name])' Doesn't that only select buttons with no names? But in this case, we specifically want to capture buttons with nam

[web2py] Re: packaging an app

2014-11-08 Thread Anthony
If you're talking about using admin to pack the app, there is an option for custom packing that allows you to select whatever folders and subfolders you want. Anthony On Saturday, November 8, 2014 9:00:42 AM UTC-5, Ramos wrote: > > Hello , my app has in the upload folder around 5Gb of files. >

[web2py] Re: faulty show_if case

2014-11-08 Thread 'DenesL' via web2py-users
May I ask in which release is it fixed?. Just re-downloaded 2.9.11 and it has the exact same problem as 2.9.5 Any request for help should including as much info as required to reproduce it, the easier one makes it for others to test the more likely you will get the help you need. Denes On Sat

[web2py] packaging an app

2014-11-08 Thread António Ramos
Hello , my app has in the upload folder around 5Gb of files. If i want to pack it i will have a big w2p file. Its not pratical because the idea to share an app relates to the code, not the data itself. So i think it should have the possibility to pack with/without data Regards António --

Re: [web2py] Re: about sql.log

2014-11-08 Thread António Ramos
Well, i did something so stupid i should not tell you i copied db.py to db1.py to "play around" with it (i dont use git so far ) :PPP Problem solved . Thank you 2014-11-08 12:07 GMT+00:00 Niphlod : > please post your DAL instantiation and your model definition. You're > somewhere stuck betwee

[web2py] Re: Deploying web2py-based service along with no-web2py main site

2014-11-08 Thread Niphlod
you don't need rocket. you need two virtualserver directives, one handling the site at xxx.com and the other handling the web2py site at subdomain.xxx.com On Friday, November 7, 2014 11:33:44 PM UTC+1, Dmitry Vlasov wrote: > > Thanks. But should I reconfigure Apache for this? How can I do it? On

[web2py] Re: faulty show_if case

2014-11-08 Thread Niphlod
already fixed. For the future: - avoid reporting bugs without examples - check if the bug is still in the latest version (2.9.5 is 8 months ago!) :-P On Saturday, November 8, 2014 12:59:50 AM UTC+1, DenesL wrote: > > Sure: > > # news.py model: > db.define_table('news', > Field('category','inte

[web2py] Re: RFC on component trap form, serialize also the button used to submit the form

2014-11-08 Thread Niphlod
we're talking about something that goes on only on click. I feel more "safe" knowing that if some weird things are going on with either the name or the value, it'll be handled by jquery "serialize()", as any other field. Performance-wise, it's something that happens client-side, so no worries.

[web2py] Re: about sql.log

2014-11-08 Thread Niphlod
please post your DAL instantiation and your model definition. You're somewhere stuck between migration or having fake migration turned on at all times. On Saturday, November 8, 2014 12:47:11 PM UTC+1, Ramos wrote: > > i see the file c8b669d15150d7109e5f7ab36744a5b7_lixo.table as new file > but

[web2py] Re: about sql.log

2014-11-08 Thread António Ramos
i see the file c8b669d15150d7109e5f7ab36744a5b7_lixo.table as new file but my initial email was about table trabalhador and i see the file 71af41af6457e21d6c7414e7ccb45c9a_trabalhador.table as last modified in 2013 I need help here 2014-11-08 11:39 GMT+00:00 António Ramos : > I just create ano

[web2py] Re: about sql.log

2014-11-08 Thread António Ramos
I just create another table my model db.define_table('lixo', Field('status','integer',default=0), Field('situation','integer',default=1) ) sql.log timestamp: 2014-11-08T11:37:43.948890 CREATE TABLE lixo( id INTEGER PRIMARY KEY AUTOINCREMENT, status INTEGER, situation INTEG

[web2py] about sql.log

2014-11-08 Thread António Ramos
hello i added a field in my table but dont see it in admin Also changed the label of another field and in admin still see the old label. Then i opened the sql.log and i see the alter table to add that field and then i see a lot if sequential success! like this success! success! success! success! s

Re: [web2py] Re: how to accept args

2014-11-08 Thread Kiran Subbaraman
Your db query code in the controller needs to be modified. You need a select() statement. || personID=db(db.auth_user(request.args(0)))*.select()** * || Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sat, 08-11-2014 1:55 PM, Alex Glaros wrote

[web2py] Re: how to accept args

2014-11-08 Thread Alex Glaros
If I just have this in the html and nothing else: {{=personID}} This gets displayed: 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