source: waeup_product/trunk/__init__.py @ 264

Last change on this file since 264 was 263, checked in by lregebro, 18 years ago

Profiles that work.

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