Ignore:
Timestamp:
15 Jul 2012, 01:31:03 (12 years ago)
Author:
uli
Message:

Fix import of student/applicant interfaces in w.k.browser.interfaces.
w.k.browser interfaces should not rely on interfaces defined in other
submodules except they are core part.

Also move purely UI-related interface from w.k.interfaces to w.k.browser.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/browser/layout.py

    r8736 r9003  
    3636from waeup.kofa.interfaces import MessageFactory as _
    3737from waeup.kofa.utils.helpers import to_timezone
    38 from waeup.kofa.browser.interfaces import ITheme
     38from waeup.kofa.browser.interfaces import (
     39    ITheme, IStudentNavigationBase, IApplicantBase)
    3940from waeup.kofa.browser.theming import get_all_themes, KofaThemeBase
    40 from waeup.kofa.students.interfaces import IStudentNavigation
    41 from waeup.kofa.applicants.interfaces import IApplicant
    4241from waeup.kofa.authentication import get_principal_role_manager
    4342
     
    281280        """Return the student name.
    282281        """
    283         if IStudentNavigation.providedBy(self.context):
     282        if IStudentNavigationBase.providedBy(self.context):
    284283            return self.context.student.display_fullname
    285284        return
     
    288287        """Return the applicant name.
    289288        """
    290         if IApplicant.providedBy(self.context):
     289        if IApplicantBase.providedBy(self.context):
     290            # XXX: shouldn't that be `display_fullname???`
    291291            return self.context.fullname
    292292        return
Note: See TracChangeset for help on using the changeset viewer.