Back to index

plone3  3.1.7
Variables
createMultiColumnList Namespace Reference

Variables

tuple list_len = len(input_list)
 Script (Python) "createMultiColumnList" bind container=container bind context=context bind namespace= bind script=script bind subpath=traverse_subpath parameters=input_list,numCols=3, sort_on=None title=Turn a single list into a list of lists for multi column display.
tuple get_sort_attr
list dec_list = [(get_sort_attr(l), l) for l in input_list]
list input_list = [l[1] for l in dec_list]
tuple sublist_len
tuple list_end
list final_lists = [input_list[i*sublist_len:list_end(i)] for i in range(numCols)]

Variable Documentation

Definition at line 24 of file createMultiColumnList.py.

list createMultiColumnList.final_lists = [input_list[i*sublist_len:list_end(i)] for i in range(numCols)]

Definition at line 39 of file createMultiColumnList.py.

Initial value:
00001 lambdax:(callable(getattr(x, sort_on, None)) and
00002                            getattr(x, sort_on)() or getattr(x, sort_on, None))

Definition at line 21 of file createMultiColumnList.py.

Definition at line 26 of file createMultiColumnList.py.

Initial value:
00001 lambdalist_num:(list_num == numCols - 1 and list_len or
00002                              (list_num+1)*sublist_len)

Definition at line 35 of file createMultiColumnList.py.

Script (Python) "createMultiColumnList" bind container=container bind context=context bind namespace= bind script=script bind subpath=traverse_subpath parameters=input_list,numCols=3, sort_on=None title=Turn a single list into a list of lists for multi column display.

Definition at line 17 of file createMultiColumnList.py.

Initial value:
00001 (list_len % numCols == 0 and list_len / numCols or
00002                                                     list_len / numCols + 1)

Definition at line 31 of file createMultiColumnList.py.