Changeset 49 for waeup_product/trunk/Extensions
- Timestamp:
- 16 Oct 2005, 16:09:41 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/Extensions/install.py
r47 r49 63 63 'action' : 'string:${object/absolute_url}/check_admission', 64 64 '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 ## }, 78 78 { 'tool' : 'portal_actions', 79 79 'id' : 'edit_student', … … 81 81 'action' : 'cpsdocument_edit_form', 82 82 'permission': ( ), 83 'condition' : 'python: member and here.portal_type == "Student"',83 'condition' : 'python: 0 and member and here.portal_type == "Student"', 84 84 'category' : 'student', 85 85 'visible' : 1, … … 87 87 { 'tool' : 'portal_actions', 88 88 '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', 91 91 '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()', 93 93 'category' : 'student', 94 94 'visible' : 1, … … 99 99 'action' : 'string:${object/absolute_url}/create_personal_form', 100 100 '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()', 102 102 'category' : 'student', 103 103 'visible' : 1, … … 108 108 'action' : 'cpsdocument_edit_form', 109 109 'permission': ( ), 110 'condition' : 'python: here.portal_type == "Jamb"',110 'condition' : 'python: member and here.portal_type in ("Student",) and "StudentManager" in member.getGroups()', 111 111 'category' : 'student', 112 112 'visible' : 1,
Note: See TracChangeset for help on using the changeset viewer.