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.

        Just curious: what if you added the import for RemoteConnector to  
your bizobj, and then added the @remote decorator to your method?

-- Ed Leafe





_______________________________________________
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]

Reply via email to