Changeset 1441


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

further optimizations (in custom)

Location:
WAeUP_SRP/trunk/skins/waeup_accommodation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_accommodation/acco_folder_view.pt

    r1438 r1441  
    4848                     />
    4949            </td>
    50             <td><a href="view" tal:attributes="href string:${row/url}">
     50            <td><a href="view" tal:attributes="href string:/${row/url}">
    5151              <strong tal:content="row/title" /></a> </td>
    5252            <td tal:content="row/id"> </td>
     
    5454            <td>
    5555            <a tal:condition="row/is_editable"
    56                 href="edit" tal:attributes="href string:${row/url}/external_edit_form"
     56                href="edit" tal:attributes="href string:/${row/url}/external_edit_form"
    5757                target="edit"
    5858                onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
  • 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.