Changeset 3473 for WAeUP_SRP/base/skins/waeup_academics
- Timestamp:
- 29 Apr 2008, 09:24:51 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_academics
- Files:
-
- 4 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_academics/academics_view.pt
r1783 r3473 1 <metal:html tal:define="info context/getF acultiesInfo;2 is_so context/isSectionOfficer;"1 <metal:html tal:define="info context/getFolderObjectsInfo; 2 is_so info/is_sectionofficer;" 3 3 > 4 4 <metal:body use-macro="here/main_template/macros/master"> -
WAeUP_SRP/base/skins/waeup_academics/courses_view.pt
r1783 r3473 10 10 Up one level 11 11 </a> 12 <h3 tal:content="here/title_or_id"> 13 Page Title 14 </h3> 12 <h3 tal:content="here/aq_parent/LongTitle|here/aq_parent/title_or_id" /> 13 <h4 tal:content="here/title_or_id" /> 15 14 <div tal:condition="python:0" tal:content="info/container_path"/> 16 15 <div tal:condition="python:0" tal:content="info/dep_id"/> -
WAeUP_SRP/base/skins/waeup_academics/department_view.pt
r1783 r3473 9 9 Up one level 10 10 </a> 11 <h3 tal:content="here/title_or_id" /> 12 <div tal:condition="nothing" tal:content="info/container_path"/> 11 <h3 tal:content="info/doc/LongTitle|here/title_or_id" /> 13 12 <br /> 14 13 </metal:block> -
WAeUP_SRP/base/skins/waeup_academics/faculty_view.pt
r1783 r3473 1 <metal:html tal:define="info context/get DepartmentsInfo;2 is_so context/isSectionOfficer;"1 <metal:html tal:define="info context/getFolderObjectsInfo; 2 is_so info/is_sectionofficer;" 3 3 > 4 4 <metal:body use-macro="here/main_template/macros/master"> … … 9 9 Up one level 10 10 </a> 11 <h3 tal:content="here/title_or_id" /> 12 <div tal:condition="python:0" tal:content="info/container_path"/> 11 <h3 tal:content="info/doc/LongTitle|here/title_or_id" /> 13 12 <br /> 14 13 </metal:block> -
WAeUP_SRP/base/skins/waeup_academics/getCoursesCertificatesInfo.py
r2273 r3473 10 10 # $Id$ 11 11 """ 12 return Info about the Faculties12 return Info about a Department 13 13 """ 14 14 request = context.REQUEST … … 17 17 path_info = request.get('PATH_INFO').split('/') 18 18 19 info = {} 19 #info = context.waeup_tool.getAccessInfo(context) 20 info = context.certificates.getFolderObjectsInfo() 20 21 info['action'] = "%s/faculty_view" % context.absolute_url() 21 22 info['choosen_ids'] = request.get('ids',[]) 22 23 info['doc'] = context.getContent() 23 brain = context.portal_catalog(meta_type="Department", id = context.getId())[-1] 24 cp = brain.getPath() 25 info['container_path'] = cp 26 #res = context.portal_catalog(container_path="%s/courses" % cp) 27 #items = [] 28 #for r in res: 29 # row = {} 30 # ro = r.getObject() 31 # rd = ro.getContent() 32 # row['id'] = r.getId 33 # row['title'] = rd.Title() 34 # row['url'] = ro.absolute_url() 35 # items.append(row) 36 #info['courses'] = items 37 res = context.portal_catalog(container_path="%s/certificates" % cp) 38 items = [] 39 for r in res: 40 row = {} 41 try: 42 ro = r.getObject() 43 rd = ro.getContent() 44 row['id'] = r.getId 45 row['title'] = rd.Title() 46 row['url'] = ro.absolute_url() 47 items.append(row) 48 except AttributeError: 49 continue 50 info['certificates'] = items 24 info['certificates'] = info['items'] 51 25 return info 52 26 -
WAeUP_SRP/base/skins/waeup_academics/getLevelInfo.py
r2614 r3473 10 10 # $Id$ 11 11 """ 12 return Info about the Faculties12 return Info about the Level 13 13 """ 14 try: 15 from Products.zdb import set_trace 16 except: 17 def set_trace(): 18 pass 14 19 request = context.REQUEST 15 20 … … 39 44 second = [] 40 45 combined = [] 46 set_trace() 41 47 for course_id,course in context.objectItems(): 42 48 row = {}
Note: See TracChangeset for help on using the changeset viewer.