Look into dal.py this is added in:
if not referee_table in colset:
colset[referee_table] = Set(db, s == id)
For now you can just comment these two lines.
we could add a switch. One time I thought about
if not
Hi Massimo,
What about having a new 'referee_prefix' var in DAL, which defaults to
empty string, and replacing:
colset[referee_table] = Set(db, s == id)
with:
colset[*referee_prefix+*referee_table] = Set(db, s == id)
And then just have a way to override this 'referee_prefix' value as
Hi Massimo,
It seems to be working great - thanks!,
Carlos
Hi Massimo,
Can you please let me know if this switch can be implemented in web2py?.
Many thanks,
Carlos
I think you can also do:
myrow.fieldname or othervalue
Hi pbreit,
Thanks for your input, but that will not work, since row.fieldname still
incorrectly returns the Set object (therefore not executing the 'or'
statement).
Secondly, fieldname is a str variable in my case, which can't be used
directly with the dot notation.
I just need to not have
6 matches
Mail list logo