I kind of it an limit... I was refactoring some model definition and merging multiple tables into one and I had this error :
Traceback (most recent call last):
File "/web2py/gluon/restricted.py", line 226, in restricted
ccode = compile2(code, layer)
File "/web2py/gluon/restricted.py", line 209, in compile2
return compile(code.rstrip().replace('\r\n', '\n') + '\n', layer, 'exec')
File "applications/sgddms/models/result.py", line 4
db.define_table('table_name',
SyntaxError: more than 255 arguments
Where python bytecode compilation impose a limit over the number of positional arguments supported by a given object... It appears that it could be workaround using *args or **kwargs, but I guess in or case it wouldn't work to refactor pyDAL to avoid this limit as I guess we use positional arguments to determine where fields appears in form...
Can we fix that in order to support max amount of columns supported by given database engine (postgres = 1000 to my knowledge)??