[web2py] Re: sqlform.grid default search value

2014-09-07 Thread Oli
try this little app: https://w2p.pythonanywhere.com/defaultSearch/default/index no search:https://w2p.pythonanywhere.com/defaultSearch/default/index with search: https://w2p.pythonanywhere.com/defaultSearch/default/index?keywords=Bill Am Freitag, 5. September 2014 15:13:58 UTC+2 schrieb

[web2py] Re: Deployment of Web2py Framework on Linux redhat version 6 then configure with apache

2014-09-07 Thread Oli
have a look to the book: http://web2py.com/books/default/chapter/29/09/access-control?search=apache Am Samstag, 6. September 2014 07:23:55 UTC+2 schrieb Kamal Mohemed: > > Hi to everyone, > > I downloaded web2py frame work and run on the web2py default server it is > working fine, but we want th

[web2py] Sass support example for web2py.

2014-09-07 Thread Encompass solutions
I use templates from wrapbootstrap a lot. 3 times a month even. Sadly however, it's getting harder and harder to use those templates with web2py due to no support be it built-in or not, for SASS, LESS, and others getting much more popular. How can I make it so I code my css in SASS but to the cl

[web2py] extra_fields can't showed in auth_user db.

2014-09-07 Thread olivier hubert
I use the web2py version 2.9.8. I create a simple new app "test_auth" In Models I add "my_tables.py" with the contents below. # -*- coding: utf-8 -*- #Add authentication to the app. from gluon.tools import Auth auth = Auth(db, hmac_key=Auth.get_or_create_key()) *#Add some fields in auth_user

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-07 Thread olivier hubert
I encounter exactly the same issue if you try to open the db administration page in a app. Le dimanche 7 septembre 2014 01:19:31 UTC+2, Luciano Laporta Podazza a écrit : > > Same issue :(, as mentioned before, tried testing default apps and my app > and it redirects to admin page. > > > On Sat,

[web2py] Re: apply a function to a column in db query

2014-09-07 Thread Anna Kostikova
Thanks a lot Anthony, it really helped! Anna On Sunday, 7 September 2014 03:34:42 UTC+2, Anthony wrote: > > For transformation for display in the grid, SQLTABLE, and read-only form > fields, you can use the "represent" attribute of the field: > > db.define_table('mytable', > Field('mytime', r

[web2py] What is the final answer of default/second.html in Documentation (Postbacks/Internationalization)?

2014-09-07 Thread terencenwk
Regarding to Postbacks in Documentation: http://web2py.com/books/default/chapter/29/03/overview#Postbacks (1) What is the final answer of default/second.html if the the default controller finally changed to: def first(): form = SQLFORM.factory(Field('visitor_name', requires=IS_NOT_EMPTY()))

[web2py] Re: web2py setup scripts for windows

2014-09-07 Thread daniel . jarolim
I have notes on running web2py with IIS because nothing out there, including in recipes works. Specifically these notes are for 64 bit rather than 32 bit and using isapi_wsgi rather than fastcgi. (ISAPI is faster). Here they are pretty much verbatim. It looks messy but is actually very simple,

[web2py] Edit the auth_user table and profile page

2014-09-07 Thread Ricardo Watanabe Bento
Hello there, I am new to web2py and learning by making a simple Social Network app, I got started with the image blog app found on github/appliances (https://github.com/mdipierro/web2py-appliances). First I added this table: auth.settings.extra_fields['auth_user']= [ Field('profile_picture

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-07 Thread Massimo Di Pierro
This is now solved in 2.9.8 On Sunday, 7 September 2014 03:45:45 UTC-5, olivier hubert wrote: > > I encounter exactly the same issue if you try to open the db > administration page in a app. > > Le dimanche 7 septembre 2014 01:19:31 UTC+2, Luciano Laporta Podazza a > écrit : >> >> Same issue :(,

[web2py] Re: Edit the auth_user table and profile page

2014-09-07 Thread Massimo Di Pierro
def profile(): return dict() and for the view: On Sunday, 7 September 2014 04:30:08 UTC-5, Ricardo Watanabe Bento wrote: > > Hello there, I am new to web2py and learning by making a simple Social > Network app, I got started with the image blog app found on github/appliances >

[web2py] Re: What is the final answer of default/second.html in Documentation (Postbacks/Internationalization)?

2014-09-07 Thread Massimo Di Pierro
This should work fine: form = SQLFORM.factory(Field('visitor_name', requires=IS_NOT_EMPTY(), label=T('what is your name?'))) On Sunday, 7 September 2014 04:49:08 UTC-5, terencenwk wrote: > > Regarding to Postbacks in Documentation: > http://web2py.com/books/default/chapter/29/03/overview#Postbac

[web2py] Re: extra_fields can't showed in auth_user db.

2014-09-07 Thread Massimo Di Pierro
I cannot reproduce the problem. Mind that you do not need auth = Auth(db, hmac_key=Auth.get_or_create_key()) should be auth = Auth(db) On Sunday, 7 September 2014 07:54:27 UTC-5, olivier hubert wrote: > > I use the web2py version 2.9.8. > I create a simple new app "test_auth" > > In Models

[web2py] Re: web2py setup scripts for windows

2014-09-07 Thread Massimo Di Pierro
Thanks. This should go in the book. On Sunday, 7 September 2014 05:48:48 UTC-5, daniel@gmail.com wrote: > > I have notes on running web2py with IIS because nothing out there, > including in recipes works. Specifically these notes are for 64 bit rather > than 32 bit and using isapi_wsgi rathe

Re: [web2py] Sass support example for web2py.

2014-09-07 Thread António Ramos
check this https://github.com/ramstein74/Coffee_Jade_Stylus_inside_web2py 2014-09-07 16:30 GMT+01:00 Encompass solutions : > I use templates from wrapbootstrap a lot. 3 times a month even. > Sadly however, it's getting harder and harder to use those templates with > web2py due to no support b

[web2py] Re: web2py setup scripts for windows

2014-09-07 Thread Niphlod
uhm.. things are far more easier since python for visual studio came in this year with wfastcgi.py and it requires IIS 7. assuming: - python is on c:\python27\python.exe and you downloaded wfastcgi that installs itself on c:\python27\scripts - your r

Re: [web2py] Sass support example for web2py.

2014-09-07 Thread Niphlod
BTW: there's a reason why they're called PRE-processors. Because they are meant to "refresh" the dest just when the source is changed, not everytime they're served to the client (or they'll be called processors :-P). use what ramos pointed at (that is basically a preconfigured gulp config (altho

[web2py] Re: web2py resources

2014-09-07 Thread nick name
A nice web2py tutorial: https://impythonist.wordpress.com/2014/02/15/web2py-a-simpleclean-but-powerful-webframework-in-python/ Shamelessly copied to the DigitalOcean community board: https://www.digitalocean.com/community/tutorials/how-to-use-the-web2py-framework-to-quickly-build-your-python-app

[web2py] Re: a proposal for form improvement

2014-09-07 Thread Alex
this sounds very interesting, definitely a nice addition. Although I hope the current SQLFORM will not be deprecated. Usually I prefer to create my html forms server side. I use a function to extract all form elements so I can create my forms more flexible, maybe this is useful for others: de

[web2py] Re: a proposal for form improvement

2014-09-07 Thread Leonel Câmara
Alex did you just reinvent custom forms? -- 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 Googl

[web2py] Re: web2py 2.9.8 fixes the appadmin redirection problem!

2014-09-07 Thread Alex
thanks Massimo and all web2py devs for your great work! Alex Am Sonntag, 7. September 2014 07:06:06 UTC+2 schrieb Massimo Di Pierro: > > The problem was introduced in 2.9.7. So skip 2.9.7. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/

[web2py] Re: a proposal for form improvement

2014-09-07 Thread Anthony
> > def get_form_fields(form): > formfields = dict() > for c in form.elements('input, select, textarea'): > name = c.attributes['_id'] > formfields['c_' + name] = c > for l in form.elements('label'): > name = l.attributes['_for'] > formfields['l_' + na

[web2py] Re: a proposal for form improvement

2014-09-07 Thread Alex
I didn't know of custom forms. Maybe it's something that wasn't available when I started with my forms (using v2.4.6) or I just missed it. Actually I'm doing a little bit more in my form function (e.g. setting maxlength attribute depending of length value of field) but I guess this could also

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-07 Thread Luciano Laporta Podazza
Tested, works like a charm!. Thanks! On Sep 7, 2014 12:34 PM, "Massimo Di Pierro" wrote: > This is now solved in 2.9.8 > > On Sunday, 7 September 2014 03:45:45 UTC-5, olivier hubert wrote: >> >> I encounter exactly the same issue if you try to open the db >> administration page in a app. >> >> L

Re: [web2py] Sass support example for web2py.

2014-09-07 Thread Encompass solutions
I understand. Gulp might be my ticket here. Let me learn more about it. BR, Jason Brower On Sunday, September 7, 2014 9:30:34 PM UTC+3, Niphlod wrote: > > BTW: there's a reason why they're called PRE-processors. Because they are > meant to "refresh" the dest just when the source is changed, no

[web2py] Re: dynamically add rows to html table

2014-09-07 Thread Andrew Buchan
Hi, If you mean adding rows to the TABLE object it's as simple as: table1 = TABLE() table1.append(TR()) If you are asking about how to make the button do it, your best bet is to use an ajax call to rebuild the table and send it to a div. Make sure your table is in a div with a set id. Create

[web2py] gluon folder not in my web2py directory

2014-09-07 Thread Nico de Groot
Hello Joe, Please use the source edition of Web 2py. See the website, download section. Nico de Groot -- 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) --- Y