Ignore:
Timestamp:
16 Oct 2005, 16:09:41 (19 years ago)
Author:
joachim
Message:

=weiteres

File:
1 edited

Legend:

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

    r47 r49  
    6363                        'action'    : 'string:${object/absolute_url}/check_admission',
    6464                        'permission': (View, ),
    65                         'condition' : 'member',
    66                         'category'  : 'student',
    67                         'visible'   : 1,
    68                       },
    69                       { 'tool'      : 'portal_actions',
    70                         'id'        : 'new_student',
    71                         'name'      : 'Add Student',
    72                         'action'    : 'string:${object/absolute_url}/create_student_form',
    73                         'permission': (View),
    74                         'condition' : 'python: member and here.portal_type == "StudentsFolder"',
    75                         'category'  : 'student',
    76                         'visible'   : 1,
    77                       },
     65                        'condition' : 'python: not member',
     66                        'category'  : 'student',
     67                        'visible'   : 1,
     68                      },
     69##                      { 'tool'      : 'portal_actions',
     70##                        'id'        : 'new_student',
     71##                        'name'      : 'Add Student',
     72##                        'action'    : 'string:${object/absolute_url}/create_student_form',
     73##                        'permission': (View),
     74##                        'condition' : 'python: 0 and member and here.portal_type == "StudentsFolder"',
     75##                        'category'  : 'student',
     76##                        'visible'   : 1,
     77##                      },
    7878                      { 'tool'      : 'portal_actions',
    7979                        'id'        : 'edit_student',
     
    8181                        'action'    : 'cpsdocument_edit_form',
    8282                        'permission': ( ),
    83                         'condition' : 'python: member and  here.portal_type == "Student"',
     83                        'condition' : 'python: 0 and member and  here.portal_type == "Student"',
    8484                        'category'  : 'student',
    8585                        'visible'   : 1,
     
    8787                      { 'tool'      : 'portal_actions',
    8888                        'id'        : 'add_jamb',
    89                         'name'      : 'Add Jamb Data',
    90                         'action'    : 'string:${object/absolute_url}/create_jamb_form',
     89                        'name'      : 'Add Student JAMB',
     90                        'action'    : 'string:${object/absolute_url}/create_jamb',
    9191                        'permission': (),
    92                         'condition' : 'python:not here.portal_type in ("Jamb","StudentsFolder") and len(object.contentItems()) == 0',
     92                        'condition' : 'python: member and here.portal_type in ("StudentsFolder",) and "StudentManager" in member.getGroups()',
    9393                        'category'  : 'student',
    9494                        'visible'   : 1,
     
    9999                        'action'    : 'string:${object/absolute_url}/create_personal_form',
    100100                        'permission': (),
    101                         'condition' : 'python:not here.portal_type in ("Jamb","StudentsFolder")',
     101                        'condition' : 'python: 0 and member and not here.portal_type in ("Jamb","StudentsFolder") and not "StudentManager" in member.getGroups()',
    102102                        'category'  : 'student',
    103103                        'visible'   : 1,
     
    108108                        'action'    : 'cpsdocument_edit_form',
    109109                        'permission': ( ),
    110                         'condition' : 'python: here.portal_type == "Jamb"',
     110                        'condition' : 'python: member and here.portal_type in ("Student",) and "StudentManager" in member.getGroups()',
    111111                        'category'  : 'student',
    112112                        'visible'   : 1,
Note: See TracChangeset for help on using the changeset viewer.