Changeset 3473 for WAeUP_SRP/base/skins/waeup_default
- Timestamp:
- 29 Apr 2008, 09:24:51 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_default
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_default/getDocumentInfo.py
r2013 r3473 10 10 # $Id:getDocumentInfo.py 486 2006-09-06 10:09:39Z joachim $ 11 11 """ 12 return Info about the Faculties12 return Info about a document 13 13 """ 14 try: 15 from Products.zdb import set_trace 16 except: 17 def set_trace(): 18 pass 19 14 20 request = context.REQUEST 15 21 16 wf = context.portal_workflow17 path_info = request.get('PATH_INFO').split('/')22 #wf = context.portal_workflow 23 #path_info = request.get('PATH_INFO').split('/') 18 24 19 mtool = context.portal_membership 20 if mtool.isAnonymousUser(): 25 # mtool = context.portal_membership 26 # if mtool.isAnonymousUser(): 27 # return None 28 29 info = context.waeup_tool.getAccessInfo(context) 30 #set_trace() 31 32 student_id = info['student_id'] 33 if not info['is_staff'] and student_id is None: 21 34 return None 22 35 23 info = {} 36 titles = context.getStudentObjectTitles() 37 info['title'] = titles.get(context.portal_type,'') or context.title_or_id 24 38 try: 25 39 info['doc'] = context.getContent() -
WAeUP_SRP/base/skins/waeup_default/waeup_document_view.pt
r3294 r3473 3 3 tal:define="info context/getDocumentInfo; 4 4 s_name context/getStudentNameInContext; 5 is_so context/isSectionOfficer;">5 is_so info/is_sectionofficer;"> 6 6 7 7 <span tal:condition="not: info"> … … 10 10 <span tal:condition="info"> 11 11 12 <a href="" tal:attributes="href string:${here/a cademicsParent}">12 <a href="" tal:attributes="href string:${here/aq_parent/absolute_url}"> 13 13 <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/> 14 14 Up one level 15 15 </a> 16 16 17 <h3 tal:condition="here/title_or_id">17 <h3> 18 18 <span tal:condition="python:is_so and s_name"> 19 19 <span tal:content="s_name" />: 20 20 </span> 21 <span tal:content=" here/title_or_id" />21 <span tal:content="info/title" /> 22 22 </h3> 23 23
Note: See TracChangeset for help on using the changeset viewer.