Hi

Just updated to the latest trunk this morning and now my smartgrids aren't working where the table being used has links.

Here is what I'm getting:

Traceback(most recent call last):
  File"C:\dev\web2py\gluon\restricted.py",line204,inrestricted
    execccodeinenvironment
  File"C:/dev/web2py/applications/infocenter/controllers/administration.py"  
<http://127.0.0.1:8000/admin/default/edit/infocenter/controllers/administration.py>,line1816,in<module>
  File"C:\dev\web2py\gluon\globals.py",line172,in<lambda>
    self._caller=lambdaf:f()
  File"C:\dev\web2py\gluon\tools.py",line2530,inf
    returnaction(*a, **b)
  File"C:/dev/web2py/applications/infocenter/controllers/administration.py"  
<http://127.0.0.1:8000/admin/default/edit/infocenter/controllers/administration.py>,line457,inassetTypes
    paginate=15,maxtextlength=45)
  File"C:\dev\web2py\gluon\sqlhtml.py",line1971,insmartgrid
    user_signature=user_signature,**kwargs)
  File"C:\dev\web2py\gluon\sqlhtml.py",line1819,ingrid
    iflink(row):
  File"C:\dev\web2py\gluon\sqlhtml.py",line1968,in<lambda>
    args=request.args[:nargs]+[args0,row.id])))
  File"C:\dev\web2py\gluon\dal.py",line4996,in__getattr__
    return self[key]
  File"C:\dev\web2py\gluon\dal.py",line4987,in__getitem__
    returndict.__getitem__(self,key)
KeyError:'id'


If the table doesn't have any fields referencing other tables, then it works fine.

Is it just me?

    -Jim

Reply via email to