[PythonReports-checkins] PythonReports/PythonReports design.py, 1.12, 1.13
Brought to you by:
a1s
From: alexander s. <a1...@us...> - 2006-12-06 18:38:18
|
Update of /cvsroot/pythonreports/PythonReports/PythonReports In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7177 Modified Files: design.py Log Message: fix: box attributes not updated Index: design.py =================================================================== RCS file: /cvsroot/pythonreports/PythonReports/PythonReports/design.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** design.py 6 Dec 2006 16:35:20 -0000 1.12 --- design.py 6 Dec 2006 18:24:52 -0000 1.13 *************** *** 5,8 **** --- 5,9 ---- """PythonReports Template Designer""" """History (most recent first): + 06-dec-2006 [als] fix: box attributes not updated 05-dec-2006 [als] fix errors and some warnings reported by pylint 07-Nov-2006 [phd] Added shebang. *************** *** 723,726 **** --- 724,728 ---- """ _element = self.element + _box = _element.find("box") for _prop in self.properties: _val = _prop.var.get() *************** *** 731,735 **** raise AttributeConversionError(_prop.name, _val, _err, element=_element, path=self.path) ! _element.set(_prop.name, _val) if recursive: for _child in self: --- 733,740 ---- raise AttributeConversionError(_prop.name, _val, _err, element=_element, path=self.path) ! if (_box is not None) and (_prop.name in Box.__slots__): ! _box.set(_prop.name, _val) ! else: ! _element.set(_prop.name, _val) if recursive: for _child in self: |