When I try to delete a record on update screen I'm receiving:

Traceback (most recent call last):
  File "D:\Projetos\GAE\web2py\gluon\restricted.py", line 107, in restricted

    exec ccode in environment
  File "D:/Projetos/GAE/web2py/applications/store/controllers/manage.py"
<http://127.0.0.1:8000/admin/default/edit/store/controllers/manage.py>,
line 108, in <module>

  File "D:\Projetos\GAE\web2py\gluon\globals.py", line 97, in <lambda>

    self._caller = lambda f: f()

  File "D:/Projetos/GAE/web2py/applications/store/controllers/manage.py"
<http://127.0.0.1:8000/admin/default/edit/store/controllers/manage.py>,
line 39, in data

    def data(): return dict(form=crud())

  File "D:\Projetos\GAE\web2py\gluon\tools.py", line 1529, in __call__

    elif args[0] == 'read':

  File "D:\Projetos\GAE\web2py\gluon\tools.py", line 1609, in update

    onvalidation=onvalidation):
KeyError: 'id'


Any clue?
I'm using a SQLTABLE:
    result=SQLTABLE(store(store.category.id>0).select(),

_border=1,_class='sortable',_id='searchable',linkto=URL(r=request,f='data/update'))

This error appears after I check for deletion and click on submit...

Thanks!

-- 

Linux User #387870
.........____
.... _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:_______

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to