On Dec 11, 2006, at 9:55 AM, Carl Karsten wrote:
> I need to know if Ed/Paul want to use the pattern. Ed has done it,
> so I don't
> need to implement it for him to understand it. I think Paul gets
> it, but
> doesn't understand the value of it.
The i-layer was the best solution for the problem, given VFP's
object model. Python has a very different model, and the i-layer
pattern is not the best solution by a long shot.
Take a look at the ClassDesigner code; specifically, the
ClassDesignerControlMixin.py file and the ClassDesignerFormMixin.py
files. This is more the pattern that should be used for developer-
level modifications to the framework. Write a mixin that supplies the
needed mods, and instead of creating hard-coded subclasses, generate
the classes on the fly.
I'm sure that if I grokked metaclasses better, I would probably want
to go that route instead, based on what I know about them. But that's
beyond my skills at the moment.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users