[Checkins] SVN: grokcore.view/trunk/src/grokcore/view/components.py Explicit checking of the View's interface now allows IGrokBaseView as it has a namespace and a static methods.

Christian Klinger cklinger at novareto.de
Tue Sep 15 12:44:44 EDT 2009


Log message for revision 104107:
  Explicit checking of the View's interface now allows IGrokBaseView as it has a namespace and a static methods.
  

Changed:
  U   grokcore.view/trunk/src/grokcore/view/components.py

-=-
Modified: grokcore.view/trunk/src/grokcore/view/components.py
===================================================================
--- grokcore.view/trunk/src/grokcore/view/components.py	2009-09-15 16:33:14 UTC (rev 104106)
+++ grokcore.view/trunk/src/grokcore/view/components.py	2009-09-15 16:44:44 UTC (rev 104107)
@@ -239,7 +239,7 @@
         factory.macros = property(_get_macros)
 
     def render(self, view):
-        assert interfaces.IGrokView.providedBy(view)
+        assert interfaces.IGrokBaseView.providedBy(view)
         namespace = self.getNamespace(view)
         template = self._template
         namespace.update(template.pt_getContext())



More information about the checkins mailing list