Ignore:
Timestamp:
27 Oct 2005, 09:27:23 (19 years ago)
Author:
joachim
Message:

=main_tab actions defined

File:
1 edited

Legend:

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

    r96 r100  
    138138
    139139        ##########################################
    140         # student actions ###(
     140        # main_tab actions ###(
    141141        ##########################################
    142142        actions = ( { 'tool'      : 'portal_actions',
    143                         'id'        : 'checkadmission',
    144                         'name'      : 'Check Admission',
    145                         'action'    : 'string:${object/absolute_url}/check_admission',
     143                        'id'        : 'student_administration',
     144                        'name'      : 'Student Administration',
     145                        'action'    : 'string:${portal_url}/sections/waeup/students',
    146146                        'permission': (View, ),
    147                         'condition' : 'python: not member',
    148                         'category'  : 'student',
    149                         'visible'   : 1,
    150                       },
    151 ##                      { 'tool'      : 'portal_actions',
    152 ##                        'id'        : 'new_student',
    153 ##                        'name'      : 'Add Student',
    154 ##                        'action'    : 'string:${object/absolute_url}/create_student_form',
    155 ##                        'permission': (View),
    156 ##                        'condition' : 'python: 0 and member and here.portal_type == "StudentsFolder"',
    157 ##                        'category'  : 'student',
    158 ##                        'visible'   : 1,
    159 ##                      },
    160                       { 'tool'      : 'portal_actions',
    161                         'id'        : 'edit_student',
    162                         'name'      : 'Edit Student',
    163                         'action'    : 'cpsdocument_edit_form',
    164                         'permission': ( ),
    165                         'condition' : 'python: 0 and member and  here.portal_type == "Student"',
    166                         'category'  : 'student',
     147                        'category'  : 'main_tabs',
    167148                        'visible'   : 1,
    168149                      },
    169150                      { 'tool'      : 'portal_actions',
    170                         'id'        : 'add_jamb',
    171                         'name'      : 'Add Student JAMB',
    172                         'action'    : 'string:${object/absolute_url}/create_jamb',
    173                         'permission': (),
    174                         'condition' : 'python: member and here.portal_type in ("StudentsFolder",) and "StudentManager" in member.getGroups()',
    175                         'category'  : 'student',
     151                        'id'        : 'faculties',
     152                        'name'      : 'Faculties',
     153                        'action'    : 'string:${portal_url}/sections/waeup/faculties',
     154                        'permission': (View ),
     155                        'category'  : 'main_tabs',
    176156                        'visible'   : 1,
    177157                      },
    178                       { 'tool'      : 'portal_actions',
    179                         'id'        : 'add_faculty',
    180                         'name'      : 'Add New Faculty',
    181                         'action'    : 'string:${object/absolute_url}/addFaculty',
    182                         'permission': (),
    183                         'condition' : 'python: member and here.portal_type in ("University",) and "StudentManager" in member.getGroups()',
    184                         'category'  : 'student',
    185                         'visible'   : 1,
    186                       },
    187                       { 'tool'      : 'portal_actions',
    188                         'id'        : 'add_department',
    189                         'name'      : 'Add New Department',
    190                         'action'    : 'string:${object/absolute_url}/addDepartment',
    191                         'permission': (),
    192                         'condition' : 'python: member and here.portal_type in ("Faculty",) and "StudentManager" in member.getGroups()',
    193                         'category'  : 'student',
    194                         'visible'   : 1,
    195                       },
    196                       { 'tool'      : 'portal_actions',
    197                         'id'        : 'add_course',
    198                         'name'      : 'Add New Course',
    199                         'action'    : 'string:${object/absolute_url}/addCourse',
    200                         'permission': (),
    201                         'condition' : 'python: member and here.portal_type in ("Department",) and "StudentManager" in member.getGroups()',
    202                         'category'  : 'student',
    203                         'visible'   : 1,
    204                       },
    205                       { 'tool'      : 'portal_actions',
    206                         'id'        : 'add_personal',
    207                         'name'      : 'Add personal Data',
    208                         'action'    : 'string:${object/absolute_url}/create_personal_form',
    209                         'permission': (),
    210                         'condition' : 'python: 0 and member and not here.portal_type in ("Jamb","StudentsFolder") and not "StudentManager" in member.getGroups()',
    211                         'category'  : 'student',
    212                         'visible'   : 1,
    213                       },
    214                       { 'tool'      : 'portal_actions',
    215                         'id'        : 'edit_jamb',
    216                         'name'      : 'Edit Jamb Data',
    217                         'action'    : 'cpsdocument_edit_form',
    218                         'permission': ( ),
    219                         'condition' : 'python: member and here.portal_type in ("Student",) and "StudentManager" in member.getGroups()',
    220                         'category'  : 'student',
    221                         'visible'   : 1,
    222                       },
     158##                      { 'tool'      : 'portal_actions',
     159##                        'id'        : 'add_jamb',
     160##                        'name'      : 'Add Student JAMB',
     161##                        'action'    : 'string:${object/absolute_url}/create_jamb',
     162##                        'permission': (),
     163##                        'condition' : 'python: member and here.portal_type in ("StudentsFolder",) and "StudentManager" in member.getGroups()',
     164##                        'category'  : 'student',
     165##                        'visible'   : 1,
     166##                      },
     167##                      { 'tool'      : 'portal_actions',
     168##                        'id'        : 'add_faculty',
     169##                        'name'      : 'Add New Faculty',
     170##                        'action'    : 'string:${object/absolute_url}/addFaculty',
     171##                        'permission': (),
     172##                        'condition' : 'python: member and here.portal_type in ("University",) and "StudentManager" in member.getGroups()',
     173##                        'category'  : 'student',
     174##                        'visible'   : 1,
     175##                      },
     176##                      { 'tool'      : 'portal_actions',
     177##                        'id'        : 'add_department',
     178##                        'name'      : 'Add New Department',
     179##                        'action'    : 'string:${object/absolute_url}/addDepartment',
     180##                        'permission': (),
     181##                        'condition' : 'python: member and here.portal_type in ("Faculty",) and "StudentManager" in member.getGroups()',
     182##                        'category'  : 'student',
     183##                        'visible'   : 1,
     184##                      },
     185##                      { 'tool'      : 'portal_actions',
     186##                        'id'        : 'add_course',
     187##                        'name'      : 'Add New Course',
     188##                        'action'    : 'string:${object/absolute_url}/addCourse',
     189##                        'permission': (),
     190##                        'condition' : 'python: member and here.portal_type in ("Department",) and "StudentManager" in member.getGroups()',
     191##                        'category'  : 'student',
     192##                        'visible'   : 1,
     193##                      },
     194##                      { 'tool'      : 'portal_actions',
     195##                        'id'        : 'add_personal',
     196##                        'name'      : 'Add personal Data',
     197##                        'action'    : 'string:${object/absolute_url}/create_personal_form',
     198##                        'permission': (),
     199##                        'condition' : 'python: 0 and member and not here.portal_type in ("Jamb","StudentsFolder") and not "StudentManager" in member.getGroups()',
     200##                        'category'  : 'student',
     201##                        'visible'   : 1,
     202##                      },
     203##                      { 'tool'      : 'portal_actions',
     204##                        'id'        : 'edit_jamb',
     205##                        'name'      : 'Edit Jamb Data',
     206##                        'action'    : 'cpsdocument_edit_form',
     207##                        'permission': ( ),
     208##                        'condition' : 'python: member and here.portal_type in ("Student",) and "StudentManager" in member.getGroups()',
     209##                        'category'  : 'student',
     210##                        'visible'   : 1,
     211##                      },
    223212                    )
    224213        self.verifyActions(actions)
     
    342331    #
    343332    portlets = (
    344               {'identifier': 'waeup_main_tabs',
    345               'type': 'Custom Portlet',
    346               'slot': 'main_tabs',
    347               'order': 0,
    348               'render_method': 'portlet_main_navigation',
    349               'Title': 'main tabs',
    350               },
     333##              {'identifier': 'waeup_main_tabs',
     334##              'type': 'Custom Portlet',
     335##              'slot': 'main_tabs',
     336##              'order': 0,
     337##              'render_method': 'portlet_main_navigation',
     338##              'Title': 'main tabs',
     339##              },
    351340              {'identifier': 'waeup_breadcrumbs',
    352341              'type': 'Breadcrumbs Portlet',
     
    359348              'order': 0,
    360349              },
     350              {'identifier': 'waeup_main_tab_actions',
     351              'type': 'Actions Portlet',
     352              'slot': 'main_tabs',
     353              'order': 0,
     354              'categories': ['main_tabs',],
     355              'Title': 'waep_main_tab_actions',
     356              },
    361357              {'identifier': 'waeup_object_actions',
    362358              'type': 'Actions Portlet',
    363359              'slot': 'waeup_object_actions',
    364360              'order': 0,
    365               'categories': ['object'],
     361              'categories': ['object',],
    366362              'Title': 'waep_manager_actions',
    367363              },
Note: See TracChangeset for help on using the changeset viewer.