changeset 592:4848d9b7a3e5

0.6dev: Removing 'Invalidate build' button when the build is 'pending' (and nothing further to really invalidate). See #332.
author osimons
date Sun, 26 Jul 2009 13:27:40 +0000
parents 87f87c756dca
children 99831ab37fd3
files bitten/web_ui.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/web_ui.py
+++ b/bitten/web_ui.py
@@ -526,7 +526,8 @@
                                                 step)
             })
         data['build']['steps'] = steps
-        data['build']['can_delete'] = ('BUILD_DELETE' in req.perm)
+        data['build']['can_delete'] = ('BUILD_DELETE' in req.perm \
+                                   and build.status != build.PENDING)
 
         repos = self.env.get_repository(req.authname)
         repos.authz.assert_permission(config.path)
Copyright (C) 2012-2017 Edgewall Software