Ignore:
Timestamp:
19 Feb 2007, 15:13:22 (18 years ago)
Author:
Henrik Bettermann
Message:

further optimizations (in custom)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoFolderInfo.py

    r1439 r1441  
    2222info['choosen_ids'] = request.get('ids',[])
    2323items = []
     24is_editable = mtool.checkPermission('Modify portal content', context)
     25is_editable = False
    2426halls = context.portal_catalog(portal_type='AccoHall')
    2527for f in halls:
    2628    row = {}
    27     fo = f.getObject()
    28     row['id'] = fo.getId()
    29     row['title'] = fo.Title()
    30     row['url'] = fo.absolute_url()
    31     row['is_editable'] = mtool.checkPermission('Modify portal content', fo)
     29    row['id'] = f.id
     30    row['title'] = f.Title
     31    row['url'] = f.relative_path
     32    #fo = f.getObject()
     33    #row['is_editable'] = mtool.checkPermission('Modify portal content', fo)
     34    row['is_editable'] = is_editable
    3235    items.append(row)
    3336info['items'] = items
Note: See TracChangeset for help on using the changeset viewer.