[Checkins] SVN: martian/trunk/src/martian/components.py Removed the ComponentGrokkerBase class.

Brandon Rhodes brandon at rhodesmill.org
Wed Dec 17 08:50:19 EST 2008


Log message for revision 94146:
  Removed the ComponentGrokkerBase class.
  

Changed:
  U   martian/trunk/src/martian/components.py

-=-
Modified: martian/trunk/src/martian/components.py
===================================================================
--- martian/trunk/src/martian/components.py	2008-12-17 12:54:29 UTC (rev 94145)
+++ martian/trunk/src/martian/components.py	2008-12-17 13:50:19 UTC (rev 94146)
@@ -34,16 +34,10 @@
         raise NotImplementedError
     
 
-class ComponentGrokkerBase(GrokkerBase):
-    implements(IComponentGrokker)
-
-    def grok(self, name, obj, **kw):
-        raise NotImplementedError
-
-
-class ClassGrokker(ComponentGrokkerBase):
+class ClassGrokker(GrokkerBase):
     """Grokker that groks classes in a module.
     """
+    implements(IComponentGrokker)
 
     def grok(self, name, class_, module_info=None, **kw):
         module = None
@@ -99,9 +93,11 @@
         raise NotImplementedError
 
 
-class InstanceGrokker(ComponentGrokkerBase):
+class InstanceGrokker(GrokkerBase):
     """Grokker that groks instances in a module.
     """
+    implements(IComponentGrokker)
+
     def grok(self, name, class_, **kw):        
         return self.execute(class_, **kw)
 



More information about the Checkins mailing list