--- trunk/ChangeLog 2007/08/11 11:24:04 31 +++ trunk/ChangeLog 2007/08/21 04:56:42 62 @@ -1,3 +1,297 @@ +2007-08-21 Sascha L. Teichmann + + * tools/formed/formed/model/data.py: Added mode parameter to + walk. + + * tools/formed/formed/model/nodecomponents.py: SwitchNode overwrites + walk() with usage of the new mode parameter. Added a method to + give children in a given mode. + + * tools/formed/formed/plugins/web/renderer.py: Simplified to use + new Switch.childrenInMode() method. + +2007-08-21 Sascha L. Teichmann + + * tools/formed/formed/plugins/web/semantic.py: Add checks for + texts and text areas. + + * tools/formed/formed/plugins/web/renderer.py: Set accept-charset + to UTF-8 in generated form. + +2007-08-20 Sascha L. Teichmann + + * tools/formed/formed/plugins/web/semantic.py: Added semantic + tests for dates. + +2007-08-20 Sascha L. Teichmann + + * tools/formed/test-data/simple.xml: Tweak a bit for integer + range test. + + * tools/formed/formed/model/nodecomponents.py: Added a method + to find a tree item for a given name. + + * tools/formed/formed/plugins/web/semantic.py: New: Box for + semantic checking. Has check for integers. + + * tools/formed/formed/plugins/web/plugin.py: Use semantic + check. + +2007-08-20 Torsten Irlaender + + * tools/formed/formed/plugins/web/renderer.py: Fixed Syntax in + selection-field generation (Removed quote) + +2007-08-18 Sascha L. Teichmann + + * tools/formed/formed/plugins/web/plugin.py, + tools/formed/formed/plugins/web/renderer.py: Added a + simple cookie based session management to the HTML + renderer. This submit parameters are stored in the + session now. This will ease testing the constraint + tests which need to be written soon. + + BEWARE: The session management is _not_ made for production! + Denial of service attacks are too easy, and the + cryptographical strength of the session id is doubtful. + +2007-08-18 Sascha L. Teichmann + + * tools/formed/formed/plugins/web/renderer.py: Escaping text + coming from the document tree now when inserting it into the + HTML output. + +2007-08-18 Sascha L. Teichmann + + * tools/formed/formed/plugins/plugin.py: Added a new kind + of plug-in: Filter. They have a short and a long description + and can be hooked automatically into the new 'Filters' + sub menu under 'Extra'. They got called when the user + selects their respective menu item. + + * tools/formed/formed/config.py: Contains the list of + installed filters. + + * tools/formed/formed/main.py: Builds the Extra->Filters + sub menu during gui initialization. The hard wired code + for make unique and formular name/description -> name + is removed because they are implemented as filters now. + + * tools/formed/formed/model/nodecomponents.py, + tools/formed/formed/model/data.py: Removed the make + unique and formular name/description -> name code. + + * tools/formed/formed/plugins/names, + tools/formed/formed/plugins/names/__init__.py, + tools/formed/formed/plugins/names/filter.py: Added. Contains + the make unique and formular name/description -> name code + in form of filters. + + * tools/formed/test-data/simple.xml: Modified to be a better + test for the formular name/description -> name filter. + +2007-08-18 Sascha L. Teichmann + + * tools/formed/formed.py, tools/formed/formed/main.py: First + command line argument is interpreted as filename of document + to be loaded at program startup. + +2007-08-17 Frank Koormann + + * contrib/convert-formedtree2html.xsl: + Heading level depending on depth of group node. + In case of radio/choice/check only list of options. + +2007-08-17 Torsten Irlaender + + * contrib/convert-formedtree2html.xsl: Output is now generated with + HTML doc-string and charset information in the meta-header. + +2007-08-17 Torsten Irlaender + + * contrib/convert-formedtree2html.xsl: Added small script for + exporting the formed tree to html + +2007-08-17 Torsten Irlaender + + * tools/formed/model/nodecomponents.py: Added function to rename + the set the name of the node to the formularname. The formularname + gets shorten to <=64 by removing vowels and is stored lowercase. + If the name is not unique and additional id value is appended. + + * tools/formed/formed/model/data.py: Overwritten renaming-function for + bool-leafs + + * tools/formed/formed/main.py: Added menuitem for renaming the names + of the element + +2007-08-16 Sascha L. Teichmann + + * tools/formed/formed/main.py: Swaped order of + 'Make names unique' and 'Selected mode...' in Extra + menu and put a separator between them. + +2007-08-15 Sascha L. Teichmann + + * tools/formed/formed/model/data.py: SwitchNodes can add + their modes to a given set now. + + * tools/formed/formed/plugins/plugin.py: Simplified + the plug-in interface. Only the reference to the + global configuration is passed at setup time. + + * tools/formed/formed/plugins/web/plugin.py: Adjusted + to new plug-in setup. The traveral mode is now taken + from the global configuration each time a rendering + is triggered. The FORMED parameter is now named + 'doc.mode' instead of 'web.mode'. The parameter + is not needed any more because it can be configured + at runtime. + + * tools/formed/formed/main.py: Adjusted to new plugin + setup. Added a new menu item Extra->Select Mode... + to select the traversal mode. It is stored in the + global config. + + * tools/formed/formed/config.py: Simplified. Only uses + one env dictionary to store global configuration parameters. + + * tools/formed/formed/ui/controls.py: Add a control to + select one item from a list of given strings. + +2007-08-15 Sascha L. Teichmann + + * tools/formed/formed/plugins/web/plugin.py, + tools/formed/formed/plugins/web/renderer.py: Added parameter + print out in web plugin. + +2007-08-15 Torsten Irlaender + + * contrib/convert-formedtree2csv.xsl: Added small script for + exporting the formed tree to csv + +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.