Ignore:
Timestamp:
5 Jul 2007, 11:14:12 (17 years ago)
Author:
joachim
Message:

merged r1979:r1987 from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_academics/getCertificatesInfo.py

    r913 r1988  
    1212return Info about the Faculties
    1313"""
     14try:
     15    from Products.zdb import set_trace
     16except:
     17    def set_trace():
     18        pass
    1419request = context.REQUEST
    1520
     
    1924
    2025info = {}
    21 #dep_id = request.get('PATH_TRANSLATED').split('/')[-2]
    22 dep_id = context.aq_parent.getId()
     26dep_id = path_info[-2]
     27#set_trace()
    2328info['action'] = "%s" % context.absolute_url()
    2429info['choosen_ids'] = request.get('ids',[])
    2530info['doc'] = context.getContent()
    26 res = context.portal_catalog(meta_type="Department",id = dep_id)
     31#res = context.portal_catalog(meta_type="Department",id = dep_id)
    2732info['courses'] = []
    28 if not res:
    29     return info
    30 brain = res[-1]
    31 cp = brain.getPath()
     33# if not res:
     34#     return info
     35# brain = res[-1]
     36# cp = brain.getPath()
     37cp = '/'.join(path_info[:-2])
    3238info['container_path'] = cp
    3339info['dep_id'] = dep_id
Note: See TracChangeset for help on using the changeset viewer.