Changeset 867


Ignore:
Timestamp:
14 Nov 2006, 16:15:38 (18 years ago)
Author:
joachim
Message:

patch for default field width in stringWidgets
isClearanceOfficer added

Location:
WAeUP_SRP/trunk
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/__init__.py

    r828 r867  
    1414import PatchCatalogToolXMLAdapter
    1515import PatchCPSSchemasAttributeStorageAdapter
     16import PatchBasicWidgetsCPSStringWidget
    1617# Only for CPS 3.4.1. In 3.4.2 and later this should be fixed.
    1718import PatchCPSDefaultImportExport
  • WAeUP_SRP/trunk/profiles/default/rolemap.xml

    r861 r867  
    33  <roles>
    44    <role name="Staff"/>
    5     <role name="ClearanceManager"/>
     5    <role name="ClearanceOfficer"/>
    66    <role name="Student"/>
    77    <role name="SectionReader"/>
  • WAeUP_SRP/trunk/skins/waeup_custom/getCPSCandidateLocalRoles.py

    r861 r867  
    1818mtool = getToolByName(context, 'portal_membership')
    1919#return mtool.getCPSCandidateLocalRoles(context)
    20 return ['SectionReader','SectionManager','ClearanceManager']
     20return ['SectionReader','SectionManager','ClearanceOfficer']
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_edit_buttons.pt

    • Property Id set to skins/waeup_default/waeup_edit_form.pt
    • Property svn:keywords set to Id
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_edit_form.pt

    • Property svn:keywords set to Id
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r849 r867  
    5353info['per_doc'] = student.personal.getContent()
    5454course = getattr(student,'study_course',None)
     55#
    5556info['course'] = course
    5657if course:
     
    5960if info['per_doc'].sex:
    6061    info['sex'] = 'female'
    61 ##res = context.portal_catalog(container_path=student_path,
    62 ##                             portal_type='StudentAccommodation')
    63 ##if res:
    64 ##    acco = res[0].getObject()
     62#
    6563acco = getattr(student,'accommodation_2006',None)
    66 #if acco.portal_type != "StudentAccommodation":
    67 #    acco = None
    6864info['acco'] = acco
    6965if acco is not None:
    7066    info['acco_doc'] = acco.getContent()
    7167    info['acco_review_state'] = wf.getInfoFor(acco,'review_state',None)
    72 ##res = context.portal_catalog(container_path=student_path,
    73 ##                             portal_type='StudentClearance')
    74 ##if res:
    75 ##    clear = res[0].getObject()
    76 ##    info['clear'] = clear
     68#
    7769clear = getattr(student,'clearance',None)
    7870info['clear'] = clear
     
    8072    info['clear_doc'] = clear.getContent()
    8173    info['clear_review_state'] = wf.getInfoFor(clear,'review_state',None)
    82 
    83 ##res = context.portal_catalog(container_path=student_path,
    84 ##                             portal_type='StudentPume')
    85 ##if res:
    86 ##    pume = res[0].getObject()
    87 ##    info['pume'] = clear
     74#
    8875pume = getattr(student,'pume',None)
    8976info['pume'] = pume
Note: See TracChangeset for help on using the changeset viewer.