# HG changeset patch # User paulb # Date 1121806943 0 # Node ID 9cccc95a710c26c95aee0e5c35ec100bfa0ee02e # Parent 868af5579e81a7d853f00a9893093acd3a5b182b [project @ 2005-07-19 21:02:23 by paulb] Added multiple-choice field. diff -r 868af5579e81 -r 9cccc95a710c examples/Common/VerySimple/__init__.py --- a/examples/Common/VerySimple/__init__.py Tue Jul 19 16:00:54 2005 +0000 +++ b/examples/Common/VerySimple/__init__.py Tue Jul 19 21:02:23 2005 +0000 @@ -5,6 +5,7 @@ import WebStack.Generic import XSLForms.Resources import XSLForms.Utils +import XSLOutput import os # Resource classes. @@ -43,6 +44,13 @@ XSLForms.Utils.remove_elements(selectors.get("remove")) XSLForms.Utils.add_elements(selectors.get("add"), "item") + # Transform, adding enumerations/ranges. + + types_xsl = os.path.join(self.resource_dir, "structure_types.xsl") + types_xml = os.path.join(self.resource_dir, "structure_types.xml") + proc = XSLOutput.Processor([types_xsl], references={"types" : types_xml}) + structure = proc.get_result(structure) + # Start the response. trans.set_content_type(WebStack.Generic.ContentType("application/xhtml+xml", self.encoding))