Ignore:
Timestamp:
16 Nov 2005, 23:30:12 (19 years ago)
Author:
joachim
Message:

=eligibility edit geht fast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_faculty/get_departments_voc.py

    r173 r182  
    55
    66"""
    7 academics = context.sections.portal.academics
     7#academics = context.sections.portal.academics
     8academics = context.portal_catalog(id = 'academics')[0].getObject()
    89faculties = [f for f in context.filterContents(items=academics.contentValues()) if f.portal_type == 'Faculty']
    910
     
    1213    departments = [d for d in context.filterContents(items=faculty.contentValues()) if d.portal_type == 'Department']
    1314    deplist.extend(departments)
    14 if key is None:
     15if not key:
    1516    return [(d.getId(),d.title_or_id(),) for d in deplist]
    1617return [d.title_or_id() for d in deplist if d.getId() == key][0]
Note: See TracChangeset for help on using the changeset viewer.