Work in progress. Multi selection is working (using shift+click) but I've made a mistake somewhere because the default shift key behaviour is not working anymore.
This commit is contained in:
tonio
2010-11-27 10:02:08 +01:00
parent bd32445e3e
commit 50af9c4355
4 changed files with 50 additions and 3 deletions
+3 -1
View File
@@ -54,8 +54,9 @@ class Table(object):
except AttributeError:
self.columns += [m[1]]
self.rows = []
trcpt = 0
for row in rows:
nrow = {"id" : row[self.idkey], "cols" : []}
nrow = {"id" : row[self.idkey], "cols" : [], "trcpt" : trcpt}
for c in self.columns:
newcol = {"name" : c.name}
for key in ["width", "align", "cssclass"]:
@@ -82,6 +83,7 @@ class Table(object):
newcol["value"] = row[c.name]
nrow["cols"] += [newcol]
self.rows += [nrow]
trcpt += 1
def render(self, request):
if len(self.rows):