[jToolkit-cvs] jToolkit/widgets grid.py,1.8,1.9
Brought to you by:
davidfraser,
friedelwolff
From: <dav...@us...> - 2004-02-09 14:44:38
|
Update of /cvsroot/jtoolkit/jToolkit/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19424 Modified Files: grid.py Log Message: Changes made to jToolkit for functionality jBrowser needs Index: grid.py =================================================================== RCS file: /cvsroot/jtoolkit/jToolkit/widgets/grid.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** grid.py 9 Feb 2004 14:34:54 -0000 1.8 --- grid.py 9 Feb 2004 14:41:25 -0000 1.9 *************** *** 172,177 **** class SimpleGridCategory(GridCategory): """a GridCategory that handles coloring...""" ! def __init__(self, name, title, tooltip, colnum, colordict, isheading, display): ! GridCategory.__init__(self, name, title, display=display, storageformat='TEXT', displayformat='', col=colnum, pctwidth=10, mergecells=0, mainarea=1) self.tooltip = tooltip --- 172,181 ---- class SimpleGridCategory(GridCategory): """a GridCategory that handles coloring...""" ! def __init__(self, name, title, tooltip, colnum, colordict, isheading, display, storageformat='TEXT'): ! if storageformat == 'DATETIME': ! displayformat = '%y-%m-%d %H:%M:%S' ! else: ! displayformat = '' ! GridCategory.__init__(self, name, title, display=display, storageformat=storageformat, displayformat=displayformat, col=colnum, pctwidth=10, mergecells=0, mainarea=1) self.tooltip = tooltip *************** *** 204,207 **** --- 208,212 ---- """simply returns a widget for this category""" obj = row[self.name] + obj = self.valuetostring(obj) if obj is None: text = '' *************** *** 253,257 **** isheading = name in self.headingcolumns display = name not in self.hidecolumns ! column = SimpleGridCategory(name, title, tooltip, colnum, colordict, isheading, display) columns.append(column) columndict[name] = column --- 258,263 ---- isheading = name in self.headingcolumns display = name not in self.hidecolumns ! storageformat = self.gridtable.columntypes.get(name, 'TEXT').upper() ! column = SimpleGridCategory(name, title, tooltip, colnum, colordict, isheading, display, storageformat) columns.append(column) columndict[name] = column |