source: waeup_product/trunk/__init__.py @ 214

Last change on this file since 214 was 206, checked in by joachim, 18 years ago

=new

  • Property svn:keywords set to Id
File size: 2.7 KB
RevLine 
[199]1#-*- mode: python; mode: fold -*-
[204]2# $Id: __init__.py 206 2006-05-18 13:48:21Z 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
[200]13from Products.WAeUP.University import University, addUniversity
14from Products.WAeUP.Accommodation import AccoFolder, addAccoFolder
15from Products.WAeUP.Accommodation import Accommodation, addAccommodation
16from Products.WAeUP.Faculty import Faculty, addFaculty
17from Products.WAeUP.Faculty import Department, addDepartment
18from Products.WAeUP.Faculty import Course, addCourse
19from Products.WAeUP.Faculty import CourseTicket, addCourseTicket
20from Products.WAeUP.Students import Student, addStudent
21from Products.WAeUP.Students import StudentPersonal, addStudentPersonal
22from Products.WAeUP.Students import StudentEligibility, addStudentEligibility
23from Products.WAeUP.Students import StudentDocuments, addStudentDocuments
24from Products.WAeUP.Students import Jamb, addJamb
25from Products.WAeUP.Students import StudyLevel, addStudyLevel
26from Products.WAeUP.Students import Semester, addSemester
27
28
[59]29import Widgets
[19]30
[200]31contentClasses = (
32    University,
33    Faculty,
34    Department,
35    Course,
36    CourseTicket,
37    AccoFolder,
38    Accommodation,
39    Student,
40    StudentPersonal,
41    StudentEligibility,
42    StudentDocuments,
43    Jamb,
44    StudyLevel,
45    Semester,
46    )
47
48contentConstructors = (
49    addUniversity,
50    addFaculty,
51    addDepartment,
52    addCourse,
53    addCourseTicket,
54    addAccoFolder,
55    addAccommodation,
56    addStudent,
57    addStudentPersonal,
58    addStudentEligibility,
59    addStudentDocuments,
60    addJamb,
61    addStudyLevel,
62    addSemester,
63    )
64
65fti = (
66    {}, # University
67    {}, # Faculty
68    {}, # Department
69    {}, # Course
70    {}, # CourseTicket
71    {}, # AccoFolder
72    {}, # Accommodation
73    {}, # Student,
74    {}, # StudentPersonal,
75    {}, # StudentEligibility,
76    {}, # StudentDocuments,
77    {}, # Jamb,
78    {}, # StudyLevel,
79    {}, # Semester,
80    )
81
[199]82registerDirectory('skins', globals())
[197]83
[199]84def initialize(registrar):
[200]85    ContentInit('WAeUP Types',
86                content_types = contentClasses,
87                permission = AddPortalContent,
88                extra_constructors = contentConstructors,
89                fti = fti,
90                ).initialize(registrar)
91
[199]92    # Extension profile registration
93    profile_registry.registerProfile(
94        'default',
95        'WAeUP',
96        "The WestAfrican e-University Project",
97        'profiles/default',
98        'WAeUP',
99        EXTENSION,
100        for_=ICPSSite)
[84]101
Note: See TracBrowser for help on using the repository browser.