On Jan 15, 11:04 pm, Fran <francisb...@googlemail.com> wrote: > I guess this is replaced by .represent, however that tracesback on me > even with the simplified example of represent=lambda value: H2(value) > SQLField('feature',db.gis_feature,requires=IS_NULL_OR(IS_IN_DB > (db,'gis_feature.id','gis_feature.name')),represent=lambda value: H2 > (value))) > File "C:\Bin\web2py\gluon\sql.py", line 339, in __getattr__ > def __getattr__(self, key): return self[key] > File "C:\Bin\web2py\gluon\sql.py", line 337, in __getitem__ > def __getitem__(self, key): return dict.__getitem__(self,str(key)) > KeyError: 'gis_feature'
D'Oh! That definition was in the wrong place to give that traceback. Represent just isn't supported yet so now I get: TypeError: __init__() got an unexpected keyword argument 'represent' F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---