Changeset 3482 for WAeUP_SRP


Ignore:
Timestamp:
1 May 2008, 05:54:53 (17 years ago)
Author:
Henrik Bettermann
Message:

don't search portal_catalog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_academics/getCoursesInfo.py

    r2633 r3482  
    1818        return 1
    1919    return -1
    20    
     20
    2121
    2222
     
    3333info['choosen_ids'] = request.get('ids',[])
    3434info['doc'] = context.getContent()
    35 res = context.portal_catalog(meta_type="Department",id = dep_id)
    36 info['courses'] = []
    37 if not res:
    38     return info
    39 brain = res[-1]
    40 cp = brain.getPath()
    41 info['container_path'] = cp
     35#res = context.portal_catalog(meta_type="Department",id = dep_id)
     36#info['courses'] = []
     37#if not res:
     38#    return info
     39#brain = res[-1]
     40#cp = brain.getPath()
     41#info['container_path'] = cp
    4242info['dep_id'] = dep_id
    4343
Note: See TracChangeset for help on using the changeset viewer.