0001-do-not-anonymise-agents-in-evolutions-fixes-11432.patch
wcs/formdata.py | ||
---|---|---|
158 | 158 |
} |
159 | 159 |
if self.status: |
160 | 160 |
data['status'] = self.status[3:] |
161 |
if not anonymise:
|
|
161 |
if self.who != '_submitter':
|
|
162 | 162 |
try: |
163 |
if self.who != '_submitter': |
|
164 |
user = get_publisher().user_class.get(self.who) |
|
163 |
user = get_publisher().user_class.get(self.who) |
|
165 | 164 |
except KeyError: |
166 | 165 |
pass |
167 | 166 |
else: |
168 |
if user: |
|
169 |
data['who'] = user.get_json_export_dict() |
|
170 |
if self.comment: |
|
171 |
data['comment'] = self.comment |
|
167 |
data['who'] = user.get_json_export_dict() |
|
168 |
elif not anonymise and user: |
|
169 |
data['who'] = user.get_json_export_dict() |
|
170 |
if self.comment and not anonymise: |
|
171 |
data['comment'] = self.comment |
|
172 | 172 |
parts = [] |
173 | 173 |
for part in self.parts or []: |
174 | 174 |
if hasattr(part, 'get_json_export_dict'): |
175 |
- |