[web2py] Re: Help with setting up apps with virutualenv and nginx

2016-07-15 Thread Niphlod
take this as a blueprint https://git.io/vwN4U On Thursday, July 14, 2016 at 5:00:20 PM UTC+2, Jason Solack wrote: > > Hello all, > > I am trying to get my head around setting up apps

[web2py] Re: How to convert JSON to Web2py dict?

2016-07-15 Thread Marlysson Silva
Basically it's to use the json module with encode/decode, this convert json objets in objets python ( dict ) and vice-versa. Convert to python object ( dict ) and you use in web2py. Em sexta-feira, 15 de julho de 2016 03:48:09 UTC-3, pbreit escreveu: > > I can't seem to figure out how to convert

[web2py] Re: onvalidation error for nonSQLFORM but request.vars

2016-07-15 Thread lucas
hey everyone, i got it to work based on adding to the above code. it mimics the behavior of adding the little red error boxes to fields/vars that are not included in the original SQLFORM. here is what was added for anyone interested: under the view, i added: {{block head}} jQuery(document).r

Re: [web2py] Re: URL based internationalization and pattern router

2016-07-15 Thread Carlos Cesar Caballero Díaz
Hi Anthony, thanks for your suggestion, but I have more requeriments for the controllers and they will grow up, I think that your suggestion solves the problem, but in my case, the software will become dificult to maintain or extend in the future. Greetings. El 12/07/16 a las 15:02, Anthony e

[web2py] Re: How to convert JSON to Web2py dict?

2016-07-15 Thread Anthony
How about something like: import json data = json.loads(json_api_response)['data'] Now you have a list of dictionaries. Anthony On Friday, July 15, 2016 at 2:48:09 AM UTC-4, pbreit wrote: > > I can't seem to figure out how to convert the JSON that I'm getting back > from an API call to a Web2p

Re: [web2py] Re: How to display intermediate Data at html page, if function will run till 6-10 hours.

2016-07-15 Thread Anthony
On Wednesday, July 13, 2016 at 12:31:13 PM UTC-4, Chetan Jain wrote: > > Hi Anthony, > > >Scenario is : I've to send a 'status' SMS to a phone_number after every > 30 minutes and Append its Status statement on a webpage, Since I have to > send SMS after every 30 minutes, I have to call funct

[web2py] using SQLAlchemy with web2py

2016-07-15 Thread Joshua Haislip
I'm trying to use SQLAlchemy as our database toolkit and ORM within Web2py. I can create the session within db.py and access it within the controllers. However, I need to be able to call db.close() after the HTTP request completes. What would the best way to achieve this? Thanks, Josh -- R

[web2py] user name case sensitivity

2016-07-15 Thread kstesr123456
Team, I see the login user is case sensitive ,can we make it in-sensitive i.e to treat us...@gmail.com and us...@gmail.com as the same. Sri -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/we

[web2py] auth.settings.auth_two_factor_enabled = True gives me setting key 'auth_two_factor_enabled' does not

2016-07-15 Thread Bernardo Leon
Hello, I am trying to use two factor authentication for my entire app so I have my model like this: db = DAL('sqlite://database.db', migrate_enabled=False, lazy_tables=True) auth = Auth(db) auth.define_tables(username=True, signature=True) auth.settings.actions_disabled.append('register') auth.se

[web2py] Re: dumbest question ever: how do you jump to line in the w2p ide

2016-07-15 Thread Bernardo Leon
Mmm I have no idea but can I suggest you to use pycharm? After all it integrates with web2py and being a full teatured IDE you can jump to lines, set breakpoints, code completion and more, check this: https://www.jetbrains.com/help/pycharm/2016.1/web2py.html El viernes, 3 de junio de 2016, 16:5

[web2py] Re: dumbest question ever: how do you jump to line in the w2p ide

2016-07-15 Thread Bernardo Leon
El viernes, 3 de junio de 2016, 16:51:01 (UTC-5), Mark Billion escribió: > > I cant find this anywhere, but Ive seen it somewhere. Say Im editing in > the admin application and want to jump to line 1000. Whats the key binding > for it? > > Feel free to heckle as long as you also provide the a

[web2py] Re: dumbest question ever: how do you jump to line in the w2p ide

2016-07-15 Thread Dave S
On Friday, June 3, 2016 at 2:51:01 PM UTC-7, Mark Billion wrote: > > I cant find this anywhere, but Ive seen it somewhere. Say Im editing in > the admin application and want to jump to line 1000. Whats the key binding > for it? > > Feel free to heckle as long as you also provide the answer ;)

[web2py] auth.settings.auth_two_factor_enabled = True gives me setting key 'auth_two_factor_enabled' does not

2016-07-15 Thread Anthony
Which version of web2py? Also, note that you must define extra fields before calling auth.define_tables. And there is no reason to wrap your two callback functions in lamdas - they already have the proper signature as is. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Doc

[web2py] How to export sqlform.grid with the labeled column names

2016-07-15 Thread Jordan Myers
Hey everyone, so the default csv exporters for sqlform.grid will use the headers as the 'database' names, but I would rather it use the field.label instead. For example, take this table: db.define_table('my_table', Field('ugly_name', label='Pretty Name')) A sqlform.grid on my_table will displa