--- trunk/ChangeLog 2007/08/06 19:57:35 6 +++ trunk/ChangeLog 2007/08/14 20:32:51 42 @@ -1,3 +1,345 @@ +2007-08-14 Sascha L. Teichmann + + * tools/formed/formed/model/data.py, + tools/formed/formed/model/nodecomponents.py, + tools/formed/formed/io/document.py: Added a 'switch' node. + + * tools/formed/formed/plugins/web/renderer.py:Render the + new 'switch' node. + + * tools/formed/formed/plugins/web/plugin.py, + tools/formed/formed/config.py: Added a 'web.mode' parameter + to FORMED environment variable. + e.g. 'FORMED=web.mode:modeX' sets the mode 'modeX'. + Defaults to 'default'. + + * tools/formed/test-data/simple.xml: Added test for switch. + +2007-08-14 Sascha L. Teichmann + + * tools/formed/formed/model/nodecomponents.py: Added an + attribute 'formularname' to base class of node components. + +2007-08-13 Sascha L. Teichmann + + * tools/formed/formed/io/document.py, + tools/formed/formed/model/data.py, + tools/formed/formed/model/nodecomponents.py: Added an item + to model external item lists. + + * tools/formed/formed/plugins/web/renderer.py: Render new item + list. + * tools/formed/formed/main.py: Added a forgotten 'self.' + + * contrib/extract-xfa-items.sh: Modified to generate + documents to be loadable from new item lists + +2007-08-13 Sascha L. Teichmann + + * tools/formed/formed/main.py: Fixed typo + +2007-08-13 Sascha L. Teichmann + + * contrib/extract-xfa-items.sh: New. Can be used to extract longer + choice item lists for a given field from XFA files. e.g. with + './contrib/extract-xfa-items.sh Muttersprache alles.xml' + +2007-08-12 Sascha L. Teichmann + + * tools/formed/formed/model/data.py, + tools/formed/formed/plugins/web/renderer.py, + tools/formed/formed/io/document.py: Changed the structure + of choice constructs. The idea to hold the different items + of a particular choice in a semicolon separated list was bad. + Now choices are groups and the option items are modelled as + embedded bools. (mainly Torsten Irländer's idea). + + WARNING: this makes old document files containing choices incompatible!!! + Use the following XSLT to reestablish compatibility. + + * contrib/itemize-choices.xsl: New converts old to new structure. + Needs exslt.org's string extensions (which xsltproc includes) + + * tools/formed/test-data/simple.xml: Ajusted to new structure + + * tools/formed/formed/plugins/web/plugin.py: remove debug output + + * tools/formed/formed/model/nodecomponents.py: fixed a small bug in + node finding code. It now uses the walk() generator, too. + +2007-08-12 Sascha L. Teichmann + + * tools/formed/formed/main.py: Added a clone item on the toolbar which + copies the currently selected item and appends it after the selection. + + * tools/formed/formed/model/nodecomponents.py: Added code to clone parts + of the tree. + + * tools/formed/formed/ui/controls.py: Added a getSelected method. + + * tools/formed/formed/model/misc.py: Fixed a programming bug. + forgot a 'self.' prefix. + +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 + attribute in base class. + + * tools/formed/formed/io/document.py: Added a table + names -> classes. + + * tools/formed/formed/main.py: Added a toolbar. Added code + to create and delete tree items. + + * tools/formed/formed/ui/controls.py: Added code to + insert and delete new tree items. + +2007-08-07 Sascha L. Teichmann + + * tools/formed/formed/model/nodecomponents.py: Fixed event + broadcasting for attribute changes. + + * tools/formed/formed/ui/controls.py: Add a list/table control to + edit the attributes of a selected item. + + * tools/formed/formed/main.py: Added code to bind the new + list/table control. + 2007-08-06 Sascha L. Teichmann * tools/formed/formed/main.py: Added event routes to move