def do_render_group group pass def render_groups self res last None fo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
def do_render_group(group):
pass
def render_groups(self):
res = []
last = None
for obj in lst:
if obj.grp != last:
do_render_group(res)
res = []
res.append(obj)
last = obj.grp
if res:
do_render_group()