[CMF-checkins] SVN: CMF/trunk/CMFCore/exportimport/typeinfo.py - log the object id from the imported XML file, not from the context

Yvo Schubbe y.2005- at wcm-solutions.de
Fri Dec 16 13:22:04 EST 2005


Log message for revision 40818:
  - log the object id from the imported XML file, not from the context

Changed:
  U   CMF/trunk/CMFCore/exportimport/typeinfo.py

-=-
Modified: CMF/trunk/CMFCore/exportimport/typeinfo.py
===================================================================
--- CMF/trunk/CMFCore/exportimport/typeinfo.py	2005-12-16 18:19:12 UTC (rev 40817)
+++ CMF/trunk/CMFCore/exportimport/typeinfo.py	2005-12-16 18:22:04 UTC (rev 40818)
@@ -69,7 +69,11 @@
         self._initAliases(node)
         self._initActions(node)
 
-        self._logger.info('%r type info imported.' % self.context.getId())
+        obj_id = str(node.getAttribute('name'))
+        if not obj_id:
+            # BBB: for CMF 1.5 profiles
+            obj_id = str(node.getAttribute('id'))
+        self._logger.info('%r type info imported.' % obj_id)
 
     def _extractAliases(self):
         fragment = self._doc.createDocumentFragment()



More information about the CMF-checkins mailing list