Changeset 17762 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 11 May 2024, 19:52:43 (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/batching.py
r17705 r17762 21 21 import grok 22 22 from time import time 23 from ast import literal_eval 23 24 import unicodecsv 24 25 from zope.schema import getFields … … 110 111 def available_fields(self): 111 112 return sorted(list(set( 112 ['application_number', 113 ['application_number', 'history', 113 114 'container_code','state','password'] + getFields( 114 115 self.iface).keys()))) … … 260 261 row.pop('password') 261 262 263 # Replace entire history 264 if 'history' in row: 265 new_history = row.get('history', IGNORE_MARKER) 266 if new_history not in (IGNORE_MARKER, ''): 267 history = IObjectHistory(obj) 268 history._annotations[ 269 history.history_key] = literal_eval(new_history) 270 items_changed += ('%s=%s, ' % ('history', new_history)) 271 row.pop('history') 272 262 273 # Update registration state 263 274 if 'state' in row:
Note: See TracChangeset for help on using the changeset viewer.