[Checkins] SVN: martian/trunk/src/martian/util.py No longer use the
-Base extension on classes to magically mean that the class
Robert Marianski
rmarianski at openplans.org
Tue Mar 18 15:05:50 EDT 2008
Log message for revision 84758:
No longer use the -Base extension on classes to magically mean that the class
should have baseclass() behavior. Patch from Reed O'Brien.
https://bugs.launchpad.net/grok/+bug/185409
Changed:
U martian/trunk/src/martian/util.py
-=-
Modified: martian/trunk/src/martian/util.py
===================================================================
--- martian/trunk/src/martian/util.py 2008-03-18 18:54:53 UTC (rev 84757)
+++ martian/trunk/src/martian/util.py 2008-03-18 19:05:49 UTC (rev 84758)
@@ -49,8 +49,7 @@
def is_baseclass(name, component):
return (type(component) is type and
- (name.endswith('Base') or
- class_annotation_nobase(component, 'grok.baseclass', False)))
+ class_annotation_nobase(component, 'grok.baseclass', False))
def class_annotation(obj, name, default):
return getattr(obj, '__%s__' % name.replace('.', '_'), default)
More information about the Checkins
mailing list