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()

_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins

Reply via email to