On Sep 8, 2005, at 5:14 PM, Donnal Walter wrote:

I am not following the development in any detail, but FWIW is there
any chance the the name of a component object (its RegID) will
conflict with the name of an actual attribute or a method?

Yes, very good point! Instead of just checking the existing __dict__ property of the form, we should also check hasattr(form, name). This is a problem with the current name resolution code, too; here's a demonstration:

class TestForm(dabo.ui.dForm):
    def afterInit(self):
        txt = dabo.ui.dTextBox(self, Name="close")

If you run this form, 'self.close' is no longer the close method, but the textbox.

    I'll make the changes in both places.


-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to