[web2py] Re: Bootstrap is really killing web2py

2014-07-23 Thread Gael Princivalle
Hello Moustafa. I agree with you and hope that we'll have soon a fully Bootstrap 3 web2py version. Il giorno venerdì 18 luglio 2014 21:17:34 UTC+2, Moustafa Mahmoud ha scritto: I have been using web2py for 3 years know, and I was really impressed by it, I defended it in every discussion,

[web2py] Re: Display registration error for auth.register_bare()

2014-07-23 Thread Massimo Di Pierro
Both are good suggestions. On Tuesday, 22 July 2014 11:55:33 UTC-5, Mark Li wrote: Hey Massimo! Just for clarification, are you referring to opening a ticket for: 1. auth.register() only showing a flash msg on registration error, without a page reload OR 2. auth.register_bare()

[web2py] Re: Can not import copy_reg

2014-07-23 Thread Massimo Di Pierro
Can you try from the web2py shell? python web2py.py -S welcome -P On Tuesday, 22 July 2014 13:04:18 UTC-5, Richard wrote: Yes, I can import copy_reg from the Python prompt on the remote server. On Tuesday, July 22, 2014 1:21:36 PM UTC+2, Massimo Di Pierro wrote: Copy reg is a python

[web2py] Re: web2py.com up and down all day

2014-07-23 Thread Massimo Di Pierro
It is up now. Not sure what the problem was. On Tuesday, 22 July 2014 16:08:26 UTC-5, Jim S wrote: FWIW - here is the pythonanywhere message that is returned: Something went wrong :-( This website is hosted by PythonAnywhere, an online hosting environment. Something went wrong while

Re: [web2py] Facebook Oauth Login + Posting

2014-07-23 Thread EvilLinux
Hi Michele, Sorry for a very late reply but I just wanted to say thank you very much as this solved my issue. I decided to pick this project up again earlier today and this helped me move along to other things with it that I am playing around to figure out. Thank you again, EvilLinux On

[web2py] Re: web2py - show data from a MongoDB Document as a grid

2014-07-23 Thread Nicola Barbieri
Thanks for the prompt answer, Massimo. Any suggestion on how I could approach my problem? My goal would basically just query and show the records present in the MongoDB document shown in the post. Thanks, Nicola On Tuesday, July 22, 2014 8:37:48 AM UTC+2, Massimo Di Pierro wrote: web2py

[web2py] Re: simplify parse_as_rest pattern?

2014-07-23 Thread chuan137
Maybe you want to expand the functionality for parse_as_rest(), since from the menu, there reads experimental feature. I would be interesting to get involved in the discussions. On Tuesday, July 22, 2014 8:40:28 AM UTC+2, Massimo Di Pierro wrote: currently no. On Monday, 21 July 2014

[web2py] Re: Bootstrap is really killing web2py

2014-07-23 Thread Massimo Di Pierro
we should have a new web2py version by mid August, including bs3. On Wednesday, 23 July 2014 01:57:59 UTC-5, Gael Princivalle wrote: Hello Moustafa. I agree with you and hope that we'll have soon a fully Bootstrap 3 web2py version. Il giorno venerdì 18 luglio 2014 21:17:34 UTC+2, Moustafa

Re: [web2py] Getting more rows from a table without jQuery, PHP, etc

2014-07-23 Thread Thiago Duarte
I'm glad to know I won't need PHP. Thank you for the answer and link! -- 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

[web2py] Re: First web2py app

2014-07-23 Thread Sif Baksh
Massimo, Thank you so much that did it, and now it make's life so much easier :) Not I can also pass each Template ID and make a HyperLink to view the text as well. This is great man, thanks for the help Sif On Tuesday, July 22, 2014 12:43:05 AM UTC-6, Massimo Di Pierro wrote: I understand

[web2py] Re: Can not import copy_reg

2014-07-23 Thread Richard
When I add the import copy_reg in db.py I get the error: type 'exceptions.ImportError' No module named copy_reg In the python/Python-2.7.8/Lib directory are 3 copy_reg files: - copy_reg.py - copy_reg.pyc - copy_reg.pyo Maybe of any relevance: I run a shared Apache server with the following

[web2py] Re: Can not import copy_reg

2014-07-23 Thread Massimo Di Pierro
I understand but can you open a web2py shell. from the console type: $ cd web2py $ python web2py.py -S welcome -P import copy_reg On Wednesday, 23 July 2014 04:03:48 UTC-5, Richard wrote: When I add the import copy_reg in db.py I get the error: type 'exceptions.ImportError' No module

[web2py] Re: simplify parse_as_rest pattern?

2014-07-23 Thread Massimo Di Pierro
Actually I wanted to deprecate it in favor of the new hypermedia API. On Tuesday, 22 July 2014 07:43:08 UTC-5, chuan137 wrote: Maybe you want to expand the functionality for parse_as_rest(), since from the menu, there reads experimental feature. I would be interesting to get involved in

[web2py] Re: web2py - show data from a MongoDB Document as a grid

2014-07-23 Thread Massimo Di Pierro
I suggest you open a ticket about this and we could create an API to allow it. Yet this is very specific of mongodb and the grid is not really setup for this. On Tuesday, 22 July 2014 10:47:28 UTC-5, Nicola Barbieri wrote: Thanks for the prompt answer, Massimo. Any suggestion on how I

[web2py] Managing 600MB size files on Google Cloud with web2py

2014-07-23 Thread Giacomo Dorigo
Hello everybody, I am writing an app for storing and delivering files more or less from 3 up to 600Mb size. I would like to rely on Google App Engine for running my web2py instance. What I am wondering if it's better to store the data directly in the Google not relational datastore (Google Cloud

[web2py] Re: Can not import copy_reg

2014-07-23 Thread Richard
Massimo, importing copy_reg from the console works fine :) Richard On Wednesday, July 23, 2014 11:20:06 AM UTC+2, Massimo Di Pierro wrote: I understand but can you open a web2py shell. from the console type: $ cd web2py $ python web2py.py -S welcome -P import copy_reg On Wednesday,

