Changeset 6837 for main/waeup.sirp/trunk/src
- Timestamp:
- 30 Sep 2011, 10:27:23 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/batchprocessing.txt
r6824 r6837 95 95 ['Applicants Container Importer', 96 96 'Student Importer', 97 'StudentStudyCourse Importer ',97 'StudentStudyCourse Importer (update only)', 98 98 'CertificateCourse Importer', 99 99 'Certificate Importer', -
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r6828 r6837 612 612 self.mode_locked = True 613 613 self.importer = importer or session.get('import_importer', None) 614 session['import_importer'] = self.importer 615 if self.importer and 'update' in self.importer: 616 if self.mode != 'update': 617 self.flash('Update mode only!') 618 self.mode_locked = True 619 self.mode = 'update' 620 proceed = None 614 621 session['import_mode'] = self.mode 615 session['import_importer'] = self.importer616 622 if proceed is not None: 617 623 self.redirect(self.url(self.context, '@@import3')) -
main/waeup.sirp/trunk/src/waeup/sirp/students/batching.py
r6834 r6837 31 31 location_fields = ['student_id',] 32 32 factory_name = 'waeup.Student' 33 34 mode = None35 33 36 34 @property … … 77 75 grok.provides(IBatchProcessor) 78 76 grok.context(Interface) 79 util_name = 'studycourse importer'77 util_name = 'studycourseupdater' 80 78 grok.name(util_name) 81 79 82 name = u'StudentStudyCourse Importer '80 name = u'StudentStudyCourse Importer (update only)' 83 81 iface = IStudentStudyCourseImport 84 82 factory_name = 'waeup.StudentStudyCourse' … … 90 88 ['student_id','reg_number'] + getFields(self.iface).keys()))) 91 89 92 def checkHeaders(self, headerfields, mode=' update'):90 def checkHeaders(self, headerfields, mode='ignore'): 93 91 if not 'reg_number' in headerfields and not 'student_id' in headerfields: 94 92 raise FatalCSVError(
Note: See TracChangeset for help on using the changeset viewer.