[Zope-CMF] [dev] GenericSetup: import step version
Wichert Akkerman
wichert at wiggy.net
Tue Nov 6 02:52:39 EST 2007
Previously yuppie wrote:
> Hi!
>
>
> Can we please deprecate the 'version' argument of registerStep?
>
> This is the interface description:
>
> <quote>
> o 'version' is a string for comparing versions, it is preferred to
> be a yyyy/mm/dd-ii formatted string (date plus two-digit
> ordinal). when comparing two version strings, the version with
> the lower sort order is considered the older version.
>
> - Newer versions of a step supplant older ones.
>
> - Attempting to register an older one after a newer one results
> in a KeyError.
> </quote>
>
> AFAICT this feature was never used, became inoperable after adding
> extension profiles and makes absolutely no sense in a global step
> registry. Originally steps were linked to specific files in the profile,
> the 'version' described the version of the XML files.
>
> A profile version can now be set in metadata.xml. AFAICS this supersedes
> the import step version approach.
+1
I want to suggest also deprecating the metadata logic that uses
version.txt profile version number if there is no metadata.xml which
defines one.
Wichert.
--
Wichert Akkerman <wichert at wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
More information about the Zope-CMF
mailing list