Changeset 1796 for WAeUP_SRP


Ignore:
Timestamp:
18 May 2007, 10:52:31 (18 years ago)
Author:
Henrik Bettermann
Message:

some fixes to display the correct object actions
also one fix regarding ticket #214

Location:
WAeUP_SRP/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/cps_portlets/portlet_object_actions_staff.xml

    r1737 r1796  
    4545 <f id="provider" v=""/>
    4646 <f id="show_icons" v="True"/>
    47  <f id="slot" v="staff_object_tabs"/>
     47 <f id="slot" v="staff_object_slot"/>
    4848 <f id="slot_override" v="0"/>
    4949 <f id="visibility_range" v="0-0"/>
  • WAeUP_SRP/trunk/profiles/default/cps_portlets/portlet_object_actions_students.xml

    r1737 r1796  
    3737 <f id="provider" v=""/>
    3838 <f id="show_icons" v="True"/>
    39  <f id="slot" v="student_object_tabs"/>
     39 <f id="slot" v="student_object_slot"/>
    4040 <f id="slot_override" v="0"/>
    4141 <f id="visibility_range" v="0-0"/>
  • WAeUP_SRP/trunk/profiles/default/vocabularies.xml

    r1756 r1796  
    3636 <object name="searchable_academics_states" meta_type="CPS Vocabulary"/>
    3737 <object name="verdicts" meta_type="CPS Vocabulary"/>
     38 <object name="global_roles" meta_type="CPS Vocabulary"/>
    3839 </object>
  • WAeUP_SRP/trunk/skins/waeup_design/main_template.pt

    r1792 r1796  
    2626  student_theme python:test(waeup_skin == 'WAeUP_Student',1,0);
    2727  navigation_slot python:test(student_theme,'student_navigation_slot','navigation_slot');
    28   object_tabs python:test(student_theme,'student_object_tabs','staff_object_tabs');
     28  object_tabs python:test(student_theme,'student_object_slot','staff_object_slot');
    2929 
    3030  ">
  • WAeUP_SRP/trunk/skins/waeup_directory/getWAeUPDirectoryActions.py

    r953 r1796  
    4545    'name': 'cpsdir_label_edit_entry',
    4646    'category': 'object',
     47    'available': True,
     48    'visible': True,
     49    'allowed': True,
     50    'permissions': ('View',),
    4751    }
    4852
  • WAeUP_SRP/trunk/skins/waeup_directory/member_view.pt

    r953 r1796  
    77<metal:block use-macro="here/main_template/macros/master">
    88
    9   <metal:block fill-slot="style_slot">
     9  <metal:block fill-slot="head_slot">
    1010    <tal:block define="global actions
    11       python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'view', id)"/>
     11      python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'view', id)"/>   
     12  </metal:block>
     13
     14  <metal:block fill-slot="style_slot"> 
    1215    <link rel="Stylesheet" type="text/css" href=""
    1316      tal:attributes="href string:${base_url}document.css" />
     
    1720
    1821  <metal:block fill-slot="main" tal:define="
    19    
    20     res python: dir.renderEntryDetailed(id);
    21     global rendered_main python: res[0];
    22     ds python: res[1];
    23     global title ds/?title_field|id;">
     22                                res python: dir.renderEntryDetailed(id);
     23                                global rendered_main python: res[0];
     24                                ds python: res[1];
     25                                global title ds/?title_field|id;">
    2426   
    2527    <h3>
     
    2729    </h3>
    2830
    29 
     31   
    3032    <div tal:replace="structure rendered_main">Rendered main...</div>
    3133    <input type="submit" name="back" i18n:attributes="value"
  • WAeUP_SRP/trunk/skins/waeup_student/display_session_results.py

    r1794 r1796  
    8181if res:
    8282    student_id = res[0].id
    83     student_obj = getattr(context.portal_url.getPortalObject().campus.students,student_id,None)
     83
     84    #There was one student with empty id in returning_import (BMS0406035)
     85    student_obj = None
     86    if student_id:
     87        student_obj = getattr(context.portal_url.getPortalObject().campus.students,student_id,None)
     88    else:
     89        registered = ' '
     90
    8491    if student_obj and hasattr(student_obj,'application'):
    8592        registered = student_id
Note: See TracChangeset for help on using the changeset viewer.