--- trunk/ChangeLog 2007/08/07 15:29:45 8 +++ trunk/ChangeLog 2007/08/12 16:14:56 35 @@ -1,3 +1,238 @@ +2007-08-12 Sascha L. Teichmann + + * tools/formed/formed/model/nodecomponents.py: Added a method to append + a second document to the current. + + * tools/formed/formed/main.py: Added an 'Import' file menu item to load + a second document to be appended to the current. + +2007-08-12 Sascha L. Teichmann + + * tools/formed/formed/main.py: Added a 'New' item in file menu which creates + a new document when triggered. + +2007-08-12 Sascha L. Teichmann + + * tools/formed/formed/model/nodecomponents.py: Added walk generator over all + items in the document tree. Added a method to eliminated duplicated names + in document tree. + + * tools/formed/formed/model/misc.py: Added update mechanism for id generator + after names collisions are eliminated. + + * tools/formed/formed/main.py: Added an 'Extra' menu with item + 'Make names unique'. + +2007-08-11 Sascha L. Teichmann + + * tools/formed/formed/model/data.py, + tools/formed/formed/plugins/web/renderer.py: Removed support + for 'text' attributes in bool items. They were never really + used and the 'description' attributes fulfill the same + purpose. + + * contrib/remove-bool-text.xsl: Transform to remove the + 'text' attributes from bool items. Apply with: + 'xsltproc contrib/remove-bool-text.xsl old.xml > new.xml' + + * tools/formed/test-data/simple.xml: Removed 'text' attributes + from bool items. + +2007-08-11 Sascha L. Teichmann + + * contrib/convert-choices.xsl: Simpified. + +2007-08-11 Sascha L. Teichmann + + * tools/formed/formed/model/data.py: Removed 'options' attribute + from ChoiceLeaf. Use 'value' instead, please! + + * tools/formed/formed/plugins/web/renderer.py: use 'value' attribute + instead of 'options' to render choices. + + * contrib/convert-choices.xsl: Added to convert document files + which use the choice 'option' attribute to usage of 'value'. + Apply with e.g. 'xsltproc convert-choices.xsl old.xml > new.xml' + +2007-08-10 Sascha L. Teichmann + + * tools/formed/formed/plugins/web/renderer.py: radio buttons + are selected by 'checked' and not by 'selected'. Fixed. + +2007-08-10 Sascha L. Teichmann + + * tools/formed/formed/model/data.py: ChoiceLeafs are now + initialized with size = 1. + +2007-08-10 Sascha L. Teichmann + + * tools/formed/formed/model/data.py: TextLeafs are now + initialized with size = 40, maxlength = 60 + +2007-08-10 Sascha L. Teichmann + + * tools/formed/formed/plugins/web/renderer.py: Fixed: choices + are renderered with description now. + +2007-08-10 Sascha L. Teichmann + + * tools/formed/formed/plugins/web/renderer.py: Added rendering + for date items. Added missing ids for texts and textareas. + +2007-08-10 Sascha L. Teichmann + + * tools/formed/formed/config.py: Evaluate the environment + variable 'FORMED'. Snytax: FORMED='key1:value1;key2:value2' + + * tools/formed/formed/plugins/plugin.py: Give a reference + to the config at setup time. + + * tools/formed/formed/plugins/web/plugin.py: To determine + the port look at FORMED dictionary first. Key is 'web.port'. + e.g. FORMED='web.port:8888' + + * tools/formed/formed/main.py: Call the plugin setup with + the reference to the config. + +2007-08-10 Sascha L. Teichmann + + * tools/formed/test-data/simple.xml: removed 'text' attributes from + info tags. Use the 'value' attributes for same purpose now, please! + + * tools/formed/formed/model/data.py: removed text attributes from + InfoLeaf. + + * tools/formed/formed/plugins/web/renderer.py: Rendering of info + now uses the 'value' instead of the 'text' attributes. + +2007-08-09 Sascha L. Teichmann + + * tools/formed/formed/model/data.py: next/prevPage() are + methods of PageNode now. + + * tools/formed/formed/model/nodecomponents.py: findByClassAndName() + is method of Document now. + + * tools/formed/formed/plugins/web/plugin.py: Factored out + the HTML renderer. + + * tools/formed/formed/plugins/web/renderer.py: New: contains + the HTML renderer now. + + * tools/formed/test-data/simple.xml: Fixed typo + +2007-08-09 Sascha L. Teichmann + + * tools/formed/formed/plugins/web/plugin.py: Fixed a bug + in calculation of width of bounded int fields. + +2007-08-09 Sascha L. Teichmann + + * tools/formed/test-data/simple.xml: Make demo Int fancier. + + * tools/formed/formed/model/data.py: Added attributes to IntLeaf + + * tools/formed/formed/plugins/web/plugin.py: Added rendering for + Ints + +2007-08-09 Sascha L. Teichmann + + * tools/formed/test-data/simple.xml: Added demo textarea + + * tools/formed/formed/model/data.py: Added TextAreaLeaf + + * tools/formed/formed/io/document.py: register builder + for loading of textareas + + * tools/formed/formed/plugins/web/plugin.py: Added rendering + for textareas. + +2007-08-09 Sascha L. Teichmann + + * tools/formed/test-data/simple.xml: Make demo choice fancier. + + * tools/formed/formed/model/data.py: Added attributes for texts + + * tools/formed/formed/plugins/web/plugin.py: Added rendering + for texts + +2007-08-09 Sascha L. Teichmann + + * tools/formed/test-data/simple.xml: Make demo choice fancier. + + * tools/formed/formed/model/data.py: Added attributes for choices. + + * tools/formed/formed/plugins/web/plugin.py: Added rendering + for choices + +2007-08-09 Sascha L. Teichmann + + * tools/formed/formed/model/data.py, + tools/formed/formed/model/nodecomponents.py: Added new + attributes. + + * tools/formed/formed/plugins/web/plugin.py: Added rendering + for checkboxes and radio buttons. + +2007-08-08 Sascha L. Teichmann + + * tools/formed/test-data/simple.xml: Added some descriptions + + * tools/formed/formed/model/data.py: set attributes in constructors + directly. + + * tools/formed/formed/model/nodecomponents.py: Added description + attribute in the NodeComponent base class. + + * tools/formed/formed/plugins/web/plugin.py: Render description + as legend in fieldset for GroupNodes. + +2007-08-08 Sascha L. Teichmann + + * tools/formed/formed/plugins/web/plugin.py: make UTF-8 + output work. + +2007-08-08 Sascha L. Teichmann + + * tools/formed/formed/model/data.py: Added get/setText() method + + * tools/formed/formed/plugins/web/plugin.py: Added a first + version of a recursive HTML renderer based on the document + tree. + +2007-08-08 Sascha L. Teichmann + + * tools/formed/formed/plugins/*: New: plug-in infrastructure. + + * tools/formed/formed/plugins/web/*: new: A simple web server + which is intended to serve pages of the current formular. + + * tools/formed/formed/main.py: start the plug-ins + + * tools/formed/formed/config.py: configuration class. Used + for the plug-ins. + +2007-08-08 Sascha L. Teichmann + + * tools/formed/formed/model/nodecomponents.py: Fixed broadcasting + issue with zero length tree paths. + + * tools/formed/formed/model/misc.py: New: contains a class + for generating unique ids. + + * tools/formed/formed/main.py: Added an instance of an + unique id generator for naming of new made tree items. + +2007-08-07 Sascha L. Teichmann + + * tools/formed/formed/main.py: Added event route document -> + attribute table to get informed when selected item is delete + or an attribute is changed from the outside. + + * tools/formed/formed/ui/controls.py: Fixed. In older versions of + wxPython 2.6.x ListCtrl.InsertStringItem takes 2 instead + of 3 argument. Uses icons+tooltips for tree navigation now. + 2007-08-07 Sascha L. Teichmann * tools/formed/formed/model/nodecomponents.py: Set name