Changeset 4796
- Timestamp:
- 11 Jan 2010, 22:53:20 (15 years ago)
- Location:
- waeup/branches/ulif-namespace/src/waeup/sirp
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-namespace/src/waeup/sirp/__init__.py
r4789 r4796 1 1 import grok 2 from waeup. interfaces import IWAeUPObject2 from waeup.sirp.interfaces import IWAeUPObject 3 3 from zope.annotation.attribute import AttributeAnnotations 4 4 from zope.annotation.interfaces import IAnnotations -
waeup/branches/ulif-namespace/src/waeup/sirp/app.py
r4789 r4796 4 4 from zope.component import createObject 5 5 6 from waeup. interfaces import IUniversity, ICSVDataReceivers7 from waeup. authentication import setup_authentication8 from waeup. datacenter import DataCenter9 from waeup. users import UserContainer6 from waeup.sirp.interfaces import IUniversity, ICSVDataReceivers 7 from waeup.sirp.authentication import setup_authentication 8 from waeup.sirp.datacenter import DataCenter 9 from waeup.sirp.users import UserContainer 10 10 11 11 class University(grok.Application, grok.Container): -
waeup/branches/ulif-namespace/src/waeup/sirp/authentication.py
r4789 r4796 10 10 from zope.securitypolicy.interfaces import IPrincipalRoleManager 11 11 from zope.securitypolicy.principalrole import principalRoleManager 12 from waeup. interfaces import IUserAccount13 import waeup. permissions12 from waeup.sirp.interfaces import IUserAccount 13 import waeup.sirp.permissions 14 14 15 15 def setup_authentication(pau): -
waeup/branches/ulif-namespace/src/waeup/sirp/browser/__init__.py
r4789 r4796 1 from waeup. browser.layout import (WAeUPPage, WAeUPLayout, WAeUPDisplayFormPage,2 WAeUPEditFormPage, WAeUPAddFormPage,3 1 from waeup.sirp.browser.layout import ( 2 WAeUPPage, WAeUPLayout, WAeUPDisplayFormPage, WAeUPEditFormPage, 3 WAeUPAddFormPage, NullValidator) -
waeup/branches/ulif-namespace/src/waeup/sirp/browser/breadcrumbs.py
r4789 r4796 6 6 from zope.publisher.browser import TestRequest 7 7 8 from waeup import interfaces9 from waeup. browser.interfaces import (IBreadcrumb, IBreadcrumbIgnorable,10 IBreadcrumbContainer)8 from waeup.sirp import interfaces 9 from waeup.sirp.browser.interfaces import (IBreadcrumb, IBreadcrumbIgnorable, 10 IBreadcrumbContainer) 11 11 12 12 class Breadcrumb(grok.Adapter): -
waeup/branches/ulif-namespace/src/waeup/sirp/browser/layout.py
r4789 r4796 4 4 from hurry import yui 5 5 from megrok.layout import Page, Layout, EditForm, DisplayForm, AddForm 6 from waeup. interfaces import IWAeUPObject6 from waeup.sirp.interfaces import IWAeUPObject 7 7 from z3c.flashmessage.interfaces import IMessageSource 8 8 from zope.component import queryUtility, ComponentLookupError -
waeup/branches/ulif-namespace/src/waeup/sirp/browser/pages.py
r4789 r4796 10 10 from hurry.query.query import Query, Text 11 11 from hurry.workflow.interfaces import NoTransitionAvailableError 12 from waeup.browser import (WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage, 13 WAeUPDisplayFormPage, NullValidator) 14 from waeup.catalog import search, search_context 15 from waeup.datacenter import Import 16 from waeup.interfaces import (IUniversity, IWAeUPObject, IUserContainer, 17 IUserAccount, IFacultyContainer, IDataCenter, 18 IFaculty, IDepartment, ICourse, ICertificate, 19 ICertificateCourse, IWAeUPXMLImporter, 20 IWAeUPXMLExporter) 21 from waeup.widgets.interfaces import ITableProvider 22 from waeup.utils.helpers import getName 12 from waeup.sirp.browser import (WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage, 13 WAeUPDisplayFormPage, NullValidator) 14 from waeup.sirp.catalog import search, search_context 15 from waeup.sirp.datacenter import Import 16 from waeup.sirp.interfaces import ( 17 IUniversity, IWAeUPObject, IUserContainer, IUserAccount, 18 IFacultyContainer, IDataCenter, IFaculty, IDepartment, ICourse, 19 ICertificate, ICertificateCourse, IWAeUPXMLImporter, IWAeUPXMLExporter) 20 from waeup.sirp.widgets.interfaces import ITableProvider 21 from waeup.sirp.utils.helpers import getName 23 22 from zope import schema 24 23 from zope.app.security.interfaces import (IAuthentication, -
waeup/branches/ulif-namespace/src/waeup/sirp/browser/viewlets.py
r4789 r4796 6 6 from zope.component import getMultiAdapter 7 7 from zope.location.interfaces import ISite 8 from waeup.browser.pages import (UniversityPage, FacultyContainerPage, 9 DatacenterPage, FacultyPage, DepartmentPage, 10 CoursePage, CertificatePage, 11 CertificateCoursePage) 12 from waeup.browser.interfaces import IBreadcrumbContainer 13 from waeup.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 IBreadcrumbContainer 12 from waeup.sirp.interfaces import ( 13 IUniversity, IWAeUPObject, IWAeUPXMLExporter, IWAeUPXMLImporter, 14 IFacultyContainer, IFaculty, IDepartment, ICourse, ICertificate, 15 ICertificateCourse, IDataCenter) 17 16 18 17 grok.templatedir('templates') -
waeup/branches/ulif-namespace/src/waeup/sirp/catalog.py
r4789 r4796 4 4 from hurry.query.query import Query, Text 5 5 from hurry.query import Eq 6 from waeup. app import University7 from waeup. interfaces import ICourse, ICertificateCourse8 from waeup.s tudent.interfaces import IStudent6 from waeup.sirp.app import University 7 from waeup.sirp.interfaces import ICourse, ICertificateCourse 8 from waeup.sirp.student.interfaces import IStudent 9 9 from zope.app.catalog.interfaces import ICatalog 10 10 from zope.app.intid.interfaces import IIntIds -
waeup/branches/ulif-namespace/src/waeup/sirp/csvfile/__init__.py
r4789 r4796 1 1 # Make this a package. 2 from waeup. csvfile.csvfile import getCSVFile, CSVFile3 from waeup. csvfile.util import toBool2 from waeup.sirp.csvfile.csvfile import getCSVFile, CSVFile 3 from waeup.sirp.csvfile.util import toBool -
waeup/branches/ulif-namespace/src/waeup/sirp/csvfile/csvfile.py
r4789 r4796 6 6 import csv 7 7 import grok 8 from waeup. csvfile.interfaces import ICSVFile8 from waeup.sirp.csvfile.interfaces import ICSVFile 9 9 10 10 class CSVFile(grok.Adapter): -
waeup/branches/ulif-namespace/src/waeup/sirp/csvfile/meta.py
r4789 r4796 2 2 """ 3 3 import martian 4 import waeup. csvfile.csvfile5 from waeup. csvfile import CSVFile4 import waeup.sirp.csvfile.csvfile 5 from waeup.sirp.csvfile import CSVFile 6 6 7 7 # This grokker fills the registry on startup, with any class that is … … 10 10 martian.component(CSVFile) 11 11 def execute(self, klass, **kw): 12 waeup. csvfile.csvfile.csvwrappers.append(klass)12 waeup.sirp.csvfile.csvfile.csvwrappers.append(klass) 13 13 return True -
waeup/branches/ulif-namespace/src/waeup/sirp/datacenter.py
r4789 r4796 9 9 from datetime import datetime 10 10 from zope.component import getMultiAdapter 11 from waeup. csvfile import getCSVFile12 from waeup. interfaces import (IDataCenter, IWAeUPCSVImporter,13 ICSVDataReceivers, IDataCenterFile)14 from waeup. utils.helpers import copyFileSystemTree11 from waeup.sirp.csvfile import getCSVFile 12 from waeup.sirp.interfaces import (IDataCenter, IWAeUPCSVImporter, 13 ICSVDataReceivers, IDataCenterFile) 14 from waeup.sirp.utils.helpers import copyFileSystemTree 15 15 16 16 class DataCenter(grok.Container): -
waeup/branches/ulif-namespace/src/waeup/sirp/hostel/hostel.py
r4789 r4796 1 1 import grok 2 from waeup. interfaces import IHostel2 from waeup.sirp.interfaces import IHostel 3 3 4 4 class Hostel(grok.Container): -
waeup/branches/ulif-namespace/src/waeup/sirp/hostel/hostelcontainer.py
r4789 r4796 2 2 from zope.component.interfaces import IFactory 3 3 from zope.interface import implementedBy 4 from waeup. interfaces import IHostelContainer, IHostel4 from waeup.sirp.interfaces import IHostelContainer, IHostel 5 5 6 6 class HostelContainer(grok.Container): -
waeup/branches/ulif-namespace/src/waeup/sirp/interfaces.py
r4789 r4796 7 7 from zope import schema 8 8 from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm 9 from waeup. permissions import RoleSource9 from waeup.sirp.permissions import RoleSource 10 10 11 11 def SimpleWAeUPVocabulary(*terms): -
waeup/branches/ulif-namespace/src/waeup/sirp/student/student.py
r4789 r4796 1 1 import grok 2 2 from grok import index 3 from waeup.s tudent.interfaces import IStudent3 from waeup.sirp.student.interfaces import IStudent 4 4 5 5 def fromCsv(a): -
waeup/branches/ulif-namespace/src/waeup/sirp/student/studentcontainer.py
r4789 r4796 3 3 from zope.component.interfaces import IFactory 4 4 from zope.interface import implementedBy 5 from waeup. interfaces import IStudentContainer6 from waeup. utils import importexport as csv5 from waeup.sirp.interfaces import IStudentContainer 6 from waeup.sirp.utils import importexport as csv 7 7 8 8 class StudentContainer(grok.Container): -
waeup/branches/ulif-namespace/src/waeup/sirp/tables.py
r4789 r4796 2 2 """ 3 3 import grok 4 from waeup. interfaces import (IUniversity, IFacultyContainer, IFaculty,5 IDepartment, ICourseContainer)6 from waeup. widgets.interfaces import ITableProvider7 from waeup. widgets.table import YUITable as Table8 from waeup. widgets.table import Col4 from waeup.sirp.interfaces import (IUniversity, IFacultyContainer, IFaculty, 5 IDepartment, ICourseContainer) 6 from waeup.sirp.widgets.interfaces import ITableProvider 7 from waeup.sirp.widgets.table import YUITable as Table 8 from waeup.sirp.widgets.table import Col 9 9 from zope.security.management import checkPermission 10 10 -
waeup/branches/ulif-namespace/src/waeup/sirp/tests/test_waeup.py
r4789 r4796 6 6 import grok 7 7 import zope.component.eventtesting 8 from waeup. testing import FunctionalLayer8 from waeup.sirp.testing import FunctionalLayer 9 9 10 10 def setUpZope(test): … … 13 13 # Register all tests in the waeup_ng package 14 14 test_suite = grok.testing.register_all_tests( 15 'waeup ', usetup=setUpZope,15 'waeup.sirp', usetup=setUpZope, 16 16 layer=FunctionalLayer) -
waeup/branches/ulif-namespace/src/waeup/sirp/university/certificate.py
r4789 r4796 7 7 from zope.component.interfaces import IFactory, ComponentLookupError 8 8 from zope.interface import implementedBy 9 from waeup. interfaces import ICertificate, ICertificateCourse, ICourse9 from waeup.sirp.interfaces import ICertificate, ICertificateCourse, ICourse 10 10 11 11 class Certificate(grok.Container): -
waeup/branches/ulif-namespace/src/waeup/sirp/university/certificatecontainer.py
r4789 r4796 2 2 """ 3 3 import grok 4 from waeup. interfaces import ICertificateContainer, ICertificate4 from waeup.sirp.interfaces import ICertificateContainer, ICertificate 5 5 from zope.component.interfaces import IFactory 6 6 from zope.interface import implementedBy -
waeup/branches/ulif-namespace/src/waeup/sirp/university/course.py
r4789 r4796 4 4 from zope.interface import implementedBy 5 5 from zope.component.interfaces import IFactory 6 from waeup. interfaces import ICourse6 from waeup.sirp.interfaces import ICourse 7 7 8 8 class Course(grok.Model): -
waeup/branches/ulif-namespace/src/waeup/sirp/university/coursecontainer.py
r4789 r4796 4 4 from zope.interface import implementedBy 5 5 from zope.component.interfaces import IFactory 6 from waeup. interfaces import ICourseContainer, ICourse6 from waeup.sirp.interfaces import ICourseContainer, ICourse 7 7 8 8 class CourseContainer(grok.Container): -
waeup/branches/ulif-namespace/src/waeup/sirp/university/department.py
r4789 r4796 5 5 from zope.component.interfaces import IFactory 6 6 from zope.interface import implementedBy 7 from waeup. interfaces import IDepartment7 from waeup.sirp.interfaces import IDepartment 8 8 9 9 class Department(grok.Container): -
waeup/branches/ulif-namespace/src/waeup/sirp/university/faculty.py
r4789 r4796 5 5 from zope.component.interfaces import IFactory 6 6 from zope.interface import implementedBy 7 from waeup. interfaces import IFaculty, IDepartment7 from waeup.sirp.interfaces import IFaculty, IDepartment 8 8 9 9 class Faculty(grok.Container): -
waeup/branches/ulif-namespace/src/waeup/sirp/university/facultycontainer.py
r4789 r4796 2 2 from zope.component.interfaces import IFactory 3 3 from zope.interface import implementedBy 4 from waeup. interfaces import IFacultyContainer, IFaculty4 from waeup.sirp.interfaces import IFacultyContainer, IFaculty 5 5 6 6 class FacultyContainer(grok.Container): -
waeup/branches/ulif-namespace/src/waeup/sirp/users.py
r4789 r4796 2 2 """ 3 3 import grok 4 from waeup. authentication import Account5 from waeup. interfaces import IUserContainer4 from waeup.sirp.authentication import Account 5 from waeup.sirp.interfaces import IUserContainer 6 6 7 7 class UserContainer(grok.Container): -
waeup/branches/ulif-namespace/src/waeup/sirp/utils/csvimport.py
r4789 r4796 2 2 """ 3 3 import grok 4 from waeup. csvfile import CSVFile, toBool5 from waeup. csvfile.interfaces import ICSVFile6 from waeup. interfaces import IFacultyContainer, IWAeUPCSVImporter7 from waeup. utils.importexport import CSVImporter4 from waeup.sirp.csvfile import CSVFile, toBool 5 from waeup.sirp.csvfile.interfaces import ICSVFile 6 from waeup.sirp.interfaces import IFacultyContainer, IWAeUPCSVImporter 7 from waeup.sirp.utils.importexport import CSVImporter 8 8 from zope.app.catalog.interfaces import ICatalog 9 9 from zope.component import createObject, getUtility -
waeup/branches/ulif-namespace/src/waeup/sirp/utils/importexport.py
r4789 r4796 7 7 from xml.dom.minidom import Document, getDOMImplementation 8 8 from zope.interface import Interface 9 from waeup.csvfile.interfaces import ICSVFile 10 from waeup.interfaces import (IWAeUPObject, IWAeUPExporter, IWAeUPXMLExporter, 11 IWAeUPXMLImporter, IWAeUPCSVImporter) 9 from waeup.sirp.csvfile.interfaces import ICSVFile 10 from waeup.sirp.interfaces import ( 11 IWAeUPObject, IWAeUPExporter, IWAeUPXMLExporter, IWAeUPXMLImporter, 12 IWAeUPCSVImporter) 12 13 13 14 def readFile(f): -
waeup/branches/ulif-namespace/src/waeup/sirp/widgets/table.py
r4789 r4796 4 4 from hurry import yui 5 5 from zope.interface import Interface 6 from waeup. widgets.interfaces import ITableProvider6 from waeup.sirp.widgets.interfaces import ITableProvider 7 7 8 8 def varName(string): -
waeup/branches/ulif-namespace/src/waeup/sirp/workflow.py
r4789 r4796 7 7 from hurry.workflow.interfaces import IWorkflow, IWorkflowState, IWorkflowInfo 8 8 from hurry.workflow.interfaces import IWorkflowVersions 9 from waeup. interfaces import IWAeUPObject9 from waeup.sirp.interfaces import IWAeUPObject 10 10 11 11 UNCHECKED = 'unchecked'
Note: See TracChangeset for help on using the changeset viewer.