[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cmf
Subject:    Re: [Zope-CMF] [dev] GenericSetup: profile version and metadata.xml
From:       Wichert Akkerman <wichert () wiggy ! net>
Date:       2007-12-05 21:10:55
Message-ID: 20071205211055.GB1270 () wiggy ! net
[Download RAW message or body]

Previously yuppie wrote:
> Hi!
> 
> 
> 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."
> 
> I like the fact that using version.txt for the profile version is 
> deprecated. But you now get always a deprecation warning if no 
> metadata.xml exists in the profile. Is that intended? Is specifying a 
> version now required?

It isn't required - it is fine if a profile has no version. What I did
is add a deprecation warning when the profile metadata did not specify
a version and the version was read from a version.txt file. If you have
no version.txt you will not see the deprecation warning.

I agree the deprecation warnings are annoying in the tests, but I could
not come up with a proper alternative.

Wichert.

-- 
Wichert Akkerman <wichert@wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.
_______________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic