[damned-lies] Remove ToReview state as a choice for translators
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Remove ToReview state as a choice for translators
- Date: Sat, 6 Aug 2011 12:34:06 +0000 (UTC)
commit 4c8daebb9bcc274eba0875525f10adccc721c435
Author: Claude Paroz <claude 2xlibre net>
Date: Fri Aug 5 08:55:06 2011 +0200
Remove ToReview state as a choice for translators
vertimus/models.py | 2 +-
vertimus/tests/__init__.py | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/vertimus/models.py b/vertimus/models.py
index b3a4d39..60924bb 100644
--- a/vertimus/models.py
+++ b/vertimus/models.py
@@ -152,10 +152,10 @@ class StateTranslated(State):
if person.is_reviewer(self.language.team):
action_names.append('RP')
+ action_names.append('TR')
if person.is_translator(self.language.team):
action_names.append('RT')
- action_names.append('TR')
if person.is_committer(self.language.team):
action_names.append('TC')
diff --git a/vertimus/tests/__init__.py b/vertimus/tests/__init__.py
index e31d2b9..327c645 100644
--- a/vertimus/tests/__init__.py
+++ b/vertimus/tests/__init__.py
@@ -99,14 +99,14 @@ class VertimusTest(TeamsAndRolesTests):
self.assertEqual(action_names, ['WC'])
action_names = [a.name for a in state.get_available_actions(self.pt)]
- self.assertEqual(action_names, ['RT', 'TR', 'WC'])
+ self.assertEqual(action_names, ['RT', 'WC'])
action_names = [a.name for a in state.get_available_actions(self.pr)]
- self.assertEqual(action_names, ['RP', 'RT', 'TR', 'WC'])
+ self.assertEqual(action_names, ['RP', 'TR', 'RT', 'WC'])
for p in (self.pc, self.pcoo):
action_names = [a.name for a in state.get_available_actions(p)]
- self.assertEqual(action_names, ['RP', 'RT', 'TR', 'TC', 'WC', None, 'IC', 'AA'])
+ self.assertEqual(action_names, ['RP', 'TR', 'RT', 'TC', 'WC', None, 'IC', 'AA'])
def test_state_proofreading(self):
state = StateProofreading(branch=self.b, domain=self.d, language=self.l, person=self.pr)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]