[web2py] Re: Can not import copy_reg

2014-07-23 Thread Niphlod
I'd vote for the usual issue with apache and mod_wsgi not compiled against the latest interpreter On Wednesday, July 23, 2014 11:40:14 AM UTC+2, Richard wrote: Massimo, importing copy_reg from the console works fine :) Richard On Wednesday, July 23, 2014 11:20:06 AM UTC+2, Massimo Di

Re: [web2py] Re: on_define example to improve the book: please help.

2014-07-23 Thread Niphlod
on_define was specifically created to keep lazy tables lazy. If lazy tables did not exist, on_define would have been useless. Historically, large pieces of examples relied on something like db.define_table('b', Field('c')) db.b.c.default = 'me' db.b.c.requires = IS_IN_SET(('me', 'you')) I

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

2014-07-23 Thread Ruud Schroen
Just override the class that web2py gives the form in a css file like: .web2py-class { color:#FF; } On Saturday, July 19, 2014 2:56:08 PM UTC+2, bhavana r wrote: since the default black color font is not seen on my page clearly(because of the background color of the page which overlaps)

Re: [web2py] Re: on_define example to improve the book: please help.

2014-07-23 Thread Tim Richardson
On Wed, Jul 23, 2014 at 8:37 PM, Niphlod niph...@gmail.com wrote: ATM, what I'm using on_define for is only database callbacks. I didn't know it existed until I looked at the code :) Thanks. rname is finally documented in my PR, as well. -- *Tim Richardson, Director* GrowthPath,

[web2py] Re: Can not import copy_reg

2014-07-23 Thread Richard
The issue does not occur on my local development machine. I did an upgrade on the remote host where the issue occurs using the web2py update feature. Then I upgraded from Python 2.6 to 2.7.8. All apps works fine but not the one where I add features to auth. How should resolve this in a manner

