Changeset 20 for waeup_product/trunk/Extensions
- Timestamp:
- 29 Sep 2005, 23:23:25 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/Extensions/install.py
r19 r20 1 1 from Products.CPSInstaller.CPSInstaller import CPSInstaller 2 from Products.CMFCore.CMFCorePermissions import View 2 from Products.CMFCore.CMFCorePermissions import View, ModifyPortalContent 3 3 try: 4 4 from Products.CPSSubscriptions.CPSSubscriptionsPermissions import \ … … 58 58 59 59 ########################################## 60 # SKINS 60 # actions 61 ########################################## 62 actions = ( { 'tool' : 'portal_actions', 63 'id' : 'checkadmission', 64 'name' : 'Check Admission', 65 'action' : 'string:${portal_url}/check_admission_form', 66 'permission': (View, ), 67 'condition' : '', 68 'category' : 'ostudent', 69 'visible' : 1, 70 }, 71 { 'tool' : 'portal_actions', 72 'id' : 'new_student', 73 'name' : 'Add Student', 74 'action' : 'folder_factories', 75 'permission': (View, ), 76 'condition' : 'python: here.portal_type == "StudentFolder"', 77 'category' : 'student', 78 'visible' : 1, 79 }, 80 { 'tool' : 'portal_actions', 81 'id' : 'edit_student', 82 'name' : 'Edit Student', 83 'action' : 'cpsdocument_edit_form', 84 'permission': (ModifyPortalContent, ), 85 'condition' : 'python: here.portal_type == "Student"', 86 'category' : 'student', 87 'visible' : 1, 88 }, 89 { 'tool' : 'portal_actions', 90 'id' : 'edit_student', 91 'name' : 'Add Jamb Data', 92 'action' : 'folder_factories', 93 'permission': (ModifyPortalContent, ), 94 'condition' : 'python:len(object.contentItems()) == 0', 95 'category' : 'student', 96 'visible' : 1, 97 }, 98 ) 99 self.verifyActions(actions) 100 ########################################## 101 # skins 61 102 ########################################## 62 103 self.log("Verifying %(product_name)s skinss" % vars()) … … 67 108 self.resetSkinCache() 68 109 ########################################## 69 # PORTAL TYPES110 # portal types 70 111 ########################################## 71 112 dtypes = portal.getWAeUPTypes() … … 87 128 self.verifyContentTypes(ptypes) 88 129 ########################################## 89 # PORTALSchemas130 # Schemas 90 131 ########################################## 91 132 self.log("Verifying %(product_name)s schemas" % vars()) 92 133 self.verifySchemas(portal.getWAeUPSchemas()) 93 134 ########################################## 94 # PORTAL layouts 135 # widgets 136 ########################################## 137 self.log("Verifying %(product_name)s widgets" % vars()) 138 self.verifyWidgets(portal.getWAeUPWidgets()) 139 ########################################## 140 # layouts 95 141 ########################################## 96 142 self.log("Verifying %(product_name)s layouts" % vars()) 97 143 self.verifyLayouts(portal.getWAeUPLayouts()) 98 144 ########################################## 99 # PORTALVocabularies145 # Vocabularies 100 146 ########################################## 101 147 self.log("Verifying %(product_name)s vocabularies" % vars())
Note: See TracChangeset for help on using the changeset viewer.