[web2py] Re: db._common_fields.append and Lazy_tables

2013-04-18 Thread Anthony
Have the auth tables been defined at that point. In any case, to avoid pre-mature table definition, try replacing auth.settings.table_user with: 'reference %s' % auth.settings.table_user_name Anthony On Thursday, April 18, 2013 7:51:19 AM UTC-4, Loïc wrote: Hello All consider the example

[web2py] Re: db._common_fields.append and Lazy_tables

2013-04-18 Thread Loïc
Great! Thank you Anthony Le jeudi 18 avril 2013 13:59:18 UTC+2, Anthony a écrit : Have the auth tables been defined at that point. In any case, to avoid pre-mature table definition, try replacing auth.settings.table_user with: 'reference %s' % auth.settings.table_user_name Anthony On

[web2py] Re: db._common_fields.append and Lazy_tables

2013-04-18 Thread Loïc
One more question Anthony, If I have other tables which reference themselves like : db.define_table('mytable',Field('myfield','string')) db.define_table('my_other_table',Field('myTable','reference mytable')) should I replace the* 'reference mytable' *statement with* 'reference %s' %

[web2py] Re: db._common_fields.append and Lazy_tables

2013-04-18 Thread Loïc
That's clear for me now Thank you Le jeudi 18 avril 2013 14:32:12 UTC+2, Anthony a écrit : This syntax: 'reference %s' % auth.settings.table_user_name is not about being lazy tables compliant -- it is just a way to construct a string when part of the string is stored in a variable