Ignore:
Timestamp:
29 Apr 2008, 09:24:51 (17 years ago)
Author:
joachim
Message:

remove Title from all StudentObjects?,
adjust templates to use getStudentObjectitles,
remove waeup_academics.getDocumentInfo (was duplicate),
do not use portal_catalog for listing faculties and departments.

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/getFacultiesInfo;
    2             is_so context/isSectionOfficer;"
     1<metal:html tal:define="info context/getFolderObjectsInfo;
     2            is_so info/is_sectionofficer;"
    33            >
    44  <metal:body use-macro="here/main_template/macros/master">
  • WAeUP_SRP/base/skins/waeup_academics/courses_view.pt

    r1783 r3473  
    1010        Up one level
    1111      </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" />
    1514      <div tal:condition="python:0" tal:content="info/container_path"/>
    1615      <div tal:condition="python:0" tal:content="info/dep_id"/>
  • WAeUP_SRP/base/skins/waeup_academics/department_view.pt

    r1783 r3473  
    99        Up one level
    1010      </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" />
    1312      <br />
    1413    </metal:block>
  • WAeUP_SRP/base/skins/waeup_academics/faculty_view.pt

    r1783 r3473  
    1 <metal:html tal:define="info context/getDepartmentsInfo;
    2             is_so context/isSectionOfficer;"
     1<metal:html tal:define="info context/getFolderObjectsInfo;
     2            is_so info/is_sectionofficer;"
    33            >
    44  <metal:body use-macro="here/main_template/macros/master">
     
    99        Up one level
    1010      </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" />
    1312      <br />
    1413    </metal:block>
  • WAeUP_SRP/base/skins/waeup_academics/getCoursesCertificatesInfo.py

    r2273 r3473  
    1010# $Id$
    1111"""
    12 return Info about the Faculties
     12return Info about a Department
    1313"""
    1414request = context.REQUEST
     
    1717path_info = request.get('PATH_INFO').split('/')
    1818
    19 info = {}
     19#info = context.waeup_tool.getAccessInfo(context)
     20info = context.certificates.getFolderObjectsInfo()
    2021info['action'] = "%s/faculty_view" % context.absolute_url()
    2122info['choosen_ids'] = request.get('ids',[])
    2223info['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
     24info['certificates'] = info['items']
    5125return info
    5226
  • WAeUP_SRP/base/skins/waeup_academics/getLevelInfo.py

    r2614 r3473  
    1010# $Id$
    1111"""
    12 return Info about the Faculties
     12return Info about the Level
    1313"""
     14try:
     15    from Products.zdb import set_trace
     16except:
     17    def set_trace():
     18        pass
    1419request = context.REQUEST
    1520
     
    3944second = []
    4045combined = []
     46set_trace()
    4147for course_id,course in context.objectItems():
    4248    row = {}
Note: See TracChangeset for help on using the changeset viewer.