Is there a convenient way to specify arbitrary attributes to be set
on a Dabo object when creating it? Like, if I'm creating a form, the
only way I can see to add specific data to it is to override __init__ to
accept additional parameters and then set them as attributes on the
object. I can't just set the attribute directly after creating the
object (e.g., myDaboObj.someAttr = "blah"), because then it's not
available within the initialization process.
What I'd like is a simple, general-purpose way to pass arbitrary
contextual information to any Dabo object, so I could do, for instance:
whatever = someDaboClass(myVar="blah")
# or
whatever = someDaboClass(AdHocVars={'myVar': "blah"})
That is, I'd like to pass the extra variables at construct time, so my
widget can use them when constructing its UI. Is anything like this
available, or does __init__ have to be overridden for every case?
--
--OKB (not okblacke)
Brendan Barnwell
"Do not follow where the path may lead. Go, instead, where there is
no path, and leave a trail."
--author unknown
_______________________________________________
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/[email protected]