Ignore:
Timestamp:
29 Aug 2006, 11:56:53 (18 years ago)
Author:
joachim
Message:

levels can be created
keyerror elective fixed
check for blanks in Id's checked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/getContentInfo.py

    r430 r440  
    187187info['url'] = utool.getUrlFromRpath(info['rpath'])
    188188
    189 info['title_or_id'] = proxy.title_or_id()
     189info['title_or_id'] = proxy.id
    190190info['id'] = proxy.getId()
    191191try:
     
    193193except AttributeError:
    194194    raise AttributeError, 'invalid object: %s in %s' % (info['title_or_id'],
    195                                                         info['rpath'])
     195                                                             info['rpath'])
     196except TypeError:
     197    info['title'] = proxy.getContent().id
     198
    196199info['icon'] = proxy.getIcon(relative_to_portal=1)
    197200info['type'] = proxy.getPortalTypeName()
     
    227230        core = 'core'
    228231        if not doc.core_or_elective:
    229             core = elective
     232            core = 'elective'
    230233        info['core_or_elective'] = core
    231234    info['time'] = doc.modified()
Note: See TracChangeset for help on using the changeset viewer.