[web2py] Re: Hiding submit button on Crud forms

2014-07-20 Thread Giacomo Dorigo
I also did't find how to do that with CRUD, neither understood if there's a way to customize the submit button label. On Friday, July 1, 2011 3:16:04 AM UTC+2, mr.freeze wrote: Hello! I've been away for a while but am diving back into web2py for a new project. I want to host my Crud forms

[web2py] Bootstrap is really killing web2py

2014-07-20 Thread Moustafa Mahmoud
I have been using web2py for 3 years know, and I was really impressed by it, I defended it in every discussion, even implemented all my projects using it and even convinced my Graduation Project Team to use it in our GP. However, as my skill increased and I began looking more into customizing

[web2py] web2py grid Serch and query

2014-07-20 Thread Rohit Raj Sharma
how to limit the list which come by clicking on the sqlgrid default search. I have 10 fields in table. i do not want to show all the fields on list of default search. Can it possible to customize the list of default search widget. this i can in html drop down, but that is very complex and

[web2py] Re: How to deploy web2py under existing host

2014-07-20 Thread chuan137
bump On Wednesday, July 16, 2014 11:03:58 AM UTC+2, chuan137 wrote: Hi All, I have to install web2py as part existing VirtualHost. It is serving a few directories, and web2py folder is one of them. this is my settings under VirtualHost superhostname:80 WSGIScriptAlias /newstatus

[web2py] Re: is_gae in AutoComplete widget is not set on GAE devserver

2014-07-20 Thread genadij razdorov
Yes it works. Thanks for your help. On Wednesday, July 9, 2014 2:08:04 PM UTC+2, Massimo Di Pierro wrote: Can you check if the fix in trunk works for you? Thanks for reporting this problem. On Tuesday, 8 July 2014 07:26:13 UTC-5, genadij razdorov wrote: It seems that if is_gae: in

[web2py] auth.settings.formstyle='bootstrap3' doesn't apply to Verify Password Field ?

2014-07-20 Thread Moustafa Mahmoud
I am trying to migrate to bootstrap3, when I try to change the form style to bs3 , all the elements of registration form convert correctly except for Verify Password field, In fact the html for this particular field is different from the other form fields, is there a solution for that ? what

[web2py] how to get two selected form.vars?

