[Zope-CMF] Re: [dev] GenericSetup: profile version and metadata.xml
Tres Seaver
tseaver at palladion.com
Tue Dec 18 13:44:29 EST 2007
-----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 tseaver at palladion.com
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-----
More information about the Zope-CMF
mailing list