Ignore:
Timestamp:
1 Aug 2012, 08:57:47 (12 years ago)
Author:
uli
Message:

Use interface instead of class for site() directive. Decouples
dependencies of component classes.

File:
1 edited

Legend:

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

    r8742 r9079  
    2929from zope.schema.interfaces import RequiredMissing
    3030from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
    31 from waeup.kofa.app import University
    3231from waeup.kofa.image import KofaImageFile
    3332from waeup.kofa.imagestorage import DefaultFileStoreHandler
    3433from waeup.kofa.interfaces import (
    3534    IObjectHistory, IFileStoreHandler, IFileStoreNameChooser, IKofaUtils,
    36     IExtFileStore, IPDF, IUserAccount)
     35    IExtFileStore, IPDF, IUserAccount, IUniversity)
    3736from waeup.kofa.interfaces import MessageFactory as _
    3837from waeup.kofa.students.vocabularies import RegNumNotInSource
     
    181180    """A catalog indexing :class:`Applicant` instances in the ZODB.
    182181    """
    183     grok.site(University)
     182    grok.site(IUniversity)
    184183    grok.name('applicants_catalog')
    185184    grok.context(IApplicant)
Note: See TracChangeset for help on using the changeset viewer.