On Sep 1, 2007, at 7:52 PM, dw wrote:
> adding : # run the requery
> uiException = None
> cursor = self._CurrentCursor
> try:
> cursor.requery(params)
> print "REQUERY", self.DataSource
>
> except dException.ConnectionLostException, e:
>
> generated the following error:
>
> Traceback (most recent call last):
[snip]
> self.afterInit()
> File "c:\docume~1\dew\locals~1\temp\tmp55u9fk.py", line 394, in
> afterInit
> except dException.ConnectionLostException, e:
> NameError: global name 'dException' is not defined
It looks to me like you added that code to your bizobj, and not
dabo.biz.dBizobj, as I had suggested. Either that, or your
indentation didn't match (make sure only tabs are used; tabs are
standard in all Dabo framework code.
What I'm hoping to find out is whether the bizobj with
DataSource="FotoInf" has actually had its requery run at the
framework level before anything tries to reference the aliased field.
So please change your bizobj code back to:
class FotoinfBizobj(dabo.biz.dBizobj):
def afterInit(self):
self.DataSource = "FotoInf"
self.KeyField = "count0"
self.LinkField = "recordID_fk"
testsql = """Select FotoInf.count0, FotoInf.recordID_fk,
FotoInf.FInfoID_fk, InfoPT.photoType
From FotoInf inner join InfoPT on FotoInf.FInfoID_fk =
InfoPT.InfoID"""
self.UserSQL= testsql
...and make the suggested debugging change to dBizobj.py.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
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/dabo-users/[EMAIL PROTECTED]