[CPS-devel] filterContents-signature

Joachim Schmitz js at aixtraware.de
Thu Jun 29 20:09:12 CEST 2006


I read in CPSDefault.utils, that the signature for filterContents is:
def filterContents(context, items, sort_on=None, sort_order=None,
                    filter_ptypes=None, hide_folder=False):

when I call this in a pagetemplate like this:
items python:context.filterContents(context.contentValues(),sort_on='id')
i get

TypeError: filterContents() got an unexpected keyword argument 'sort_on'

???

-- 
Mit freundlichen Grüßen                                Joachim Schmitz
......................................................................
AixtraWare eK ..Joachim Schmitz ..www.aixtraware.de ..t: +49-2464-8851
Hüsgenstr. 33a .....d-52457 Aldenhoven .............f: +49-2464-905163




More information about the cps-devel mailing list

This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.