Changeset 5005 for main/waeup.sirp/trunk


Ignore:
Timestamp:
4 Feb 2010, 11:54:20 (15 years ago)
Author:
uli
Message:

Fix references to academics stuff interfaces. This is the first step to make academics stuff pluggable.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/breadcrumbs.py

    r4920 r5005  
    66from zope.publisher.browser import TestRequest
    77
    8 from waeup.sirp import interfaces
     8from waeup.sirp.browser import interfaces
    99from waeup.sirp.browser.interfaces import (IBreadcrumb, IBreadcrumbIgnorable,
    1010                                      IBreadcrumbContainer)
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/interfaces.py

    r4789 r5005  
    33from zope import schema
    44from zope.interface import Interface, Attribute
    5 
     5from waeup.sirp.interfaces import (
     6    IWAeUPObject, IUniversity, IUserContainer, IDataCenter)
     7from waeup.sirp.university.interfaces import (
     8    IFacultyContainer, IFaculty, IDepartment, ICourseContainer, ICourse,
     9    ICertificateContainer, ICertificate, ICertificateCourse)
    610
    711class IBreadcrumb(Interface):
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r5000 r5005  
    1010from hurry import yui
    1111from hurry.workflow.interfaces import NoTransitionAvailableError
    12 from waeup.sirp.browser import (WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage,
    13                            WAeUPDisplayFormPage, NullValidator)
     12from waeup.sirp.browser import (
     13    WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage,
     14    WAeUPDisplayFormPage, NullValidator)
     15from waeup.sirp.browser.interfaces import (
     16    IUniversity, IFacultyContainer, IFaculty, IDepartment, ICourse,
     17    ICertificate, ICertificateCourse)
    1418from waeup.sirp.catalog import search, search_context
    15 from waeup.sirp.interfaces import (IUniversity, IWAeUPObject, IUserContainer,
    16                               IUserAccount, IFacultyContainer, IDataCenter,
    17                               IFaculty, IDepartment, ICourse, ICertificate,
    18                               ICertificateCourse, IWAeUPXMLImporter,
    19                               IWAeUPXMLExporter)
     19from waeup.sirp.interfaces import(
     20    IWAeUPObject, IUserContainer, IUserAccount, IDataCenter,
     21    IWAeUPXMLImporter, IWAeUPXMLExporter)
    2022from waeup.sirp.widgets.interfaces import ITableProvider
    2123from waeup.sirp.utils.helpers import getName
    2224from zope import schema
    23 from zope.app.security.interfaces import (IAuthentication,
    24                                           IUnauthenticatedPrincipal,
    25                                           ILogout)
     25from zope.app.security.interfaces import (
     26    IAuthentication, IUnauthenticatedPrincipal, ILogout)
    2627from zope.component import getUtility, createObject
    2728from zope.component.interfaces import Invalid
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/viewlets.py

    r4940 r5005  
    66from zope.component import getMultiAdapter
    77from zope.location.interfaces import ISite
    8 from waeup.sirp.browser.pages import (UniversityPage, FacultyContainerPage,
    9                                  DatacenterPage, FacultyPage, DepartmentPage,
    10                                  CoursePage, CertificatePage,
    11                                  CertificateCoursePage)
    12 from waeup.sirp.browser.interfaces import IBreadcrumbContainer
    13 from waeup.sirp.interfaces import (IUniversity, IWAeUPObject, IWAeUPXMLExporter,
    14                               IWAeUPXMLImporter, IFacultyContainer, IFaculty,
    15                               IDepartment, ICourse, ICertificate,
    16                               ICertificateCourse, IDataCenter)
     8from waeup.sirp.browser.pages import (
     9    UniversityPage, FacultyContainerPage, DatacenterPage, FacultyPage,
     10    DepartmentPage, CoursePage, CertificatePage, CertificateCoursePage)
     11from waeup.sirp.browser.interfaces import (
     12    IFacultyContainer, IFaculty, IDepartment, ICourse, ICertificate,
     13    ICertificateCourse, IBreadcrumbContainer, IUniversity)
     14from waeup.sirp.interfaces import (IWAeUPObject, IWAeUPXMLExporter,
     15                                   IWAeUPXMLImporter, IDataCenter)
    1716
    1817grok.templatedir('templates')
  • main/waeup.sirp/trunk/src/waeup/sirp/catalog.py

    r4920 r5005  
    55from hurry.query import Eq
    66from waeup.sirp.app import University
    7 from waeup.sirp.interfaces import ICourse, ICertificateCourse
     7from waeup.sirp.university.interfaces import ICourse, ICertificateCourse
    88from waeup.sirp.student.interfaces import IStudent
    99from zope.app.catalog.interfaces import ICatalog
  • main/waeup.sirp/trunk/src/waeup/sirp/tables.py

    r4920 r5005  
    22"""
    33import grok
    4 from waeup.sirp.interfaces import (IUniversity, IFacultyContainer, IFaculty,
    5                               IDepartment, ICourseContainer)
     4from waeup.sirp.interfaces import IUniversity
     5from waeup.sirp.university.interfaces import (
     6    IFacultyContainer, IFaculty, IDepartment, ICourseContainer)
    67from waeup.sirp.widgets.interfaces import ITableProvider
    78from waeup.sirp.widgets.table import YUITable as Table
  • main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.py

    r4993 r5005  
    77from zope.component.interfaces import IFactory, ComponentLookupError
    88from zope.interface import implementedBy
    9 from waeup.sirp.interfaces import ICertificate, ICertificateCourse, ICourse
     9from waeup.sirp.university.interfaces import (
     10    ICertificate, ICertificateCourse, ICourse)
    1011
    1112class Certificate(grok.Container):
  • main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.txt

    r4993 r5005  
    3636   Certificates have the attributes required by the `ICertificate` interface:
    3737
    38      >>> from waeup.sirp.interfaces import ICertificate
     38     >>> from waeup.sirp.university.interfaces import ICertificate
    3939     >>> ICertificate.providedBy(mycertificate)
    4040     True
     
    323323:class:`ICertificateCourse` interface:
    324324
    325     >>> from waeup.sirp.interfaces import ICertificateCourse
     325    >>> from waeup.sirp.university.interfaces import ICertificateCourse
    326326    >>> from waeup.sirp.university.certificate import CertificateCourse
    327327    >>> mycertcourse = CertificateCourse(None, 200, False)
  • main/waeup.sirp/trunk/src/waeup/sirp/university/certificatecontainer.py

    r4920 r5005  
    22"""
    33import grok
    4 from waeup.sirp.interfaces import ICertificateContainer, ICertificate
     4from waeup.sirp.university.interfaces import (
     5    ICertificateContainer, ICertificate)
    56from zope.component.interfaces import IFactory
    67from zope.interface import implementedBy
  • main/waeup.sirp/trunk/src/waeup/sirp/university/certificatecontainer.txt

    r4920 r5005  
    4141   Certificate containers provide `ICertificateContainer`:
    4242
    43      >>> from waeup.sirp.interfaces import ICertificateContainer
     43     >>> from waeup.sirp.university.interfaces import ICertificateContainer
    4444     >>> ICertificateContainer.providedBy(mycontainer)
    4545     True
  • main/waeup.sirp/trunk/src/waeup/sirp/university/course.py

    r4920 r5005  
    44from zope.interface import implementedBy
    55from zope.component.interfaces import IFactory
    6 from waeup.sirp.interfaces import ICourse
     6from waeup.sirp.university.interfaces import ICourse
    77
    88class Course(grok.Model):
  • main/waeup.sirp/trunk/src/waeup/sirp/university/course.txt

    r4920 r5005  
    3838   :class:`waeup.sirp.interfaces.ICourse` interface:
    3939
    40      >>> from waeup.sirp.interfaces import ICourse
     40     >>> from waeup.sirp.university.interfaces import ICourse
    4141     >>> ICourse.providedBy(mycourse)
    4242     True
  • main/waeup.sirp/trunk/src/waeup/sirp/university/coursecontainer.py

    r4920 r5005  
    44from zope.interface import implementedBy
    55from zope.component.interfaces import IFactory
    6 from waeup.sirp.interfaces import ICourseContainer, ICourse
     6from waeup.sirp.university.interfaces import ICourseContainer, ICourse
    77
    88class CourseContainer(grok.Container):
  • main/waeup.sirp/trunk/src/waeup/sirp/university/coursecontainer.txt

    r4920 r5005  
    4141   Course containers provide `ICourseContainer`:
    4242
    43      >>> from waeup.sirp.interfaces import ICourseContainer
     43     >>> from waeup.sirp.university.interfaces import ICourseContainer
    4444     >>> ICourseContainer.providedBy(mycontainer)
    4545     True
  • main/waeup.sirp/trunk/src/waeup/sirp/university/department.py

    r4920 r5005  
    55from zope.component.interfaces import IFactory
    66from zope.interface import implementedBy
    7 from waeup.sirp.interfaces import IDepartment
     7from waeup.sirp.university.interfaces import IDepartment
    88
    99class Department(grok.Container):
  • main/waeup.sirp/trunk/src/waeup/sirp/university/department.txt

    r4920 r5005  
    4343   `IDepartment` interface:
    4444
    45      >>> from waeup.sirp.interfaces import IDepartment
     45     >>> from waeup.sirp.university.interfaces import IDepartment
    4646     >>> IDepartment.providedBy(mydept)
    4747     True
  • main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.py

    r4920 r5005  
    55from zope.component.interfaces import IFactory
    66from zope.interface import implementedBy
    7 from waeup.sirp.interfaces import IFaculty, IDepartment
     7from waeup.sirp.university.interfaces import IFaculty, IDepartment
    88
    99class Faculty(grok.Container):
  • main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.txt

    r4920 r5005  
    4242   `IFaculty` interface:
    4343
    44      >>> from waeup.sirp.interfaces import IFaculty
     44     >>> from waeup.sirp.university.interfaces import IFaculty
    4545     >>> IFaculty.providedBy(myfac)
    4646     True
     
    175175Faculties have the attributes required by the `IFaculty` interface:
    176176
    177     >>> from waeup.sirp.interfaces import IFaculty
     177    >>> from waeup.sirp.university.interfaces import IFaculty
    178178    >>> IFaculty.providedBy(myfaculty)
    179179    True
  • main/waeup.sirp/trunk/src/waeup/sirp/university/facultycontainer.py

    r4976 r5005  
    22from zope.component.interfaces import IFactory
    33from zope.interface import implementedBy
    4 from waeup.sirp.interfaces import IFacultyContainer, IFaculty
     4from waeup.sirp.university.interfaces import IFacultyContainer, IFaculty
    55
    66class FacultyContainer(grok.Container):
  • main/waeup.sirp/trunk/src/waeup/sirp/university/facultycontainer.txt

    r4977 r5005  
    4343   `IFacultyContainer` interface:
    4444
    45      >>> from waeup.sirp.interfaces import IFacultyContainer
     45     >>> from waeup.sirp.university.interfaces import IFacultyContainer
    4646     >>> IFacultyContainer.providedBy(mycontainer)
    4747     True
     
    129129Faculty containers provide `IFacultyContainer`:
    130130
    131     >>> from waeup.sirp.interfaces import IFacultyContainer
     131    >>> from waeup.sirp.university.interfaces import IFacultyContainer
    132132    >>> IFacultyContainer.providedBy(mycontainer)
    133133    True
  • main/waeup.sirp/trunk/src/waeup/sirp/utils/batching.py

    r4995 r5005  
    1515from zope.schema import getFields
    1616from zope.schema.interfaces import IText
    17 from waeup.sirp.interfaces import (IBatchProcessor, IFacultyContainer, IFaculty,
    18                               ICourse, IDepartment, ICertificate,
    19                               ICertificateCourse, ISchemaTypeConverter,
    20                               FatalCSVError)
     17from waeup.sirp.interfaces import (
     18    IBatchProcessor, ISchemaTypeConverter, FatalCSVError)
     19from waeup.sirp.university.interfaces import (
     20    IFacultyContainer, IFaculty, ICourse, IDepartment, ICertificate,
     21    ICertificateCourse)
    2122
    2223class BatchProcessor(grok.GlobalUtility):
  • main/waeup.sirp/trunk/src/waeup/sirp/utils/converters.txt

    r4920 r5005  
    668668    '1'
    669669
    670     >>> from waeup.sirp.interfaces import ICourse
     670    >>> from waeup.sirp.university.interfaces import ICourse
    671671    >>> from zope.schema import getFields
    672672    >>> field = getFields(ICourse)['semester']
Note: See TracChangeset for help on using the changeset viewer.