[CMF-checkins] CVS: CMF/CMFSetup - utils.py:1.23

Florent Guillaume fg at nuxeo.com
Tue Jul 5 07:06:47 EDT 2005


Update of /cvs-repository/CMF/CMFSetup
In directory cvs.zope.org:/tmp/cvs-serv19719

Modified Files:
	utils.py 
Log Message:
Don't use confusing _p_ names, this is not ZODB or persistent.


=== CMF/CMFSetup/utils.py 1.22 => 1.23 ===
--- CMF/CMFSetup/utils.py:1.22	Thu Jun 16 04:22:30 2005
+++ CMF/CMFSetup/utils.py	Tue Jul  5 07:06:47 2005
@@ -326,21 +326,21 @@
     #
     #   generic object and property support
     #
-    _o_nodes = PageTemplateFile('object_nodes.xml', _xmldir)
-    _p_nodes = PageTemplateFile('property_nodes.xml', _xmldir)
+    _ob_nodes = PageTemplateFile('object_nodes.xml', _xmldir)
+    _prop_nodes = PageTemplateFile('property_nodes.xml', _xmldir)
 
     security.declareProtected(ManagePortal, 'generateObjectNodes')
     def generateObjectNodes(self, obj_infos):
         """ Pseudo API.
         """
-        lines = self._o_nodes(objects=obj_infos).splitlines()
+        lines = self._ob_nodes(objects=obj_infos).splitlines()
         return '\n'.join(lines)
 
     security.declareProtected(ManagePortal, 'generatePropertyNodes')
     def generatePropertyNodes(self, prop_infos):
         """ Pseudo API.
         """
-        lines = self._p_nodes(properties=prop_infos).splitlines()
+        lines = self._prop_nodes(properties=prop_infos).splitlines()
         return '\n'.join(lines)
 
     def _extractObject(self, obj):



More information about the CMF-checkins mailing list