Re: [web2py] Re: Bootstrap is really killing web2py

2014-07-23 Thread Vinicius Assef
On Wed, Jul 23, 2014 at 4:53 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: we should have a new web2py version by mid August, including bs3. Adding BS3 or replacing BS2 with BS3? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: web2py.com up and down all day

2014-07-23 Thread Jim S
Massimo I also sent a note to PythonAnywhere. I received a response stating that they were having issues with the server on which web2py.com is hosted. They have a fix in place. I'll get back in touch with them if the problem persists today. -Jim On Wednesday, July 23, 2014 2:51:47 AM

[web2py] Re: Bootstrap is really killing web2py

2014-07-23 Thread Anthony
Maybe I'm missing something, but I'm still not sure how Bootstrap 2 is killing web2py. I think the only thing that defaults to Bootstrap 2 styling is the grid, but it now also includes Bootstrap 3 classes. However, it also includes a jQuery-UI theme and can be customized for other CSS

[web2py] Re: REF: Displaying a Virtual Field in SQLFORM.grid throws an exception....

2014-07-23 Thread Adam Filić
One year later I still can't display virtual field in the SQLFORM.grid with an error: type 'exceptions.AttributeError' 'Row' object has no attribute 'broj' And my virtual field is defined as: db.define_table('fin_fis', Field('god','integer',label=T('Year')), Field('pod','reference

[web2py] Re: REF: Displaying a Virtual Field in SQLFORM.grid throws an exception....

2014-07-23 Thread Anthony
I think the problem is that your virtual field depends on some fields you have not included in your grid, so the virtual field values cannot be calculated. Instead of specifying the fields argument, you can hide particular fields from the grid by setting their readable attribute to False. In

[web2py] Multiple Routes - Same App

2014-07-23 Thread 'Michael Gheith' via web2py-users
What I'm trying to do is to have my application serve 2 different customers via URLs like the following: http://127.0.0.1:8000/sam/client1/appname/default/index http://127.0.0.1:8000/sam/client2/appname/default/index My routes.py looks like: routes_in = (

Re: [web2py] Re: REF: Displaying a Virtual Field in SQLFORM.grid throws an exception....

2014-07-23 Thread Adam Filić
Yes, you are right. That was the problem and it shows up in the grid now, but I can't see it in the view form. All included fields are readable. Thank you 2014-07-23 17:53 GMT+02:00 Anthony abasta...@gmail.com: I think the problem is that your virtual field depends on some fields you have not

Re: [web2py] Re: REF: Displaying a Virtual Field in SQLFORM.grid throws an exception....

2014-07-23 Thread Anthony
True, readonly forms do not show virtual fields. Perhaps submit a Google Code issue requesting that feature. Anthony On Wednesday, July 23, 2014 12:44:30 PM UTC-4, Adam Filić wrote: Yes, you are right. That was the problem and it shows up in the grid now, but I can't see it in the view

[web2py] Bootstrap datepicker plugin

2014-07-23 Thread Leonel Câmara
So web2py's datepicker is horribly ugly this is yet another plugin to change it using http://www.eyecon.ro/bootstrap-datepicker. This one works nicely with bootstrap 3. To use it simply import: from plugin_bs_datepicker import bsdatepicker_widget And then, in your field, set it as the widget

Re: [web2py] Re: Bootstrap is really killing web2py

2014-07-23 Thread Vinicius Assef
+1 On Wed, Jul 23, 2014 at 10:45 AM, Anthony abasta...@gmail.com wrote: Maybe I'm missing something, but I'm still not sure how Bootstrap 2 is killing web2py. I think the only thing that defaults to Bootstrap 2 styling is the grid, but it now also includes Bootstrap 3 classes. However, it

[web2py] Re: Bootstrap datepicker plugin

2014-07-23 Thread Niphlod
the only problem with various datepickers is internationalization. I'm a big fan of ISO format but finding a datepicker that adapts itself to strftime behaviour always seems to escape js developers ^_^ On Wednesday, July 23, 2014 8:40:47 PM UTC+2, Leonel Câmara wrote: So web2py's datepicker

