from Products.CMFCore.DirectoryView import registerDirectory from Products.CMFCore import utils as cmfutils from Products.CMFCore.CMFCorePermissions import AddPortalContent registerDirectory('skins', globals()) import University import Students import Faculty import Widgets fti = (Students.student_fti, Faculty.faculty_fti, Faculty.department_fti, Faculty.course_fti, ) contentClasses = (University.University, Students.StudentsFolder, Students.Student, Faculty.Faculty, Faculty.Department, Faculty.Course, ) contentConstructors = (University.addUniversity, Students.addStudentsFolder, Students.addStudent, Faculty.addFaculty, Faculty.addDepartment, Faculty.addCourse, ) def initialize(registrar): cmfutils.ContentInit( 'WAeUP', content_types=contentClasses, permission=AddPortalContent, extra_constructors=contentConstructors, fti=fti, ).initialize(registrar)