Back to index

plone3  3.1.7
Namespaces | Variables File Reference

Go to the source code of this file.


namespace  createMultiColumnList


tuple createMultiColumnList.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 createMultiColumnList.get_sort_attr
list createMultiColumnList.dec_list = [(get_sort_attr(l), l) for l in input_list]
list createMultiColumnList.input_list = [l[1] for l in dec_list]
tuple createMultiColumnList.sublist_len
tuple createMultiColumnList.list_end
list createMultiColumnList.final_lists = [input_list[i*sublist_len:list_end(i)] for i in range(numCols)]