-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

yuppie wrote:
> Hi!
> 
> 
> Tres Seaver wrote:
>> yuppie wrote:
>>>>>> Previously yuppie wrote:
>>>>>>> Running the trunk unit tests triggers warnings like this one:
>>>>>>> "UserWarning: Version for profile Products.GenericSetup:default taken 
>>>>>>> from version.txt. This is deprecated behaviour: please specify the 
>>>>>>> version in metadata.xml."
> [...]
>>> In most cases this deprecation warning is false alarm because the 
>>> deprecated behavior is not really used. A note in CHANGES.txt might be 
>>> more useful than this deprecation warning.
>> I've checked in changes which make this warning go away when running
>> tests, through a combination of 'warnings.fiterwarnings' and adding a
>> version to a metwadata.xml file.
> 
> Thanks! But unfortunately this isn't just a GenericSetup testing issue. 
> The same warnings show up on Zope startup and in CMF tests:
> http://mail.zope.org/pipermail/cmf-tests/2007-December/007342.html
> 
> The only way to get rid of these warnings is a) adding a metadata.xml 
> file with specified version to *each* profile or b) removing the 
> warnings completely.
> 
> Since metadata.xml files are not required I vote for b).

+1.  As an alternative, we could log the warning at "blather" level,
which should be suppressed during "normal" startup / testing.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHaBUN+gerLs4ltQ4RAjSZAKCjMIB0RKzHXbzrj6ESFvDGjdYUWQCgsovC
spzt2V+2waPZr57cwSBfeqA=
=AWKB
-----END PGP SIGNATURE-----

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to