Changeset 1219 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
7 Jan 2007, 08:29:13 (18 years ago)
Author:
Henrik Bettermann
Message:

waeup_default/waeup_document_view slimmed down and fixed

Location:
WAeUP_SRP/trunk/skins
Files:
1 added
2 edited

Legend:

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

    r1162 r1219  
    1 <metal:html tal:define="info context/getDocumentInfo;
    2                         s_name context/getStudentName;
    3                         is_so context/isSectionOfficer;"
    4             >
    5   <metal:body use-macro="here/waeup_content_master/macros/master">
    6     <metal:block fill-slot="header">
     1<metal:body use-macro="here/waeup_content_master/macros/master">
     2    <metal:block fill-slot="header"
     3                 tal:define="s_name context/getStudentNameInContext;
     4                             is_so context/isSectionOfficer;">
    75      <a href=""
    86         tal:attributes="href string:${here/academicsParent}">
     
    1715      </h3>
    1816      <br />
    19       </metal:block>
    20       <metal:main fill-slot="main">
    21         <span tal:omit-tag="" 
    22               tal:content="structure python: info['doc'].render(layout_mode='view')" />
    23      
    24       </metal:main>
     17    </metal:block>
     18    <metal:main fill-slot="main"
     19                tal:define="info context/getDocumentInfo">
     20      <span tal:omit-tag="" 
     21            tal:content="structure python: info['doc'].render(layout_mode='view')" />
    2522   
     23    </metal:main>
    2624    <metal:sub fill-slot="sub"/>
    27   </metal:body>
    28 </metal:html>
     25</metal:body>
     26
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentName.py

    r1162 r1219  
    1616if mtool.isAnonymousUser():
    1717    return None
    18 info = {}
    19 #from Products.zdb import set_trace
    20 #set_trace()
    2118if not context.isStudent():
    2219    return None
Note: See TracChangeset for help on using the changeset viewer.