Changeset 263 for waeup_product
- Timestamp:
- 22 Jun 2006, 18:38:04 (18 years ago)
- Location:
- waeup_product/trunk
- Files:
-
- 6 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/__init__.py
r260 r263 1 from Testing.ZopeTestCase import installProduct2 3 installProduct('WAeUP')4 1 #-*- mode: python; mode: fold -*- 5 2 # $Id$ … … 13 10 14 11 from Products.CPSCore.interfaces import ICPSSite 12 13 import PatchCPSDefaultImportExport 15 14 16 15 import Products.WAeUP.WAeUPPermissions -
waeup_product/trunk/exportimport.py
r260 r263 489 489 490 490 def setupStructure(site,context): ###( 491 sections = getattr(site,'sections') 492 portal = getattr(sections,'uniportal',None) 491 portal = getattr(site,'uniportal',None) 493 492 if portal is None: 494 s ections.invokeFactory('University','uniportal')493 site.invokeFactory('University','uniportal') 495 494 portal = getattr(site,'uniportal',None) 496 495 portal.getContent().edit(mapping={'Title':SRPP_TITLE}) -
waeup_product/trunk/profiles/default/themes.xml
r238 r263 4 4 <property name="debug_mode">True</property> 5 5 <property name="method_themes"> 6 <element key="index_html" value="default+Front"/>7 6 </property> 7 <object name="default" meta_type="Portal Theme"/> 8 8 <object name="waeup_management_theme" meta_type="Portal Theme"/> 9 9 <object name="waeup_plain_theme" meta_type="Portal Theme"/> -
waeup_product/trunk/tests/__init__.py
r260 r263 2 2 3 3 installProduct('WAeUP') 4 #-*- mode: python; mode: fold -*-5 # $Id$6 from Products.CMFCore.utils import ContentInit, ToolInit7 from Products.CMFCore.DirectoryView import registerDirectory8 from Products.CMFCore import utils as cmfutils9 from Products.CMFCore.CMFCorePermissions import AddPortalContent10 11 from Products.GenericSetup import profile_registry12 from Products.GenericSetup import EXTENSION13 14 from Products.CPSCore.interfaces import ICPSSite15 16 import Products.WAeUP.WAeUPPermissions17 from Products.WAeUP.University import University, addUniversity18 from Products.WAeUP.Accommodation import AccoFolder, addAccoFolder19 from Products.WAeUP.Accommodation import Accommodation, addAccommodation20 #from Products.WAeUP.Academics import SCFolder, addSCFolder21 from Products.WAeUP.Academics import Certificate, addCertificate22 from Products.WAeUP.Academics import CertificateCourse, addCertificateCourse23 from Products.WAeUP.Academics import Faculty, addFaculty24 from Products.WAeUP.Academics import Department, addDepartment25 from Products.WAeUP.Academics import Course, addCourse26 from Products.WAeUP.Academics import CourseTicket, addCourseTicket27 from Products.WAeUP.Academics import CertificateCourse, addCertificateCourse28 from Products.WAeUP.Students import Student, addStudent29 from Products.WAeUP.Students import StudentPersonal, addStudentPersonal30 from Products.WAeUP.Students import StudentEligibility, addStudentEligibility31 from Products.WAeUP.Students import StudentDocuments, addStudentDocuments32 from Products.WAeUP.Students import Jamb, addJamb33 from Products.WAeUP.Students import StudyLevel, addStudyLevel34 from Products.WAeUP.Students import Semester, addSemester35 36 37 import Widgets38 39 contentClasses = (40 University,41 #SCFolder,42 Certificate,43 CertificateCourse,44 Faculty,45 Department,46 Course,47 CourseTicket,48 CertificateCourse,49 AccoFolder,50 Accommodation,51 Student,52 StudentPersonal,53 StudentEligibility,54 StudentDocuments,55 Jamb,56 StudyLevel,57 Semester,58 )59 60 contentConstructors = (61 addUniversity,62 #addSCFolder,63 addCertificate,64 addCertificateCourse,65 addFaculty,66 addDepartment,67 addCourse,68 addCourseTicket,69 addCertificateCourse,70 addAccoFolder,71 addAccommodation,72 addStudent,73 addStudentPersonal,74 addStudentEligibility,75 addStudentDocuments,76 addJamb,77 addStudyLevel,78 addSemester,79 )80 81 fti = (82 {}, # University83 #{}, #SCFolder84 {}, #Certificate85 {}, #CertificateCourse86 {}, # Faculty87 {}, # Department88 {}, # Course89 {}, # CourseTicket90 {}, # CertificateCourse91 {}, # AccoFolder92 {}, # Accommodation93 {}, # Student,94 {}, # StudentPersonal,95 {}, # StudentEligibility,96 {}, # StudentDocuments,97 {}, # Jamb,98 {}, # StudyLevel,99 {}, # Semester,100 )101 102 registerDirectory('skins', globals())103 104 def initialize(registrar):105 ContentInit('WAeUP Types',106 content_types = contentClasses,107 permission = AddPortalContent,108 extra_constructors = contentConstructors,109 fti = fti,110 ).initialize(registrar)111 112 # Extension profile registration113 profile_registry.registerProfile(114 'default',115 'WAeUP',116 "The WestAfrican e-University Project",117 'profiles/default',118 'WAeUP',119 EXTENSION,120 for_=ICPSSite)121 -
waeup_product/trunk/tests/test_test.py
r260 r263 9 9 10 10 def testTest(self): 11 print "works!" 11 self.failUnless('AcademicsFolder' in 12 self.portal.portal_types.objectIds(), 13 "No AcademicsFolder type") 12 14 13 15 def test_suite(): -
waeup_product/trunk/tests/waeuptest.py
r260 r263 7 7 8 8 class LayerClass(ExtensionProfileLayerClass): 9 extension_ids = (' WAeUP:default',)9 extension_ids = ('CPSSubscriptions:default', 'WAeUP:default',) 10 10 11 11 WAeUPLayer = LayerClass(__name__, 'WAeUPLayer')
Note: See TracChangeset for help on using the changeset viewer.