[Zope-CMF] Re: [dev] GenericSetup: profile version and metadata.xml

yuppie y.2007- at wcm-solutions.de
Tue Dec 18 12:59:08 EST 2007


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


Cheers,

	Yuppie



More information about the Zope-CMF mailing list