Ignore:
Timestamp:
29 Sep 2005, 23:23:25 (19 years ago)
Author:
joachim
Message:

second ci

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/Extensions/install.py

    r19 r20  
    11from Products.CPSInstaller.CPSInstaller import CPSInstaller
    2 from Products.CMFCore.CMFCorePermissions import View
     2from Products.CMFCore.CMFCorePermissions import View, ModifyPortalContent
    33try:
    44  from Products.CPSSubscriptions.CPSSubscriptionsPermissions import \
     
    5858       
    5959        ##########################################
    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
    61102        ##########################################
    62103        self.log("Verifying %(product_name)s skinss" % vars())
     
    67108        self.resetSkinCache()
    68109        ##########################################
    69         # PORTAL TYPES
     110        # portal types
    70111        ##########################################
    71112        dtypes = portal.getWAeUPTypes()
     
    87128        self.verifyContentTypes(ptypes)
    88129        ##########################################
    89         # PORTAL Schemas
     130        # Schemas
    90131        ##########################################
    91132        self.log("Verifying %(product_name)s schemas" % vars())
    92133        self.verifySchemas(portal.getWAeUPSchemas())
    93134        ##########################################
    94         # PORTAL layouts
     135        # widgets
     136        ##########################################
     137        self.log("Verifying %(product_name)s widgets" % vars())
     138        self.verifyWidgets(portal.getWAeUPWidgets())
     139        ##########################################
     140        # layouts
    95141        ##########################################
    96142        self.log("Verifying %(product_name)s layouts" % vars())
    97143        self.verifyLayouts(portal.getWAeUPLayouts())
    98144        ##########################################
    99         # PORTAL Vocabularies
     145        # Vocabularies
    100146        ##########################################
    101147        self.log("Verifying %(product_name)s vocabularies" % vars())
Note: See TracChangeset for help on using the changeset viewer.