zope-genericsetup:maurits-apply-dependency-only-once

Last commit made on 2015-09-11
Get this branch:
git clone -b maurits-apply-dependency-only-once https://git.launchpad.net/zope-genericsetup
Members of Registry Administrators can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
maurits-apply-dependency-only-once
Repository:
lp:zope-genericsetup

Recent commits

a8ec44f... by Maurits van Rees

Added dependency_strategy keyword argument for runAllImportStepsFromProfile.

This means we have one keyword argument less, and there are no two
options that can conflict.

In the ZMI you can choose between four strategies for dealing with
dependencies.

The actions in the Import tab are explained better.

86eda07... by Maurits van Rees

Added clarifying comments in _runImportStepsFromContext.

c77371a... by Maurits van Rees

Removed unused 'seen' kwarg from _runImportStepsFromContext.

This was a leftover from an earlier refactoring in commit 644815771a0f7473b79166ed60ad7b119a6288ed.

a2363a7... by Maurits van Rees

Use slightly nicer enumerate(chain, 1).

3f93d07... by Maurits van Rees

Added more explanation for _runImportStepsFromContext method.

b9fe932... by Maurits van Rees

Compare and strip strings a bit nicer.

5d2341a... by Maurits van Rees

Be forgiving with profile ids with or without 'profile-' at the start.

All functions that accept a profile id argument and only work when the
id does *not* have this string at the start, will now simply strip it
off if it is there. For example, 'getLastVersionForProfile' will give
the same answer whether you ask it for the version of profile id
'foo:default' or 'profile-foo:default'.

The various registries are storing 'foo:default' as profile id, but
various functions return 'profile-foo:default' when reporting about
this profile.

Now you don't have to double or triple check yourself.

9728575... by Maurits van Rees

Apply dependency profiles only once.

Dependency profiles from 'metadata.xml' that are already applied,
are not applied again.

Instead, apply upgrade steps for already applied dependency profiles.

Added options always_apply_profiles and upgrade_dependencies to
runAllImportStepsFromProfile, so you can tweak the behavior in code.

0020a96... by Tres Seaver

svb

0af0d98... by Tres Seaver

Prep 1.7.7 release.