core.render.html.wrap

Module Contents

Classes

ListWrapper

Monkey-Patching for lists.

SkelListWrapper

Like ListWrapper, but takes the additional properties

class core.render.html.wrap.ListWrapper(src)

Bases: list

Monkey-Patching for lists. Allows collecting sub-properties by using [] Example: [ {“key”:”1”}, {“key”:”2”} ][“key”] –> [“1”,”2”]

__getitem__(self, key)

x.__getitem__(y) <==> x[y]

__contains__(self, item)

Return key in self.

class core.render.html.wrap.SkelListWrapper(src, origQuery=None)

Bases: core.render.html.wrap.ListWrapper

Like ListWrapper, but takes the additional properties of skellist into account - namely cursor and customQueryInfo.