[Checkins] SVN: grok/branches/grokcore.xxx/src/grok/components.py
comment out code that does not seem to be used
Godefroid Chapelle
gotcha at bubblenet.be
Thu Jul 17 06:15:12 EDT 2008
Log message for revision 88429:
comment out code that does not seem to be used
Changed:
U grok/branches/grokcore.xxx/src/grok/components.py
-=-
Modified: grok/branches/grokcore.xxx/src/grok/components.py
===================================================================
--- grok/branches/grokcore.xxx/src/grok/components.py 2008-07-17 10:05:20 UTC (rev 88428)
+++ grok/branches/grokcore.xxx/src/grok/components.py 2008-07-17 10:15:11 UTC (rev 88429)
@@ -138,12 +138,13 @@
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 ViewBase(object):
- def __init__(self, context, request):
- self.context = context
- self.request = request
-
class View(BrowserPage):
interface.implements(interfaces.IGrokView)
@@ -696,12 +697,12 @@
# viewlet) tuples, now in the correct order.
s_viewlets = []
for name, viewlet in viewlets:
- # Stuff away viewlet name so we can later retrieve it.
- # XXX We loose name information in case the same viewlet
- # is in the viewlets list twice, but with a different
- # name. Most probably this situation doesn't occur.
- viewlet.__viewlet_name__ = name
- s_viewlets.append(viewlet)
+ # Stuff away viewlet name so we can later retrieve it.
+ # XXX We loose name information in case the same viewlet
+ # is in the viewlets list twice, but with a different
+ # name. Most probably this situation doesn't occur.
+ viewlet.__viewlet_name__ = name
+ s_viewlets.append(viewlet)
s_viewlets = util.sort_components(s_viewlets)
return [(viewlet.__viewlet_name__, viewlet) for viewlet in s_viewlets]
More information about the Checkins
mailing list