Log message for revision 40774:
  Cleaner python string quoting.
  

Changed:
  U   CMF/trunk/GenericSetup/utils.py

-=-
Modified: CMF/trunk/GenericSetup/utils.py
===================================================================
--- CMF/trunk/GenericSetup/utils.py     2005-12-13 17:38:12 UTC (rev 40773)
+++ CMF/trunk/GenericSetup/utils.py     2005-12-13 17:56:02 UTC (rev 40774)
@@ -539,7 +539,7 @@
                         parent._setObject(obj_id, mt_info['instance'](obj_id))
                         break
                 else:
-                    raise ValueError('unknown meta_type \'%s\'' % meta_type)
+                    raise ValueError("unknown meta_type '%s'" % meta_type)
 
             if child.hasAttribute('insert-before'):
                 insert_before = child.getAttribute('insert-before')
@@ -639,7 +639,7 @@
                     obj._setProperty(prop_id, val, child.getAttribute('type'))
                     prop_map = obj.propdict().get(prop_id, None)
                 else:
-                    raise ValueError('undefined property \'%s\'' % prop_id)
+                    raise ValueError("undefined property '%s'" % prop_id)
 
             if not 'w' in prop_map.get('mode', 'wd'):
                 raise BadRequest('%s cannot be changed' % prop_id)

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

Reply via email to