changeset 97:03c8b5e3f111

Mark build configuration as existing when retrieved using {{{select()}}}.
author cmlenz
date Sun, 17 Jul 2005 21:24:15 +0000
parents c8c36f34ff5a
children 1d9dc07acd3d
files bitten/model.py
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)
 
Copyright (C) 2012-2017 Edgewall Software