- Timestamp:
- 6 Jan 2013, 08:22:04 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r9830 r9833 46 46 IKofaObject, IUserAccount, IExtFileStore, IPasswordValidator, IContactForm, 47 47 IKofaUtils, IUniversity, IObjectHistory, academic_sessions, ICSVExporter, 48 academic_sessions_vocab, IJobManager )48 academic_sessions_vocab, IJobManager, IDataCenter) 49 49 from waeup.kofa.interfaces import MessageFactory as _ 50 50 from waeup.kofa.widgets.datewidget import ( … … 2673 2673 return 2674 2674 2675 class DepartmentExportJobContainerJobConfig(KofaPage):2675 class ExportJobContainerJobConfig(KofaPage): 2676 2676 """Page that configures a students export job. 2677 """ 2678 grok.context(VirtualDepartmentExportJobContainer) 2677 2678 This is a baseclass. 2679 """ 2680 grok.baseclass() 2681 grok.name('jobconfig') 2679 2682 grok.require('waeup.showStudents') 2680 grok.name('jobconfig')2681 2683 grok.template('exportjobsjobconfig') 2682 label = _('Configure localstudent data export')2684 label = _('Configure student data export') 2683 2685 pnav = 1 2684 2686 … … 2712 2714 self.exporters = exporters 2713 2715 2716 @property 2717 def depcode(self): 2718 return None 2719 2714 2720 def update(self, START=None, session=None, level=None, mode=None, 2715 2721 exporter=None): … … 2726 2732 if mode == 'all': 2727 2733 mode = None 2728 code = self.context.__parent__.code2729 2734 self.context.start_export_job(exporter, self.request.principal.id, 2730 2735 current_session=session, 2731 2736 current_level=level, 2732 2737 current_mode=mode, 2733 depcode=code) 2734 self.flash(_('Export started for students from') + 2735 ' %s (current_session=%s, current_level=%s, study_mode=%s)' % ( 2736 code, session, level, mode)) 2737 self.redirect(self.url(self.context)) 2738 depcode=self.depcode) 2739 self.flash(_('Export started for students with') + 2740 ' current_session=%s, current_level=%s, study_mode=%s' % ( 2741 session, level, mode)) 2738 2742 return 2739 2743 … … 2743 2747 grok.context(VirtualExportJobContainer) 2744 2748 grok.require('waeup.showStudents') 2749 2750 class DatacenterExportJobContainerJobConfig(ExportJobContainerJobConfig): 2751 """Page that configures a students export job in datacenter. 2752 2753 """ 2754 grok.context(IDataCenter) 2755 2756 2757 class DepartmentExportJobContainerJobConfig(ExportJobContainerJobConfig): 2758 """Page that configures a students export job in departments. 2759 2760 """ 2761 grok.context(VirtualDepartmentExportJobContainer) 2762 2763 @property 2764 def depcode(self): 2765 return self.context.__parent__.code
Note: See TracChangeset for help on using the changeset viewer.