Make it more obvious that a format string constant is a format string by
authorTodd Larsen <tlarsen@google.com>
Fri, 21 Nov 2008 23:45:15 +0000
changeset 538 4d209757c835
parent 537 f2bd9c465a6d
child 539 e30462354e26
Make it more obvious that a format string constant is a format string by appending _FMT. Patch by: Todd Larsen
app/soc/views/models/role.py
--- a/app/soc/views/models/role.py	Fri Nov 21 22:38:38 2008 +0000
+++ b/app/soc/views/models/role.py	Fri Nov 21 23:45:15 2008 +0000
@@ -69,7 +69,7 @@
   All views that only Role entities have are defined in this subclass.
   """
   
-  DEF_INVITE_INSTRUCTION_TEXT = ugettext_lazy(
+  DEF_INVITE_INSTRUCTION_MSG_FMT = ugettext_lazy(
       'Please use this form to invite someone to become a %(name)s.')
 
   def __init__(self, original_params=None):
@@ -97,7 +97,7 @@
     new_params['name_short'] = self._params['name_short']
     new_params['name_plural'] = self._params['name_plural']
     new_params['instruction_text'] = \
-        self.DEF_INVITE_INSTRUCTION_TEXT % self._params
+        self.DEF_INVITE_INSTRUCTION_MSG_FMT % self._params
 
     params = dicts.merge(params, new_params)