Changeset 3619 for WAeUP_SRP/base/skins


Ignore:
Timestamp:
8 Aug 2008, 06:39:00 (16 years ago)
Author:
Henrik Bettermann
Message:

change permissions

Location:
WAeUP_SRP/base/skins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_default/waeup_document_view.pt

    r3492 r3619  
    33              tal:define="info context/getDocumentInfo;
    44              s_name context/getStudentNameInContext;
    5               is_so info/is_sectionofficer;"
    6               >
     5              ">
    76    <span tal:condition="not: info">
    87      <span tal:content="here/illegal_view" />
    98    </span>
    10     <span tal:condition="not:info/is_anonymous" tal:omit-tag="">
    11       <span tal:define="breadcrumbs context/getBreadCrumbs|nothing">
    12         <a tal:condition="not: breadcrumbs" href=""
    13            tal:attributes="href string:${here/aq_parent/absolute_url}">
    14           <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
    15           Up one level
    16         </a>
    17         <div tal:condition="breadcrumbs">
    18           <span tal:repeat="crumb breadcrumbs"><a href="crumb"
    19                                                   tal:attributes="href crumb/url"
    20                                                   tal:content="crumb/title"></a>
    21             <span tal:condition="not: repeat/crumb/end">&gt;</span>
    22           </span>
    23         </div>
     9    <span tal:condition="info" tal:omit-tag="">
     10      <span tal:condition="not:info/is_anonymous" tal:omit-tag="">
     11        <span tal:define="breadcrumbs context/getBreadCrumbs|nothing">
     12          <a tal:condition="not: breadcrumbs" href=""
     13             tal:attributes="href string:${here/aq_parent/absolute_url}">
     14            <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
     15            Up one level
     16          </a>
     17          <div tal:condition="breadcrumbs">
     18            <span tal:repeat="crumb breadcrumbs"><a href="crumb"
     19                                                    tal:attributes="href crumb/url"
     20                                                    tal:content="crumb/title"></a>
     21              <span tal:condition="not: repeat/crumb/end">&gt;</span>
     22            </span>
     23          </div>
     24        </span>     
    2425      </span>     
     26      <h3 tal:define="is_so info/is_sectionofficer;">
     27        <span tal:condition="python:is_so and s_name">
     28          <span tal:content="s_name" />:
     29        </span>
     30        <span tal:content="info/title" />
     31      </h3>
     32      <br />
     33      <span tal:omit-tag="" 
     34            tal:content="structure python: info['doc'].render(layout_mode='view')" />
    2535    </span>     
    26     <h3>
    27       <span tal:condition="python:is_so and s_name">
    28         <span tal:content="s_name" />:
    29       </span>
    30       <span tal:content="info/title" />
    31     </h3>
    32     <br />
    33     <span tal:omit-tag="" 
    34           tal:content="structure python: info['doc'].render(layout_mode='view')" />
    3536  </metal:main>
    3637  <metal:sub fill-slot="sub"/>
  • WAeUP_SRP/base/skins/waeup_student/getClearanceInfo.py

    r3455 r3619  
    6262info['review_state'] = student_record.review_state
    6363info['app'] = student.application
    64 info['app_doc'] = student.application.getContent()
     64try:
     65    info['app_doc'] = student.application.getContent()
     66except:
     67    return
    6568info['clear'] = student.clearance
    66 info['clear_doc'] = student.clearance.getContent()
     69try:
     70    info['clear_doc'] = student.clearance.getContent()
     71except:
     72    return   
    6773info['clear_review_state'] = wf.getInfoFor(student.clearance,'review_state',None)
    6874info['per'] = student.personal
  • WAeUP_SRP/base/skins/waeup_student/getStudyCourseInfo.py

    r3072 r3619  
    4242info['action'] = "%s" % context.absolute_url()
    4343info['choosen_ids'] = request.get('ids',[])
    44 course  = info['doc'] = context.getContent()
     44try:
     45    course  = info['doc'] = context.getContent()
     46except:
     47    return None
    4548#student_id = context.getStudentId()
    4649student_record = context.students_catalog.getRecordByKey(student_id)
Note: See TracChangeset for help on using the changeset viewer.