source: WAeUP_SRP/trunk/__init__.py @ 310

Last change on this file since 310 was 279, checked in by joachim, 18 years ago

=modifications to level view

  • Property svn:keywords set to Id
File size: 3.5 KB
RevLine 
[199]1#-*- mode: python; mode: fold -*-
[204]2# $Id: __init__.py 279 2006-06-29 06:38:51Z joachim $
[206]3from Products.CMFCore.utils import ContentInit, ToolInit
[19]4from Products.CMFCore.DirectoryView import registerDirectory
5from Products.CMFCore import utils as cmfutils
6from Products.CMFCore.CMFCorePermissions import AddPortalContent
7
[199]8from Products.GenericSetup import profile_registry
9from Products.GenericSetup import EXTENSION
[19]10
[199]11from Products.CPSCore.interfaces import ICPSSite
12
[265]13# Only for CPS 3.4.1. In 3.4.2 and later this should be fixed.
[263]14import PatchCPSDefaultImportExport
15
[274]16import Products.WAeUP_SRP.WAeUPPermissions
[278]17from Products.WAeUP_SRP.Academics import AcademicsFolder, addAcademicsFolder
[274]18from Products.WAeUP_SRP.University import University, addUniversity
19from Products.WAeUP_SRP.Accommodation import AccoFolder, addAccoFolder
20from Products.WAeUP_SRP.Accommodation import Accommodation, addAccommodation
21from Products.WAeUP_SRP.Academics import Certificate, addCertificate
22from Products.WAeUP_SRP.Academics import CertificateCourse, addCertificateCourse
23from Products.WAeUP_SRP.Academics import Faculty, addFaculty
24from Products.WAeUP_SRP.Academics import Department, addDepartment
25from Products.WAeUP_SRP.Academics import Course, addCourse
26from Products.WAeUP_SRP.Academics import CourseTicket, addCourseTicket
27from Products.WAeUP_SRP.Academics import CertificateCourse, addCertificateCourse
28from Products.WAeUP_SRP.Students import Student, addStudent
29from Products.WAeUP_SRP.Students import StudentPersonal, addStudentPersonal
30from Products.WAeUP_SRP.Students import StudentEligibility, addStudentEligibility
31from Products.WAeUP_SRP.Students import StudentDocuments, addStudentDocuments
32from Products.WAeUP_SRP.Students import Jamb, addJamb
33from Products.WAeUP_SRP.Students import StudyLevel, addStudyLevel
34from Products.WAeUP_SRP.Students import Semester, addSemester
[200]35
36
[59]37import Widgets
[19]38
[200]39contentClasses = (
40    University,
[278]41    AcademicsFolder,
[256]42    Certificate,
43    CertificateCourse,
[200]44    Faculty,
45    Department,
46    Course,
47    CourseTicket,
[256]48    CertificateCourse,
[200]49    AccoFolder,
50    Accommodation,
51    Student,
52    StudentPersonal,
53    StudentEligibility,
54    StudentDocuments,
55    Jamb,
56    StudyLevel,
57    Semester,
58    )
59
60contentConstructors = (
61    addUniversity,
[278]62    addAcademicsFolder,
[256]63    addCertificate,
64    addCertificateCourse,
[200]65    addFaculty,
66    addDepartment,
67    addCourse,
68    addCourseTicket,
[256]69    addCertificateCourse,
[200]70    addAccoFolder,
71    addAccommodation,
72    addStudent,
73    addStudentPersonal,
74    addStudentEligibility,
75    addStudentDocuments,
76    addJamb,
77    addStudyLevel,
78    addSemester,
79    )
80
81fti = (
82    {}, # University
[278]83    {}, #AcademicsFolder
[256]84    {}, #Certificate
85    {}, #CertificateCourse
[200]86    {}, # Faculty
87    {}, # Department
88    {}, # Course
89    {}, # CourseTicket
[256]90    {}, # CertificateCourse
[200]91    {}, # AccoFolder
92    {}, # Accommodation
93    {}, # Student,
94    {}, # StudentPersonal,
95    {}, # StudentEligibility,
96    {}, # StudentDocuments,
97    {}, # Jamb,
98    {}, # StudyLevel,
99    {}, # Semester,
100    )
101
[199]102registerDirectory('skins', globals())
[197]103
[199]104def initialize(registrar):
[200]105    ContentInit('WAeUP Types',
106                content_types = contentClasses,
107                permission = AddPortalContent,
108                extra_constructors = contentConstructors,
109                fti = fti,
110                ).initialize(registrar)
111
[199]112    # Extension profile registration
113    profile_registry.registerProfile(
114        'default',
[274]115        'WAeUP_SRP',
[199]116        "The WestAfrican e-University Project",
117        'profiles/default',
[274]118        'WAeUP_SRP',
[199]119        EXTENSION,
120        for_=ICPSSite)
[84]121
Note: See TracBrowser for help on using the repository browser.