Ignore:
Timestamp:
28 Oct 2005, 10:17:39 (19 years ago)
Author:
joachim
Message:

=academics created

Location:
waeup_product/trunk/skins
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_default/getWAeUPSchemas.py

    r107 r113  
    77
    88students_folder_schema = { ###(
     9}
     10###)
     11
     12academics_folder_schema = { ###(
    913}
    1014###)
     
    457461
    458462schemas['university'] = university_schema
     463schemas['academics'] = academics_folder_schema
    459464schemas['students'] = students_folder_schema
    460465schemas['student'] = student_schema
  • waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py

    r111 r113  
    3434                 'condition': "python:member and 'Manager' in member.getRoles()",
    3535                 'permissions': (View,)},
    36                 {'id': 'add_faculty',
    37                  'name': 'Add a Faculty',
    38                  'condition': "python:member and not 'Student'in member.getRoles()",
    39                  'action'    : 'string:${object/absolute_url}/create_common?type_name=Faculty',
    40                  #'action': 'folder_factories',
    41                  'permissions': (UniversityManage,)},
    42                 {'id': 'add_accommodation',
    43                  'name': 'Add an Accommodation Hall',
    44                  'condition': "python:member and not 'Student'in member.getRoles()",
    45                  'action'    : 'string:${object/absolute_url}/add_accommodation',
    46                  #'action': 'folder_factories',
    47                  'permissions': (UniversityManage,)},
     36##                {'id': 'add_accommodation',
     37##                 'name': 'Add an Accommodation Hall',
     38##                 'condition': "python:member and not 'Student'in member.getRoles()",
     39##                 'action'    : 'string:${object/absolute_url}/add_accommodation',
     40##                 #'action': 'folder_factories',
     41##                 'permissions': (UniversityManage,)},
    4842                 {'id': 'new_content',
    4943                 'name': 'New content',
     
    5650                 'name': 'action_folder_contents',
    5751                 'action': 'folder_contents',
    58                  'condition': "python:member and 'UniversityManager' in member.getRoles()",
    59                  'permissions': (ModifyPortalContent,UniversityManage,)},
     52                 'condition': "python:member and  'Manager' in member.getRoles()",
     53                 'condition': "",
     54                 'permissions': (ModifyPortalContent,)},
    6055                {'id': 'edit',
    6156                 'name': 'action_edit',
     
    6863                 'condition': "python:member and 'Manager' in member.getRoles()",
    6964                 'permissions': (ModifyPortalContent,)},
    70           {'id': 'localroles',
    71           'name': 'delegate',
    72           'action': 'folder_localrole_form',
    73           'permissions': (UniversityManage,StudentManage)
    74           },
     65                 {'id': 'localroles',
     66                 'name': 'delegate',
     67                 'action': 'folder_localrole_form',
     68                 'permissions': (ModifyPortalContent),
     69                 'visible' : 0,
     70                 },
    7571                 )
    7672        }
     
    10096                 'name': 'Students',
    10197                 'action': 'students_folder_view',
    102                  'condition': "python:member and 'Manager' in member.getRoles()",
     98                 #'condition': "python:member and 'Manager' in member.getRoles()",
    10399                 'permissions': (View,)},
    104100##                {
     
    136132    )
    137133}
     134###)
     135
     136academics_folder_type = { ###(
     137    'title': 'WAeUP Academics Folder',
     138    'description': 'The WAeUP Academics Folder',
     139    'content_icon': '',
     140    'content_meta_type': 'AcademicsFolder',
     141    'product': 'CPSDefault',
     142    'factory': 'addFolder',
     143    'immediate_view': 'folder_view',
     144    'global_allow': 1,
     145    'filter_content_types': 1,
     146    'allowed_content_types': ('Faculty',),
     147    'allow_discussion': 0,
     148    'cps_is_searchable': 1,
     149    'cps_display_as_document_in_listing': 1,
     150    'cps_proxy_type': 'folder',
     151    'schemas': ['metadata', 'common', 'folder'],
     152    'layouts': ['waeup_common','folder'],
     153    'layout_clusters': ['metadata:metadata'],
     154    'cps_section_wf': 'waeup_section_wf',
     155    'actions': ({'id': 'view',
     156                 'name': 'Academics',
     157                 'action': 'academics_view',
     158                 'condition': "",
     159                 'permissions': (View,)},
     160                {'id': 'add_faculty',
     161                 'name': 'Add a Faculty',
     162                 'condition': "python:member and 'UniversityManager'in member.getRoles()",
     163                 'action'    : 'string:${object/absolute_url}/create_common?type_name=Faculty',
     164                 'permissions': (UniversityManage,)},
     165                 {'id': 'localroles',
     166                 'name': 'delegate',
     167                 'action': 'folder_localrole_form',
     168                 'permissions': (UniversityManage,),
     169                 'visible': False,
     170                 },
     171                )
     172      }
    138173###)
    139174
     
    624659types['University'] = university_type
    625660types['StudentsFolder'] = students_folder_type
     661types['AcademicsFolder'] = academics_folder_type
    626662types['Student'] = student_type
    627663types['StudentPersonal'] = student_personal_type
  • waeup_product/trunk/skins/waeup_default/university_view.py

    r111 r113  
    1010    if 'Manager' in member.getRoles():
    1111        return context.folder_view()
    12 return context.documents.frontpage()
     12index = getattr(context,'documents',None)
     13if index:
     14    fp = getattr(index,'frontpage',None)
     15    if fp:
     16        return fp()
    1317return context.university_view_all(psm=psm)
  • waeup_product/trunk/skins/waeup_default/university_view_all.pt

    r111 r113  
    1717               items here/contentValues"
    1818               >
    19     <span tal:content="context/documents/frontpage/content" />
    2019    <a href="" tal:attributes="href string:${context/absolute_url}/admission_status">Admission List UME</a>.<br />
    2120    <a href="" tal:attributes="href string:${context/absolute_url}/check_admission">Admission Request (JAMB canditates only)</a>.
  • waeup_product/trunk/skins/waeup_student/students_folder_view.py

    r106 r113  
    1111    if 'Manager' in roles:
    1212        return context.folder_view()
    13     elif 'StudentManager' in roles:
     13    elif 'StudentManager' in roles or 'UniversityManager' in roles:
    1414        return context.students_folder_view_manager(psm=psm)
    1515    elif 'Student' in roles:
Note: See TracChangeset for help on using the changeset viewer.