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
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel