[Checkins] SVN: grokcore.view/trunk/ Backwards compatibility alias for CodeView.

Martijn Faassen faassen at startifact.com
Thu Sep 17 03:44:17 EDT 2009


Log message for revision 104162:
  Backwards compatibility alias for CodeView.
  

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

-=-
Modified: grokcore.view/trunk/CHANGES.txt
===================================================================
--- grokcore.view/trunk/CHANGES.txt	2009-09-17 07:36:26 UTC (rev 104161)
+++ grokcore.view/trunk/CHANGES.txt	2009-09-17 07:44:17 UTC (rev 104162)
@@ -17,6 +17,10 @@
   View components will now again behave like it did up until the latest alpha
   release of Grok.
 
+  ``CodeView`` is still available as a backwards compatibility alias
+  for ``View``. Please update all references to ``CodeView`` to
+  ``View``.
+
 - Fix the template registry and grokker for views to let View and
   other components using View as base class to be associated with a
   template directly by setting it as 'template' attribute on the view
@@ -26,6 +30,8 @@
 
         template = grokcore.view.PageTemplate('<p>hello</p>')
 
+  This isn't exactly *officially* supported but enough people depend
+  on it and have documented it so that we don't want to just break it.
 
 1.11 (2009-09-15)
 -----------------

Modified: grokcore.view/trunk/src/grokcore/view/components.py
===================================================================
--- grokcore.view/trunk/src/grokcore/view/components.py	2009-09-17 07:36:26 UTC (rev 104161)
+++ grokcore.view/trunk/src/grokcore/view/components.py	2009-09-17 07:44:17 UTC (rev 104162)
@@ -130,6 +130,9 @@
 
     render.base_method = True
 
+# backwards compatibility. Probably not needed by many, but just in case.
+# please start using grokcore.view.View again.
+CodeView = View
 
 class BaseTemplate(object):
     """Any sort of page template"""



More information about the checkins mailing list