[Checkins] SVN: grokcore.view/branches/jw-simpler-template-association/src/grokcore/view/meta.py disable the "inline" template grokker while experimenting

Jan-Wijbrand Kolman janwijbrand at gmail.com
Sat Sep 6 17:28:00 EDT 2008


Log message for revision 90916:
  disable the "inline" template grokker while experimenting

Changed:
  U   grokcore.view/branches/jw-simpler-template-association/src/grokcore/view/meta.py

-=-
Modified: grokcore.view/branches/jw-simpler-template-association/src/grokcore/view/meta.py
===================================================================
--- grokcore.view/branches/jw-simpler-template-association/src/grokcore/view/meta.py	2008-09-06 21:27:00 UTC (rev 90915)
+++ grokcore.view/branches/jw-simpler-template-association/src/grokcore/view/meta.py	2008-09-06 21:28:00 UTC (rev 90916)
@@ -121,29 +121,6 @@
         return True
 
 
-class ModulePageTemplateGrokker(martian.InstanceGrokker):
-    martian.component(components.BaseTemplate)
-    # this needs to happen before any other grokkers execute that actually
-    # use the templates
-    martian.priority(1000)
-
-    def grok(self, name, instance, module_info, config, **kw):
-        templates = module_info.getAnnotation('grok.templates', None)
-        if templates is None:
-            return False
-        config.action(
-            discriminator=None,
-            callable=templates.register,
-            args=(name, instance)
-            )
-        config.action(
-            discriminator=None,
-            callable=instance._annotateGrokInfo,
-            args=(name, module_info.dotted_name)
-            )
-        return True
-
-
 class FilesystemPageTemplateGrokker(martian.GlobalGrokker):
     # do this early on, but after ModulePageTemplateGrokker, as
     # findFilesystem depends on module-level templates to be



More information about the Checkins mailing list