# HG changeset patch # User paulb # Date 1128818901 0 # Node ID 57fecc1d7edf69d3c98a216fcbb1906c2424c6f0 # Parent 35993d0075d9ce16e5e6f453d8f2719555fe1c95 [project @ 2005-10-09 00:48:19 by paulb] Changed the in-page update code to use prepare_parameters. diff -r 35993d0075d9 -r 57fecc1d7edf examples/Common/Dictionary/__init__.py --- a/examples/Common/Dictionary/__init__.py Sun Oct 09 00:48:16 2005 +0000 +++ b/examples/Common/Dictionary/__init__.py Sun Oct 09 00:48:21 2005 +0000 @@ -113,18 +113,14 @@ trans.set_content_type(WebStack.Generic.ContentType("application/xhtml+xml", self.encoding)) - # Define the stylesheet parameters. - - stylesheet_parameters = {} - # Ensure that an output stylesheet exists. if in_page_resource in self.in_page_resources.keys(): trans_xsl = self.prepare_fragment("words", in_page_resource) - element_path = parameters.get("element-path", [""])[0] - stylesheet_parameters["element-path"] = element_path + stylesheet_parameters = self.prepare_parameters(parameters) else: trans_xsl = self.prepare_output("words") + stylesheet_parameters = {} # Complete the response. diff -r 35993d0075d9 -r 57fecc1d7edf examples/Common/VerySimple/__init__.py --- a/examples/Common/VerySimple/__init__.py Sun Oct 09 00:48:16 2005 +0000 +++ b/examples/Common/VerySimple/__init__.py Sun Oct 09 00:48:21 2005 +0000 @@ -79,18 +79,14 @@ trans.set_content_type(WebStack.Generic.ContentType("application/xhtml+xml", self.encoding)) - # Define the stylesheet parameters. - - stylesheet_parameters = {} - # Ensure that an output stylesheet exists. if in_page_resource in self.in_page_resources.keys(): trans_xsl = self.prepare_fragment("structure", in_page_resource) - element_path = parameters.get("element-path", [""])[0] - stylesheet_parameters["element-path"] = element_path + stylesheet_parameters = self.prepare_parameters(parameters) else: trans_xsl = self.prepare_output("structure") + stylesheet_parameters = {} # Complete the response.