[Checkins] SVN: grok/branches/grokcore.xxx/src/grok/ grokcore.view.GrokView was renamed to View.

Philipp von Weitershausen philikon at philikon.de
Sat Jul 19 22:08:27 EDT 2008


Log message for revision 88629:
  grokcore.view.GrokView was renamed to View.
  
  It defines a __call__ that's perfectly functional so let's just use that.
  

Changed:
  U   grok/branches/grokcore.xxx/src/grok/components.py
  U   grok/branches/grokcore.xxx/src/grok/meta.py

-=-
Modified: grok/branches/grokcore.xxx/src/grok/components.py
===================================================================
--- grok/branches/grokcore.xxx/src/grok/components.py	2008-07-20 02:07:52 UTC (rev 88628)
+++ grok/branches/grokcore.xxx/src/grok/components.py	2008-07-20 02:08:27 UTC (rev 88629)
@@ -135,19 +135,10 @@
 class Annotation(persistent.Persistent):
     pass
 
-# all grok tests pass when this is commented out
-#
-#class ViewBase(object):
-#    def __init__(self, context, request):
-#        self.context = context
-#        self.request = request
 
-class View(grokcore.view.GrokView):
+class View(grokcore.view.View):
     interface.implements(interfaces.IGrokView)
 
-    def __call__(self):
-        return self._update_and_render()
-
     def default_namespace(self):
         namespace = {}
         namespace['context'] = self.context

Modified: grok/branches/grokcore.xxx/src/grok/meta.py
===================================================================
--- grok/branches/grokcore.xxx/src/grok/meta.py	2008-07-20 02:07:52 UTC (rev 88628)
+++ grok/branches/grokcore.xxx/src/grok/meta.py	2008-07-20 02:08:27 UTC (rev 88629)
@@ -140,7 +140,7 @@
 
 
 class ViewGrokker(ViewGrokkerBase):
-    martian.component(grokcore.view.GrokView)
+    martian.component(grokcore.view.View)
 
     def protectName(self, config, factory, permission):
         config.action(



More information about the Checkins mailing list