Ed Leafe wrote: > On Oct 7, 2008, at 2:52 PM, Uwe Grauer wrote: > >> For debugging purposes i had this in my JnpBizobj: >> def save(self, startTransaction=True): >> print "JnpBizobj.save() was called" >> dabo.biz.dBizobj.save(self, startTransaction) >> >> Commenting the above the error went away. >> >> With this change it doens't error too: >> def save(self, startTransaction=True): >> print "JnpBizobj.save() was called" >> super(JnpBizobj, self).save(startTransaction) >> >> I do not understand this. >> Can someone explain the difference? > > > I believe that the difference is that the first version calls the > bare framework method, while the second calls the properly decorated > instance of that method for that bizobj. I always use the latter > version in my code, as I've found the super() object to be > consistently reliable. >
I thought that the two methods would behave identical. > Just curious: what if you added the import for RemoteConnector to > your bizobj, and then added the @remote decorator to your method? > I tried with both of the above versions and the behavior is identical to the version without the import from RemoteConnector. Uwe _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
