Changeset 5005
- Timestamp:
- 4 Feb 2010, 11:54:20 (15 years ago)
- 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 6 6 from zope.publisher.browser import TestRequest 7 7 8 from waeup.sirp import interfaces8 from waeup.sirp.browser import interfaces 9 9 from waeup.sirp.browser.interfaces import (IBreadcrumb, IBreadcrumbIgnorable, 10 10 IBreadcrumbContainer) -
main/waeup.sirp/trunk/src/waeup/sirp/browser/interfaces.py
r4789 r5005 3 3 from zope import schema 4 4 from zope.interface import Interface, Attribute 5 5 from waeup.sirp.interfaces import ( 6 IWAeUPObject, IUniversity, IUserContainer, IDataCenter) 7 from waeup.sirp.university.interfaces import ( 8 IFacultyContainer, IFaculty, IDepartment, ICourseContainer, ICourse, 9 ICertificateContainer, ICertificate, ICertificateCourse) 6 10 7 11 class IBreadcrumb(Interface): -
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r5000 r5005 10 10 from hurry import yui 11 11 from hurry.workflow.interfaces import NoTransitionAvailableError 12 from waeup.sirp.browser import (WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage, 13 WAeUPDisplayFormPage, NullValidator) 12 from waeup.sirp.browser import ( 13 WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage, 14 WAeUPDisplayFormPage, NullValidator) 15 from waeup.sirp.browser.interfaces import ( 16 IUniversity, IFacultyContainer, IFaculty, IDepartment, ICourse, 17 ICertificate, ICertificateCourse) 14 18 from 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) 19 from waeup.sirp.interfaces import( 20 IWAeUPObject, IUserContainer, IUserAccount, IDataCenter, 21 IWAeUPXMLImporter, IWAeUPXMLExporter) 20 22 from waeup.sirp.widgets.interfaces import ITableProvider 21 23 from waeup.sirp.utils.helpers import getName 22 24 from zope import schema 23 from zope.app.security.interfaces import (IAuthentication, 24 IUnauthenticatedPrincipal, 25 ILogout) 25 from zope.app.security.interfaces import ( 26 IAuthentication, IUnauthenticatedPrincipal, ILogout) 26 27 from zope.component import getUtility, createObject 27 28 from zope.component.interfaces import Invalid -
main/waeup.sirp/trunk/src/waeup/sirp/browser/viewlets.py
r4940 r5005 6 6 from zope.component import getMultiAdapter 7 7 from 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) 8 from waeup.sirp.browser.pages import ( 9 UniversityPage, FacultyContainerPage, DatacenterPage, FacultyPage, 10 DepartmentPage, CoursePage, CertificatePage, CertificateCoursePage) 11 from waeup.sirp.browser.interfaces import ( 12 IFacultyContainer, IFaculty, IDepartment, ICourse, ICertificate, 13 ICertificateCourse, IBreadcrumbContainer, IUniversity) 14 from waeup.sirp.interfaces import (IWAeUPObject, IWAeUPXMLExporter, 15 IWAeUPXMLImporter, IDataCenter) 17 16 18 17 grok.templatedir('templates') -
main/waeup.sirp/trunk/src/waeup/sirp/catalog.py
r4920 r5005 5 5 from hurry.query import Eq 6 6 from waeup.sirp.app import University 7 from waeup.sirp. interfaces import ICourse, ICertificateCourse7 from waeup.sirp.university.interfaces import ICourse, ICertificateCourse 8 8 from waeup.sirp.student.interfaces import IStudent 9 9 from zope.app.catalog.interfaces import ICatalog -
main/waeup.sirp/trunk/src/waeup/sirp/tables.py
r4920 r5005 2 2 """ 3 3 import grok 4 from waeup.sirp.interfaces import (IUniversity, IFacultyContainer, IFaculty, 5 IDepartment, ICourseContainer) 4 from waeup.sirp.interfaces import IUniversity 5 from waeup.sirp.university.interfaces import ( 6 IFacultyContainer, IFaculty, IDepartment, ICourseContainer) 6 7 from waeup.sirp.widgets.interfaces import ITableProvider 7 8 from waeup.sirp.widgets.table import YUITable as Table -
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.py
r4993 r5005 7 7 from zope.component.interfaces import IFactory, ComponentLookupError 8 8 from zope.interface import implementedBy 9 from waeup.sirp.interfaces import ICertificate, ICertificateCourse, ICourse 9 from waeup.sirp.university.interfaces import ( 10 ICertificate, ICertificateCourse, ICourse) 10 11 11 12 class Certificate(grok.Container): -
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.txt
r4993 r5005 36 36 Certificates have the attributes required by the `ICertificate` interface: 37 37 38 >>> from waeup.sirp. interfaces import ICertificate38 >>> from waeup.sirp.university.interfaces import ICertificate 39 39 >>> ICertificate.providedBy(mycertificate) 40 40 True … … 323 323 :class:`ICertificateCourse` interface: 324 324 325 >>> from waeup.sirp. interfaces import ICertificateCourse325 >>> from waeup.sirp.university.interfaces import ICertificateCourse 326 326 >>> from waeup.sirp.university.certificate import CertificateCourse 327 327 >>> mycertcourse = CertificateCourse(None, 200, False) -
main/waeup.sirp/trunk/src/waeup/sirp/university/certificatecontainer.py
r4920 r5005 2 2 """ 3 3 import grok 4 from waeup.sirp.interfaces import ICertificateContainer, ICertificate 4 from waeup.sirp.university.interfaces import ( 5 ICertificateContainer, ICertificate) 5 6 from zope.component.interfaces import IFactory 6 7 from zope.interface import implementedBy -
main/waeup.sirp/trunk/src/waeup/sirp/university/certificatecontainer.txt
r4920 r5005 41 41 Certificate containers provide `ICertificateContainer`: 42 42 43 >>> from waeup.sirp. interfaces import ICertificateContainer43 >>> from waeup.sirp.university.interfaces import ICertificateContainer 44 44 >>> ICertificateContainer.providedBy(mycontainer) 45 45 True -
main/waeup.sirp/trunk/src/waeup/sirp/university/course.py
r4920 r5005 4 4 from zope.interface import implementedBy 5 5 from zope.component.interfaces import IFactory 6 from waeup.sirp. interfaces import ICourse6 from waeup.sirp.university.interfaces import ICourse 7 7 8 8 class Course(grok.Model): -
main/waeup.sirp/trunk/src/waeup/sirp/university/course.txt
r4920 r5005 38 38 :class:`waeup.sirp.interfaces.ICourse` interface: 39 39 40 >>> from waeup.sirp. interfaces import ICourse40 >>> from waeup.sirp.university.interfaces import ICourse 41 41 >>> ICourse.providedBy(mycourse) 42 42 True -
main/waeup.sirp/trunk/src/waeup/sirp/university/coursecontainer.py
r4920 r5005 4 4 from zope.interface import implementedBy 5 5 from zope.component.interfaces import IFactory 6 from waeup.sirp. interfaces import ICourseContainer, ICourse6 from waeup.sirp.university.interfaces import ICourseContainer, ICourse 7 7 8 8 class CourseContainer(grok.Container): -
main/waeup.sirp/trunk/src/waeup/sirp/university/coursecontainer.txt
r4920 r5005 41 41 Course containers provide `ICourseContainer`: 42 42 43 >>> from waeup.sirp. interfaces import ICourseContainer43 >>> from waeup.sirp.university.interfaces import ICourseContainer 44 44 >>> ICourseContainer.providedBy(mycontainer) 45 45 True -
main/waeup.sirp/trunk/src/waeup/sirp/university/department.py
r4920 r5005 5 5 from zope.component.interfaces import IFactory 6 6 from zope.interface import implementedBy 7 from waeup.sirp. interfaces import IDepartment7 from waeup.sirp.university.interfaces import IDepartment 8 8 9 9 class Department(grok.Container): -
main/waeup.sirp/trunk/src/waeup/sirp/university/department.txt
r4920 r5005 43 43 `IDepartment` interface: 44 44 45 >>> from waeup.sirp. interfaces import IDepartment45 >>> from waeup.sirp.university.interfaces import IDepartment 46 46 >>> IDepartment.providedBy(mydept) 47 47 True -
main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.py
r4920 r5005 5 5 from zope.component.interfaces import IFactory 6 6 from zope.interface import implementedBy 7 from waeup.sirp. interfaces import IFaculty, IDepartment7 from waeup.sirp.university.interfaces import IFaculty, IDepartment 8 8 9 9 class Faculty(grok.Container): -
main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.txt
r4920 r5005 42 42 `IFaculty` interface: 43 43 44 >>> from waeup.sirp. interfaces import IFaculty44 >>> from waeup.sirp.university.interfaces import IFaculty 45 45 >>> IFaculty.providedBy(myfac) 46 46 True … … 175 175 Faculties have the attributes required by the `IFaculty` interface: 176 176 177 >>> from waeup.sirp. interfaces import IFaculty177 >>> from waeup.sirp.university.interfaces import IFaculty 178 178 >>> IFaculty.providedBy(myfaculty) 179 179 True -
main/waeup.sirp/trunk/src/waeup/sirp/university/facultycontainer.py
r4976 r5005 2 2 from zope.component.interfaces import IFactory 3 3 from zope.interface import implementedBy 4 from waeup.sirp. interfaces import IFacultyContainer, IFaculty4 from waeup.sirp.university.interfaces import IFacultyContainer, IFaculty 5 5 6 6 class FacultyContainer(grok.Container): -
main/waeup.sirp/trunk/src/waeup/sirp/university/facultycontainer.txt
r4977 r5005 43 43 `IFacultyContainer` interface: 44 44 45 >>> from waeup.sirp. interfaces import IFacultyContainer45 >>> from waeup.sirp.university.interfaces import IFacultyContainer 46 46 >>> IFacultyContainer.providedBy(mycontainer) 47 47 True … … 129 129 Faculty containers provide `IFacultyContainer`: 130 130 131 >>> from waeup.sirp. interfaces import IFacultyContainer131 >>> from waeup.sirp.university.interfaces import IFacultyContainer 132 132 >>> IFacultyContainer.providedBy(mycontainer) 133 133 True -
main/waeup.sirp/trunk/src/waeup/sirp/utils/batching.py
r4995 r5005 15 15 from zope.schema import getFields 16 16 from zope.schema.interfaces import IText 17 from waeup.sirp.interfaces import (IBatchProcessor, IFacultyContainer, IFaculty, 18 ICourse, IDepartment, ICertificate, 19 ICertificateCourse, ISchemaTypeConverter, 20 FatalCSVError) 17 from waeup.sirp.interfaces import ( 18 IBatchProcessor, ISchemaTypeConverter, FatalCSVError) 19 from waeup.sirp.university.interfaces import ( 20 IFacultyContainer, IFaculty, ICourse, IDepartment, ICertificate, 21 ICertificateCourse) 21 22 22 23 class BatchProcessor(grok.GlobalUtility): -
main/waeup.sirp/trunk/src/waeup/sirp/utils/converters.txt
r4920 r5005 668 668 '1' 669 669 670 >>> from waeup.sirp. interfaces import ICourse670 >>> from waeup.sirp.university.interfaces import ICourse 671 671 >>> from zope.schema import getFields 672 672 >>> field = getFields(ICourse)['semester']
Note: See TracChangeset for help on using the changeset viewer.