Changeset 12883 for main/waeup.kofa/trunk/src/waeup/kofa/accesscodes
- Timestamp:
- 25 Apr 2015, 06:13:18 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/batching.py
r9706 r12883 34 34 35 35 class AccessCodeBatchProcessor(BatchProcessor): 36 """A batch processor for IAccessCodeBatch objects. 36 """The Access Code Batch Processor imports containers for access codes. 37 It does not import their content. There is nothing special about this 38 processor. 37 39 """ 38 40 grok.implements(IBatchProcessor) … … 85 87 86 88 class AccessCodeProcessor(BatchProcessor): 87 """A batch processor for IAccessCode objects. 89 """The Access Code Processor imports access codes (ac) into their 90 batches. Localization requires the `representation` of the ac 91 (object id) as well as `batch_prefix` and `batch_num` to find 92 the parent container (the batch). 93 94 Access codes follow a workflow. The `checkConversion` method validates 95 the workflow `state` and `transition` in row. `checkUpdateRequirements` 96 checks if the transition is allowed. This depends on the context. 88 97 """ 89 98 grok.implements(IBatchProcessor) … … 136 145 def addEntry(self, obj, row, site): 137 146 parent = self.getParent(row, site) 138 obj.batch_serial = row['batch_serial']139 obj.random_num = row['random_num']140 147 parent[row['representation']] = obj 141 148 return
Note: See TracChangeset for help on using the changeset viewer.