#-*- mode: python; mode: fold -*- # $Id: __init__.py 423 2006-08-25 17:19:21Z joachim $ from Products.CMFCore.utils import ContentInit, ToolInit from Products.CMFCore.DirectoryView import registerDirectory from Products.CMFCore import utils as cmfutils from Products.CMFCore.CMFCorePermissions import AddPortalContent from Products.GenericSetup import profile_registry from Products.GenericSetup import EXTENSION from Products.CPSCore.interfaces import ICPSSite # Only for CPS 3.4.1. In 3.4.2 and later this should be fixed. import PatchCPSDefaultImportExport import Products.WAeUP_SRP.WAeUPPermissions from Products.WAeUP_SRP.Academics import AcademicsFolder, addAcademicsFolder from Products.WAeUP_SRP.University import University, addUniversity from Products.WAeUP_SRP.Accommodation import AccoFolder, addAccoFolder from Products.WAeUP_SRP.Accommodation import Accommodation, addAccommodation from Products.WAeUP_SRP.Academics import Certificate, addCertificate from Products.WAeUP_SRP.Academics import CertificateCourse, addCertificateCourse from Products.WAeUP_SRP.Academics import Faculty, addFaculty from Products.WAeUP_SRP.Academics import Department, addDepartment from Products.WAeUP_SRP.Academics import Course, addCourse from Products.WAeUP_SRP.Academics import CourseTicket, addCourseTicket from Products.WAeUP_SRP.Academics import CertificateCourse, addCertificateCourse from Products.WAeUP_SRP.Students import StudentsFolder, addStudentsFolder from Products.WAeUP_SRP.Students import Student, addStudent from Products.WAeUP_SRP.Students import StudentStudyCourse, addStudentStudyCourse from Products.WAeUP_SRP.Students import StudentAdmission, addStudentAdmission from Products.WAeUP_SRP.Students import StudentClearance, addStudentClearance from Products.WAeUP_SRP.Students import StudentPersonal, addStudentPersonal from Products.WAeUP_SRP.Students import StudentDocuments, addStudentDocuments from Products.WAeUP_SRP.Students import Jamb, addJamb from Products.WAeUP_SRP.Students import StudyLevel, addStudyLevel from Products.WAeUP_SRP.Students import Semester, addSemester import Widgets contentClasses = ( University, AcademicsFolder, Certificate, CertificateCourse, Faculty, Department, Course, CourseTicket, CertificateCourse, AccoFolder, Accommodation, StudentsFolder, Student, StudentStudyCourse, StudentAdmission, StudentClearance, StudentPersonal, StudentDocuments, Jamb, StudyLevel, Semester, ) contentConstructors = ( addUniversity, addAcademicsFolder, addCertificate, addCertificateCourse, addFaculty, addDepartment, addCourse, addCourseTicket, addCertificateCourse, addAccoFolder, addAccommodation, addStudentsFolder, addStudent, addStudentStudyCourse, addStudentAdmission, addStudentClearance, addStudentPersonal, addStudentDocuments, addJamb, addStudyLevel, addSemester, ) fti = ( {}, # University {}, #AcademicsFolder {}, #Certificate {}, #CertificateCourse {}, # Faculty {}, # Department {}, # Course {}, # CourseTicket {}, # CertificateCourse {}, # AccoFolder {}, # Accommodation {}, # StudentsFolder, {}, # Student, {}, # StudentStudyCourse, {}, # StudentAdmission, {}, # StudentClearance, {}, # StudentAdmission, {}, # StudentClearance, {}, # StudentPersonal, {}, # StudentDocuments, {}, # Jamb, {}, # StudyLevel, {}, # Semester, ) registerDirectory('skins', globals()) def initialize(registrar): ContentInit('WAeUP Types', content_types = contentClasses, permission = AddPortalContent, extra_constructors = contentConstructors, fti = fti, ).initialize(registrar) # Extension profile registration profile_registry.registerProfile( 'default', 'WAeUP_SRP', "The WestAfrican e-University Project", 'profiles/default', 'WAeUP_SRP', EXTENSION, for_=ICPSSite)