2014-07-20 Thread Maria Levchenko
I'm trying to get two selected form.vars as args, but fail on it. There is a list of text's names, have to return two selected text. In controller: def index(): options = [OPTION(texts.title, _value=texts.id) for texts in test().select(test.slovar.ALL)] form=FORM(TABLE(TR(Select first

[web2py] First web2py app

2014-07-20 Thread Sif Baksh
My very first besides the Hello World. It's pulling data from a RESTful Server and the output is JSON. We have 52 entries in our Config Templates and it just prints out one under web2py. When I run this in web2py it only return one result: def index(): import requests import json

[web2py] I used auth() to create login page,now I would want to change the color of the font

2014-07-20 Thread bhavana r
since the default black color font is not seen on my page clearly(because of the background color of the page which overlaps) i would want to change the color of the font.Please suggest on how I modify the color and bgcolor of the form defined in auth() -- Resources: - http://web2py.com -

Re: [web2py] Is it possible to get an _onclick prompt variable to send to the controller?

2014-07-20 Thread ucmyih
Hi Richard, Thanks for the reply! I decided to go with an easier solution due to time constraints but I'm still very interested in how my issue would've been solved. You mention to pass the _onclick variable as a kwarg but the A() helper would not accept it. Also, I do not understand how I

[web2py] Compiling web2py application to run as a native android app

2014-07-20 Thread eric cuver
it is possible compiling web2py application as a native android app ? if it possible how we do ? thanks -- 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) ---

[web2py] Help building a query to use in SQLFORM.grid

2014-07-20 Thread asumal
Hello everyone, I am having troubles building a query that can be used in SQLFORM.grid. #models db.define_table('boats', Field('category_of_boat'), Field('value_of_boat')) I want to get the the record with the smallest value for each category, but I don't know how to properly use aggregate

[web2py] Re: Problem with Google Fonts

2014-07-20 Thread Thiago Duarte
I'm sorry, I had not understood the hint between parenthesis. Thank you for your answer and explanation. Em quinta-feira, 17 de julho de 2014 08h05min17s UTC-3, Leonel Câmara escreveu: Thiago by removing http it uses whatever protocol you're using. So my solution would also have worked.

[web2py] Return only shows one value

2014-07-20 Thread Sif Baksh
Greetings all first attempt to write an app besides Hello world. I can run the script below as a python script and it returns 52 entries. When I run it in web2py it only show me one result. It's an API call that get results in JSON format. def index(): import requests import json

[web2py] Re: Compiling web2py application to run as a native android app

2014-07-20 Thread Massimo Di Pierro
You can install web2py as an android app.This is old but should still work. http://www.web2pyslices.com/slice/show/1490/how-to-install-web2py-on-android-for-fun-without-rooting-the-device Than you have web2py start your app locally. On Friday, 18 July 2014 11:33:20 UTC-5, eric cuver wrote: it

[web2py] Re: Bootstrap is really killing web2py

2014-07-20 Thread Massimo Di Pierro
I agree. this is a priority. Mind that since git revision ae0749d6b8b9d0bf111c395674f629f3a1e48cfc we had boostrap 3 support. We reverted it because people were not happy with the implementation. The issue here is should support only bs2 and bs3 in grid or should we support arbitrary css via

[web2py] Re: how to get two selected form.vars?

2014-07-20 Thread Massimo Di Pierro
SELECT(*options, name=first) ...and... SELECT(*options, name=second) should be SELECT(*options, _name=first) ...and... SELECT(*options, _name=second) Anyway, args are validated and this may create problems. How about this? def index(): options = [OPTION(texts.title, _value=texts.id) for

[web2py] Re: First web2py app

2014-07-20 Thread Massimo Di Pierro
I am not sure what you mean by: for entry in decoded['config_templates']: return entry['name'] why do you have a return in a loop? It will only return the first time. The cli may do something unusual. On Friday, 18 July 2014 16:15:11 UTC-5, Sif Baksh wrote: My very first besides

[web2py] Re: Bootstrap is really killing web2py

2014-07-20 Thread Anthony
Can you give examples of things that work only with Bootstrap 2? On Friday, July 18, 2014 3:17:34 PM UTC-4, Moustafa Mahmoud wrote: I have been using web2py for 3 years know, and I was really impressed by it, I defended it in every discussion, even implemented all my projects using it and

[web2py] Re: auth.settings.formstyle='bootstrap3' doesn't apply to Verify Password Field ?

2014-07-20 Thread Massimo Di Pierro
Look into git commit 666a389718bf19ed114db9485767c684630177e9 Diff sqlhtml.py, html.py and welcome/* Almost all you need it there. On Friday, 18 July 2014 19:59:14 UTC-5, Moustafa Mahmoud wrote: I am trying to migrate to bootstrap3, when I try to change the form style to bs3 , all the

[web2py] Re: Hiding submit button on Crud forms

2014-07-20 Thread Massimo Di Pierro
Please do not use crud. That code has not been touched in 3 years. There is really nothing in crud that cannot be done better with SQLFORM(..).process() On Saturday, 19 July 2014 03:30:31 UTC-5, Giacomo Dorigo wrote: I also did't find how to do that with CRUD, neither understood if there's a

[web2py] Re: Selecting posts with multiple categories

2014-07-20 Thread Massimo Di Pierro
Good point. There are various ways 1) add a virtual fields fetches them for each row 2) add a virtual field that fetches and cached per each request 3) denormalize the database and add a Field('categories','list:string categories') and you keep in sync with the link table. On Saturday, 19 July

[web2py] Re: Selecting posts with multiple categories

2014-07-20 Thread Ruud Schroen
I went for the virtual field approach. My field in my model: #Virtual field for showing categories in view def categories(row): links = db(db.post_to_cat.post_id == row.blog_post.id).select() ids = [{'name':l.cat_id.name, 'slug':l.cat_id.slug} for l in links] return ids #Appending

[web2py] Re: how to get two selected form.vars?

2014-07-20 Thread Maria Levchenko
Massimo, you saved me. Thanks a lot! -- 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 Google

[web2py] Re: auth.settings.formstyle='bootstrap3' doesn't apply to Verify Password Field ?

2014-07-20 Thread Moustafa Mahmoud
Sorry I don't mean to be ignorant here but when i check this commit i find no change in the given files , can you please point me to the right direction here ? On Sunday, July 20, 2014 5:33:06 PM UTC+2, Massimo Di Pierro wrote: Look into git commit 666a389718bf19ed114db9485767c684630177e9

Re: [web2py] Re: Hiding submit button on Crud forms

2014-07-20 Thread Giacomo Dorigo
Thank you Massimo, I was sensing something like that :) On Sun, Jul 20, 2014 at 5:41 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Please do not use crud. That code has not been touched in 3 years. There is really nothing in crud that cannot be done better with

[web2py] rname and reserved names

2014-07-20 Thread Simon Ashley
Haven't used rname before but the way I read it it should work with reserved names. Have changed a given example to read: db.define_table('easy_name', Field http://127.0.0.1:8000/examples/global/vars/Field('position', rname='this_is_the_field_name'),

[web2py] Re: error(10053, 'An established connection was aborted by the software in your host machine')

2014-07-20 Thread Dmitry Ermolaev
I read mySQL stats When it error rise again: connections = 60 I restart Apache and connections falls to 5 and error 10053 disappeared. In my db.py - pool_size=25, #migrate=True, migrate=False, migrate_enabled=False, check_reserved=['all'], Why mySQL connection not closed?

[web2py] Re: rname and reserved names

2014-07-20 Thread Limedrop
The error message suggests that it is the field name (ie, position) that is reserved. On Monday, July 21, 2014 4:19:39 PM UTC+12, Simon Ashley wrote: Haven't used rname before but the way I read it it should work with reserved names. Have changed a given example to read:

[web2py] Re: error(10053, 'An established connection was aborted by the software in your host machine')

2014-07-20 Thread Dmitry Ermolaev
error appeared again. mySQL connections 27. I stopped the Apachi server but the connection still remained =27. I restart the mySQL database server and connections dropped to 4 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: rname and reserved names

2014-07-20 Thread Simon Ashley
Yep, agree with that but to quote Niphlod *For the ones in need of:* *- accessing legacy tables with some funny names * *- use reserved keywords for table and field names * https://groups.google.com/forum/#!msg/web2py/_q5qcARON4E/6JLCHM3eQHAJ -- Resources: - http://web2py.com -

[web2py] Re: rname and reserved names

2014-07-20 Thread Limedrop
I think you just need to turn the warning off. db = DAL(..., check_reserved=None) On Monday, July 21, 2014 5:05:06 PM UTC+12, Simon Ashley wrote: Yep, agree with that but to quote Niphlod *For the ones in need of:* *- accessing legacy tables with some funny names * *- use reserved