Back to index

plone3  3.1.7
Functions | Variables
sortObjects Namespace Reference

Functions

def get_sortable
 Script (Python) "sortObject" bind container=container bind context=context bind namespace= bind script=script bind subpath=traverse_subpath parameters=contents, method='title_or_id' title=sorts and pre-filters objects.

Variables

list aux = [(get_sortable(o), o) for o in contents]

Function Documentation

Script (Python) "sortObject" bind container=container bind context=context bind namespace= bind script=script bind subpath=traverse_subpath parameters=contents, method='title_or_id' title=sorts and pre-filters objects.

Definition at line 10 of file sortObjects.py.

00010 
00011 def get_sortable(o):
00012     val = getattr(o, method)()
00013     try:
00014         val = val.lower()
00015     except AttributeError:
00016         pass
00017     return val


Variable Documentation

list sortObjects.aux = [(get_sortable(o), o) for o in contents]

Definition at line 18 of file sortObjects.py.