George Sakkis wrote: > When the form is submitted, the selected options are passed in the server in > some form > that preserves the hierarchy, i.e. not as a flat dict. Is there anything > close to such a beast around ?
Yes, I have a framework called XSLForms which generates hierarchical field names when rendering XML documents using XSL-based templates; these field names are then interpreted in order to build XML documents based on the encoded hierarchy information. When these activities are successfully combined, the outcome is some kind of serialisation of XML data in Web forms. Take a look at the XSLTools distribution (which contains XSLForms): http://www.python.org/pypi/XSLTools Using the framework is not as easy as I'd like it to be, but there are a few examples (as well as the code, of course) and that should give you some ideas. Paul -- http://mail.python.org/mailman/listinfo/python-list