source: waeup_product/trunk/__init__.py @ 238

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

=import csv

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