equal
deleted
inserted
replaced
67 """Views for all entities that inherit from Role. |
67 """Views for all entities that inherit from Role. |
68 |
68 |
69 All views that only Role entities have are defined in this subclass. |
69 All views that only Role entities have are defined in this subclass. |
70 """ |
70 """ |
71 |
71 |
72 DEF_INVITE_INSTRUCTION_TEXT = ugettext_lazy( |
72 DEF_INVITE_INSTRUCTION_MSG_FMT = ugettext_lazy( |
73 'Please use this form to invite someone to become a %(name)s.') |
73 'Please use this form to invite someone to become a %(name)s.') |
74 |
74 |
75 def __init__(self, original_params=None): |
75 def __init__(self, original_params=None): |
76 """ |
76 """ |
77 |
77 |
95 self._params['url_name'], kwargs['link_id']) |
95 self._params['url_name'], kwargs['link_id']) |
96 new_params['name'] = self._params['name'] |
96 new_params['name'] = self._params['name'] |
97 new_params['name_short'] = self._params['name_short'] |
97 new_params['name_short'] = self._params['name_short'] |
98 new_params['name_plural'] = self._params['name_plural'] |
98 new_params['name_plural'] = self._params['name_plural'] |
99 new_params['instruction_text'] = \ |
99 new_params['instruction_text'] = \ |
100 self.DEF_INVITE_INSTRUCTION_TEXT % self._params |
100 self.DEF_INVITE_INSTRUCTION_MSG_FMT % self._params |
101 |
101 |
102 params = dicts.merge(params, new_params) |
102 params = dicts.merge(params, new_params) |
103 |
103 |
104 try: |
104 try: |
105 self.checkAccess('invite', request) |
105 self.checkAccess('invite', request) |