accepts > KeyError: '_id', latest trunk with postgresql

42 views
Skip to first unread message

Carlos

unread,
Jan 22, 2012, 7:07:06 PM1/22/12
to web...@googlegroups.com
Hi,

I'm getting the following error with latest trunk and postgresql, especially after changeset # fab104bec898 (web2py-py3k: proof of concept).

  File "C:\web2py\gluon\sqlhtml.py", line 1082, in accepts
    hideerror=hideerror,
  File "C:\web2py\gluon\html.py", line 1807, in accepts
    status = self._traverse(status,hideerror)
  File "C:\web2py\gluon\html.py", line 749, in _traverse
    newstatus = c._traverse(status,hideerror) and newstatus
  File "C:\web2py\gluon\html.py", line 749, in _traverse
    newstatus = c._traverse(status,hideerror) and newstatus
  File "C:\web2py\gluon\html.py", line 749, in _traverse
    newstatus = c._traverse(status,hideerror) and newstatus
  File "C:\web2py\gluon\html.py", line 749, in _traverse
    newstatus = c._traverse(status,hideerror) and newstatus
  File "C:\web2py\gluon\html.py", line 756, in _traverse
    newstatus = self._validate()
  File "C:\web2py\gluon\html.py", line 1572, in _validate
    (value, errors) = validator(value)
  File "C:\web2py\gluon\validators.py", line 549, in __call__
    elif str(rows[0]._id) != str(self.record_id):
  File "C:\web2py\gluon\dal.py", line 5003, in __getattr__
    return self[key]
  File "C:\web2py\gluon\dal.py", line 4994, in __getitem__
    return dict.__getitem__(self, key)
KeyError: '_id'

This error does not occur when reverting to changeset # dafe70b55ae5 (oops, some tests were not committed, now they are).

Is this a bug?.

Thanks.

   Carlos

Alan Etkin

unread,
Jan 23, 2012, 8:06:27 AM1/23/12
to web2py-users
There are similar error reports in this threads. For my error report,
I started a fix from trunk files, but I think that the developers are
working on this errors already.

http://groups.google.com/group/web2py/browse_thread/thread/691542fa739e67d1
http://www.google.com/url?sa=D&q=http://groups.google.com/group/web2py/browse_thread/thread/280f6b746e2b7201&usg=AFQjCNFUX5WrRGPnX-brkO3vuBLOcybmBw

Carlos

unread,
Jan 24, 2012, 9:37:58 AM1/24/12
to web...@googlegroups.com
Thanks, just an update: I'm still getting this error, evern with latest trunk.

Reply all
Reply to author
Forward
0 new messages