# HG changeset patch # User cmlenz # Date 1121635455 0 # Node ID 03c8b5e3f11161c89bddd0a19a1199460ccf9173 # Parent c8c36f34ff5a8aa52fce04c25c65156b92ebe943 Mark build configuration as existing when retrieved using {{{select()}}}. diff --git a/bitten/model.py b/bitten/model.py --- a/bitten/model.py +++ b/bitten/model.py @@ -114,9 +114,11 @@ "FROM bitten_config WHERE active=1 " "ORDER BY name") for name, path, label, active, description in cursor: - yield BuildConfig(env, name=name, path=path or '', - label=label or '', active=bool(active), - description=description or '') + config = BuildConfig(env, name=name, path=path or '', + label=label or '', active=bool(active), + description=description or '') + config._old_name = name + yield config select = classmethod(select)