source: waeup_product/trunk/__init__.py @ 256

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

=import from csv

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