allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [2/2] git commit: [#2125] More appropriate attr name
Date Thu, 21 Feb 2013 18:56:43 GMT
Updated Branches:
  refs/heads/master cc78b920e -> 7a725e2c6


[#2125] More appropriate attr name


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/7a725e2c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/7a725e2c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/7a725e2c

Branch: refs/heads/master
Commit: 7a725e2c6ed930c2faf28a855a7772e1bdedc730
Parents: e6c59d8
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Thu Feb 21 18:56:07 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Thu Feb 21 18:56:12 2013 +0000

----------------------------------------------------------------------
 ForgeTracker/forgetracker/widgets/ticket_form.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/7a725e2c/ForgeTracker/forgetracker/widgets/ticket_form.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/widgets/ticket_form.py b/ForgeTracker/forgetracker/widgets/ticket_form.py
index 75074d0..25bd1bd 100644
--- a/ForgeTracker/forgetracker/widgets/ticket_form.py
+++ b/ForgeTracker/forgetracker/widgets/ticket_form.py
@@ -35,7 +35,7 @@ class GenericTicketForm(ew.SimpleForm):
         if idx == '_milestone':
             milestone_value = ctx.value
             for milestone in field.options:
-                if milestone.status and (milestone.py_value != milestone_value):
+                if milestone.complete and (milestone.py_value != milestone_value):
                     del field.options[field.options.index(milestone)]
             ctx = self.context_for(field)
 
@@ -121,7 +121,7 @@ class TicketCustomField(object):
             options.append(ew.Option(
                 label=m.name,
                 py_value=m.name,
-                status=bool(m.complete)))
+                complete=bool(m.complete)))
 
         ssf = ew.SingleSelectField(
             label=field.label, name=str(field.name),


Mime
View raw message