Changeset 13927 for main


Ignore:
Timestamp:
13 Jun 2016, 01:28:32 (8 years ago)
Author:
uli
Message:

pyflakes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-scores-upload/src/waeup/kofa/students/browser.py

    r13926 r13927  
    4747from waeup.kofa.interfaces import (
    4848    IKofaObject, IUserAccount, IExtFileStore, IPasswordValidator, IContactForm,
    49     IKofaUtils, IUniversity, IObjectHistory, academic_sessions, ICSVExporter,
    50     academic_sessions_vocab, IJobManager, IDataCenter, DOCLINK)
     49    IKofaUtils, IObjectHistory, academic_sessions, ICSVExporter,
     50    academic_sessions_vocab, IDataCenter, DOCLINK)
    5151from waeup.kofa.interfaces import MessageFactory as _
    52 from waeup.kofa.widgets.datewidget import (
    53     FriendlyDateWidget, FriendlyDateDisplayWidget,
    54     FriendlyDatetimeDisplayWidget)
     52from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget
    5553from waeup.kofa.mandates.mandate import PasswordMandate
    5654from waeup.kofa.university.interfaces import (
     
    5957from waeup.kofa.university.department import VirtualDepartmentExportJobContainer
    6058from waeup.kofa.university.facultiescontainer import (
    61     VirtualFacultiesExportJobContainer, FacultiesContainer)
     59    VirtualFacultiesExportJobContainer)
    6260from waeup.kofa.university.certificate import (
    6361    VirtualCertificateExportJobContainer,)
     
    6664from waeup.kofa.university.vocabularies import course_levels
    6765from waeup.kofa.utils.batching import VirtualExportJobContainer
    68 from waeup.kofa.utils.helpers import get_current_principal, to_timezone, now
     66from waeup.kofa.utils.helpers import get_current_principal, now
    6967from waeup.kofa.students.interfaces import (
    7068    IStudentsContainer, IStudent,
     
    7876    )
    7977from waeup.kofa.students.catalog import search, StudentQueryResultItem
    80 from waeup.kofa.students.studylevel import StudentStudyLevel, CourseTicket
    8178from 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
     80from waeup.kofa.students.workflow import (
     81    ADMITTED, PAID, CLEARANCE, REQUESTED, RETURNING, CLEARED, REGISTERED,
     82    VALIDATED, GRADUATED, TRANSCRIPT, FORBIDDEN_POSTGRAD_TRANS
     83    )
    8584
    8685
     
    12011200    def label(self):
    12021201        # Here we know that the cookie has been set
    1203         lang = self.request.cookies.get('kofa.language')
    12041202        return _('${a}: Transcript Data', mapping = {
    12051203            'a':self.context.student.display_fullname})
     
    13991397    def render(self):
    14001398        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    1401         Term = translate(_('Term'), 'waeup.kofa', target_language=portal_language)
    14021399        Code = translate(_('Code'), 'waeup.kofa', target_language=portal_language)
    14031400        Title = translate(_('Title'), 'waeup.kofa', target_language=portal_language)
     
    31803177
    31813178    def update(self):
    3182         ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
    31833179        self.current_academic_session = grok.getSite()[
    31843180            'configuration'].current_academic_session
     
    33643360            date_format = '%d/%m/%Y'
    33653361            try:
    3366                 dummy = datetime.strptime(payments_start, date_format)
    3367                 dummy = datetime.strptime(payments_end, date_format)
     3362                datetime.strptime(payments_start, date_format)
     3363                datetime.strptime(payments_end, date_format)
    33683364            except ValueError:
    33693365                self.flash(_('Payment dates do not match format d/m/Y.'),
Note: See TracChangeset for help on using the changeset viewer.