Changeset 13927 for main/waeup.kofa/branches/uli-scores-upload/src
- Timestamp:
- 13 Jun 2016, 01:28:32 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-scores-upload/src/waeup/kofa/students/browser.py
r13926 r13927 47 47 from waeup.kofa.interfaces import ( 48 48 IKofaObject, IUserAccount, IExtFileStore, IPasswordValidator, IContactForm, 49 IKofaUtils, I University, IObjectHistory, academic_sessions, ICSVExporter,50 academic_sessions_vocab, I JobManager, IDataCenter, DOCLINK)49 IKofaUtils, IObjectHistory, academic_sessions, ICSVExporter, 50 academic_sessions_vocab, IDataCenter, DOCLINK) 51 51 from waeup.kofa.interfaces import MessageFactory as _ 52 from waeup.kofa.widgets.datewidget import ( 53 FriendlyDateWidget, FriendlyDateDisplayWidget, 54 FriendlyDatetimeDisplayWidget) 52 from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget 55 53 from waeup.kofa.mandates.mandate import PasswordMandate 56 54 from waeup.kofa.university.interfaces import ( … … 59 57 from waeup.kofa.university.department import VirtualDepartmentExportJobContainer 60 58 from waeup.kofa.university.facultiescontainer import ( 61 VirtualFacultiesExportJobContainer , FacultiesContainer)59 VirtualFacultiesExportJobContainer) 62 60 from waeup.kofa.university.certificate import ( 63 61 VirtualCertificateExportJobContainer,) … … 66 64 from waeup.kofa.university.vocabularies import course_levels 67 65 from waeup.kofa.utils.batching import VirtualExportJobContainer 68 from waeup.kofa.utils.helpers import get_current_principal, to_timezone,now66 from waeup.kofa.utils.helpers import get_current_principal, now 69 67 from waeup.kofa.students.interfaces import ( 70 68 IStudentsContainer, IStudent, … … 78 76 ) 79 77 from waeup.kofa.students.catalog import search, StudentQueryResultItem 80 from waeup.kofa.students.studylevel import StudentStudyLevel, CourseTicket81 78 from waeup.kofa.students.vocabularies import StudyLevelSource 82 from waeup.kofa.students.workflow import (CREATED, ADMITTED, PAID, 83 CLEARANCE, REQUESTED, RETURNING, CLEARED, REGISTERED, VALIDATED, 84 GRADUATED, TRANSCRIPT, FORBIDDEN_POSTGRAD_TRANS) 79 80 from waeup.kofa.students.workflow import ( 81 ADMITTED, PAID, CLEARANCE, REQUESTED, RETURNING, CLEARED, REGISTERED, 82 VALIDATED, GRADUATED, TRANSCRIPT, FORBIDDEN_POSTGRAD_TRANS 83 ) 85 84 86 85 … … 1201 1200 def label(self): 1202 1201 # Here we know that the cookie has been set 1203 lang = self.request.cookies.get('kofa.language')1204 1202 return _('${a}: Transcript Data', mapping = { 1205 1203 'a':self.context.student.display_fullname}) … … 1399 1397 def render(self): 1400 1398 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 1401 Term = translate(_('Term'), 'waeup.kofa', target_language=portal_language)1402 1399 Code = translate(_('Code'), 'waeup.kofa', target_language=portal_language) 1403 1400 Title = translate(_('Title'), 'waeup.kofa', target_language=portal_language) … … 3180 3177 3181 3178 def update(self): 3182 ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')3183 3179 self.current_academic_session = grok.getSite()[ 3184 3180 'configuration'].current_academic_session … … 3364 3360 date_format = '%d/%m/%Y' 3365 3361 try: 3366 d ummy = datetime.strptime(payments_start, date_format)3367 d ummy = datetime.strptime(payments_end, date_format)3362 datetime.strptime(payments_start, date_format) 3363 datetime.strptime(payments_end, date_format) 3368 3364 except ValueError: 3369 3365 self.flash(_('Payment dates do not match format d/m/Y.'),
Note: See TracChangeset for help on using the changeset viewer.