Changeset 3473 for WAeUP_SRP/base/skins/waeup_default/getDocumentInfo.py
- Timestamp:
- 29 Apr 2008, 09:24:51 (16 years ago)
- File:
-
- 1 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()
Note: See TracChangeset for help on using the changeset viewer.