[web2py] Re: Can not import copy_reg

2014-07-23 Thread Niphlod
I seem to be the only advocate for ditching apache always and before anything else (especially before going into production, where a not-so-well-tuned apache (most-likely you're using everybody's else defaults) still suffers a Slowloris attack). Those kind of headaches are non-existent with

Re: [web2py] Re: on_define example to improve the book: please help.

2014-07-23 Thread Niphlod
thank you as well for your efforts in improving documentation On Wednesday, July 23, 2014 1:01:05 PM UTC+2, Tim Richardson wrote: On Wed, Jul 23, 2014 at 8:37 PM, Niphlod nip...@gmail.com javascript: wrote: ATM, what I'm using on_define for is only database callbacks. I didn't know

[web2py] Re: Can not import copy_reg

2014-07-23 Thread Richard
Thank you for the answer, I did hope for an other answer but i'll go in the Google mode. i'll keep you informed about the progress. On Wednesday, July 23, 2014 9:45:45 PM UTC+2, Niphlod wrote: I seem to be the only advocate for ditching apache always and before anything else (especially

Re: [web2py] Facebook Oauth Login + Posting

2014-07-23 Thread Michele Comitini
EvilLinux, Late replies are great! ;-) 2014-07-23 4:34 GMT+02:00 EvilLinux evilli...@gmail.com: Hi Michele, Sorry for a very late reply but I just wanted to say thank you very much as this solved my issue. I decided to pick this project up again earlier today and this helped me move

[web2py] Re: Display registration error for auth.register_bare()

2014-07-23 Thread Mark Li
Posted up a ticket for both suggestions: https://code.google.com/p/web2py/issues/detail?id=1955 https://code.google.com/p/web2py/issues/detail?id=1956 On Wednesday, July 23, 2014 12:49:01 AM UTC-7, Massimo Di Pierro wrote: Both are good suggestions. On Tuesday, 22 July 2014 11:55:33 UTC-5,

[web2py] secure password hashing on web2py

2014-07-23 Thread 黄祥
hi, did web2py have a secure password hashing by default? ref : http://www.cyberciti.biz/python-tutorials/securely-hash-passwords-in-python/ thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: Bootstrap datepicker plugin

2014-07-23 Thread Leonel Câmara
Niphlod if you look at my plugin's code you'll see that I took some precautions so that internationalization would work using the format defined in web2py_ajax.html on the variable w2p_ajax_date_format so if that's your concern you can probably use it. -- Resources: - http://web2py.com -

[web2py] Re: secure password hashing on web2py

2014-07-23 Thread Anthony
Yes, using PBKDF2: https://github.com/web2py/web2py/blob/master/gluon/validators.py#L2929 On Wednesday, July 23, 2014 7:47:23 PM UTC-4, 黄祥 wrote: hi, did web2py have a secure password hashing by default? ref : http://www.cyberciti.biz/python-tutorials/securely-hash-passwords-in-python/

[web2py] Re: Multiple Routes - Same App

2014-07-23 Thread lyn2py
You are pointing client1 and client2 to the same representation of the routes. It won't work properly. If you have separate domains for separate clients, see scripts/autoroutes.py If you want to serve customized to different clients, you might want to do

[web2py] Re: Suggestions for test driven development with web2py.

2014-07-23 Thread jjs0sbw
I am looking for Test Driven Development examples associated with Web2py... The material located at: http://killer-web-development.com/ Is interesting but filled with mistakes and errors... Does anyone have a more recent and/or clear introduction to Test Driven Design using Web2py?

[web2py] Returning grid rows where is_active == False

2014-07-23 Thread Henry Nguyen
I'm using SQLFORM.grid() to display a list of users from db.auth_user for an administrative interface. I'd like to display deleted users as well as active users. Is there any way to modify SQLFORM.grid() to display rows where is_active == False in addition to where is_active == True? Using