Re: [web2py] Getting type 'exceptions.ImportError' cannot import name table_field after upgrading to 2.12.3

2015-08-24 Thread Johann Spies
I had similar problems which convinced me to to stop using solidtable. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] folders structure for ajax requests

2015-08-24 Thread Dmitri Ermolaev
If I use ajax - it willl load all in /model - menus too but for what? ajax requests need in db + settings - and not need in menu My idea: - make separate folder /menus - it will be laded as layout.html -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Getting type 'exceptions.ImportError' cannot import name table_field after upgrading to 2.12.3

2015-08-24 Thread Paolo Valleri
see also https://github.com/kenji4569/sqlabs/issues/68 On Monday, August 24, 2015 at 3:23:24 PM UTC+2, Johann Spies wrote: I had similar problems which convinced me to to stop using solidtable. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips

Re: [web2py] Re: ldap import problem

2015-08-24 Thread Massimo Di Pierro
So the problem is that it cannot import ldal. Do you know it works from the normal python shell? import ldap Does it work from the web2py shell? On Monday, 24 August 2015 02:13:25 UTC-5, Johann Spies wrote: Thanks Richard and Massimo for your replies. Version

[web2py] Re: folders structure for ajax requests

2015-08-24 Thread Derek
put it in modules and import modules as you need them. On Monday, August 24, 2015 at 6:39:10 AM UTC-7, Dmitri Ermolaev wrote: If I use ajax - it willl load all in /model - menus too but for what? ajax requests need in db + settings - and not need in menu My idea: - make separate folder

[web2py] Re: SQLFORM.grid shows ids instead of names only in Linux

2015-08-24 Thread Antonio Salazar
Upgrading to 2.12.3-stable+timestamp.2015.08.19.00.18.03 solved the problem. I guess the moral of the history is Always use the same framework version in production and development. On Saturday, August 22, 2015 at 7:07:07 PM UTC-5, Massimo Di Pierro wrote: please try and let us know. On

Re: [web2py] Re: ldap import problem

2015-08-24 Thread Johann Spies
Thanks Richard and Massimo for your replies. Version 2.12.3-stable+timestamp.2015.08.18.19.14.07 Massimo, there is nothing in modules - only __init__.py This is a new app. Regards Johann -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Getting type 'exceptions.ImportError' cannot import name table_field after upgrading to 2.12.3

2015-08-24 Thread Rahul
Hi All, Recently I upgraded to version 2.12.3 and I am getting this type exception - I am using Plugin solidtable - Is there something that needs to be done differently or something that needs to be changed? Please suggest - Note: On version 2.9.5 it used to working just fine. type

[web2py] Re: SQLFORM.grid shows ids instead of names only in Linux

2015-08-24 Thread 黄祥
that's why there is configuration management software (puppet, chef, etc). we usually use it for environment separation purpose, like development (same like testing environment, but put it on the developer or engineer comp), testing (put it on server for testing purpose by system analist,

[web2py] Re: SQLFORM.grid shows ids instead of names only in Linux

2015-08-24 Thread Antonio Salazar
For now, I'm happy learning the quirks of web2py before trying learn the quirks of a configuration management tool. I've been hearing a lot of good things about configuration management, though. I'd like to at least setup a proof of concept before our linux vms become unwieldy. Thanks for the

Re: [web2py] Re: ldap import problem

2015-08-24 Thread Johann Spies
On 24 August 2015 at 16:20, Massimo Di Pierro massimo.dipie...@gmail.com wrote: So the problem is that it cannot import ldal. Do you know it works from the normal python shell? import ldap Does it work from the web2py shell? No, I cannot import ldap. I also tried it from another app

Re: [web2py] Getting type 'exceptions.ImportError' cannot import name table_field after upgrading to 2.12.3

2015-08-24 Thread Rahul
Thanks for getting back with replies For me I looked at the fix Added 2 lines to modules/plugin_solidtable.py import re table_field = re.compile('[\w_]+\.[\w_]+') I chose to add table_field statement to _create_td(...) function, where it is used. - However I was not able to make

[web2py] Add link to view a referenced table in SQLFORM.grid

2015-08-24 Thread Thomas Sitter
I have two tables that I'd like to link in SQLFORM.grid. db.define_table('customer', Field('firstname'), Field('lastname'), Field('account')) db.define_table('survey_data', Field('customer_id', 'reference customer'), Field('Q1'), Field('Q2'), Field('Q3')) In my SQLFORM I'd like to only