Changeset 12869 for main/waeup.kofa/trunk/src/waeup/kofa/utils
- Timestamp:
- 22 Apr 2015, 19:14:14 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py
r12868 r12869 56 56 57 57 # Internal name... 58 util_name = ' baseprocessor'58 util_name = '' 59 59 60 60 # Items for this processor need an interface with zope.schema fields. … … 66 66 67 67 # Headers needed to locate items... 68 location_fields = [ 'code', 'faculty_code']68 location_fields = [] 69 69 70 70 # A factory with this name must be registered... 71 factory_name = ' waeup.Department'71 factory_name = '' 72 72 73 73 @property … … 128 128 def applyMapping(self, row, mapping): 129 129 """Apply mapping to a row of CSV data. 130 131 130 """ 132 131 result = dict() … … 284 283 def doImport(self, path, headerfields, mode='create', user='Unknown', 285 284 logger=None, ignore_empty=True): 286 """In contrast to most other methods, ` `doImport`` is not supposed to285 """In contrast to most other methods, `doImport` is not supposed to 287 286 be customized, neither in custom packages nor in derived batch 288 287 processor classes. Therefore, this is the only place where we … … 317 316 record is stored in the pending data file. 318 317 319 Now ` `doImport`` tries to add the new object with the data318 Now `doImport` tries to add the new object with the data 320 319 from the conversion dictionary. In some cases this 321 may fail and a DuplicationErroris raised. For example, a new320 may fail and a `DuplicationError` is raised. For example, a new 322 321 payment ticket is created but the same payment for same session 323 322 has already been made. In this case the object id is unique, no … … 339 338 transitions or states. 340 339 341 Finally, ` `doImport`` updates the existing object with the data340 Finally, `doImport` updates the existing object with the data 342 341 from the conversion dictionary. 343 342 … … 348 347 stored in the pending data file. 349 348 350 Finally, ` `doImport`` removes the existing object.349 Finally, `doImport` removes the existing object. 351 350 352 351 """
Note: See TracChangeset for help on using the changeset viewer.