[Cheetahtemplate-discuss] Multiple inheritance, #extends and #implements
Brought to you by:
rtyler,
tavis_rudd
From: <ir...@ms...> - 2002-01-16 21:11:49
|
Another couple items for the User's Guide. Is anybody having trouble with multiple inheritance, #extends and #implements, or do you have any tips that should be in the UG? Somebody mentioned a couple days ago using miltiple inheritance inheriting from Servlet and it didn't work. The UG says, per Tavis' recommendation, that when doing multiple inheritance via #extends, the first class listed must be a subclass of Cheetah.Template.Template. Is anybody having problems with inheritance order? The funny thing about this rule is that it's the opposite of what you'd normally do in Python. Normally you'd list your mixin classes first and then put the main superclass object last. Regarding #implements, it took me a few tries until I got my servlets working, but they seem to be working fine now if I just omit #implements and it just does the right thing. -- -Mike (Iron) Orr, ir...@ms... (if mail problems: ms...@oz...) http://iron.cx/ English * Esperanto * Russkiy * Deutsch * Espan~ol |