[Checkins] SVN: Products.GenericSetup/trunk/Products/GenericSetup/registry.py turned the warning about a missing version in `metadata.xml` into a proper deprecation warning, so that it can be filtered using `--nowarn` during testruns

Andreas Zeidler az at zitc.de
Wed Mar 5 04:25:36 EST 2008


Log message for revision 84477:
  turned the warning about a missing version in `metadata.xml` into a proper deprecation warning, so that it can be filtered using `--nowarn` during testruns

Changed:
  U   Products.GenericSetup/trunk/Products/GenericSetup/registry.py

-=-
Modified: Products.GenericSetup/trunk/Products/GenericSetup/registry.py
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/registry.py	2008-03-05 07:06:28 UTC (rev 84476)
+++ Products.GenericSetup/trunk/Products/GenericSetup/registry.py	2008-03-05 09:25:36 UTC (rev 84477)
@@ -739,7 +739,8 @@
                         fhandle.close()
                         warn('Version for profile %s taken from version.txt. '
                              'This is deprecated behaviour: please specify the '
-                             'version in metadata.xml.' % profile_id)
+                             'version in metadata.xml.' % profile_id,
+                             DeprecationWarning)
                         break
                     except IOError:
                         continue



More information about the Checkins mailing list