Hi !
As stated earlier on this list, I am using standalone 'bizobj' class with 
'web2py'.
I imported the entire dabo folder in my app.
Database server is MySQL DB.
There is a parent bizobj named as 'statBizObj'; (it has a child bizobj named as 
'distBizObj')
 
Upon encountering 'statBizObj.requery()' statement,
exception is thrown when it runs 'requeryAllChildren()' method.
I debugged via 'PyScripter' & could see that the bizobj can talk to the 
database & fetch rows.
 
When it encounters '_getRecord()' method in 'dCursorMixin()', following 
traceback is displayed:--
-------------------------Traceback (most recent call last):
File "F:\py\web2py\gluon\restricted.py", line 192, in restricted
exec ccode in environment
File "F:/py/web2py/applications/mywheels/models/aafirst.py", line 54, in 
<module>
statBizObj.requery()
File "F:\py\web2py\site-packages\dabo\biz\dBizobj.py", line 1098, in requery
self.requeryAllChildren()
File "F:\py\web2py\site-packages\dabo\biz\dBizobj.py", line 1706, in 
requeryAllChildren
child.requery()
File "F:\py\web2py\site-packages\dabo\biz\dBizobj.py", line 1063, in requery
_childParamTuple = self.setChildLinkFilter()
File "F:\py\web2py\site-packages\dabo\biz\dBizobj.py", line 1130, in 
setChildLinkFilter
(self.Parent.IsAdding and not self.ParentLinkField):
File "F:\py\web2py\site-packages\dabo\biz\dBizobj.py", line 2528, in _isAdding
return self._CurrentCursor.IsAdding
File "F:\py\web2py\site-packages\dabo\db\dCursorMixin.py", line 2823, in 
_getIsAdding
getattr(self.Record, kons.CURSOR_TMPKEY_FIELD)
File "F:\py\web2py\site-packages\dabo\db\dCursorMixin.py", line 2872, in 
_getRecord
ret = self._cursorRecord = dabo.db._getRecord(self)
AttributeError: 'module' object has no attribute '_getRecord'
Code line in ''dCursorMixin()' is:
ret = self._cursorRecord = dabo.db._getRecord(self)
 
Pl. tell me where I may be mistaken.
(for advising on this error, if you need any additional info about my code, pl. 
tell.)
 
Thanks,
---Vineet-------------------------

--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to