Hi,
I have this Bizobj which I am subclassing so I can add special processing when changing rows. I must be doing something wrong but I can't find out what. I need to call self.actualizFoto() whenever the record changes.

This is a partial declaration of the Bizobj:
---------------------------------
class TarjetaBizobj(dabo.biz.dBizobj):
    def initProperties(self):
#        self.super()
        self.Caption = 'Tarjeta'
        self.DataSource = 'Tarjeta'
        self.KeyField = 'Id'
---------------------------------------
This is the subclassed Bizobj:
------------------------------------

class TarjetaReportaBizobj(TarjetaBizobj):
def initProperties(self):
super(TarjetaReportaBizobj, self).initProperties()
self.Reporta = None

def onRowNumChanged(self, evt):
if self.Reporta:
self.Reporta(evt)
---------------------------------------

And in my Form:
---------------------------------------
def createBizobjs(self):
ci = dabo.db.dConnectInfo(DbType='SQLite')
ci.Database = 'WinProx.db'
conn = dabo.db.dConnection(ci)

biz = self.Application.biz.TarjetaReportaBizobj(conn)
biz.Reporta = self.actualizFoto

self.addBizobj(biz)
---------------------------------------------


I also tried (without subclassing the Bizobj):
---------------------------------------------
    def createBizobjs(self):
        ci = dabo.db.dConnectInfo(DbType='SQLite')
        ci.Database = 'WinProx.db'
        conn = dabo.db.dConnection(ci)

        biz = self.Application.biz.TarjetaBizobj(conn)
        biz.Reporta = self.actualizFoto
        biz.bindEvent(dEvents.RowNumChanged, self.actualizFoto)
        self.addBizobj(biz)
-----------------------------------------------
But with no result. That is, nothing happens, actualizFoto() is not called.





--- StripMime Report -- processed MIME parts ---
multipart/alternative
 text/plain (text body -- kept)
 text/html
---
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/526f27f6.4090...@gmail.com

Reply via email to