1.1 --- a/examples/Common/Configurator/__init__.py Sun May 08 23:13:39 2005 +0000
1.2 +++ b/examples/Common/Configurator/__init__.py Sun May 15 19:54:13 2005 +0000
1.3 @@ -73,7 +73,6 @@
1.4 # Get the XML representation of the request.
1.5
1.6 documents = fields.make_documents(parameters.items())
1.7 - print "*", libxml2dom.toString(documents["configuration"])
1.8 else:
1.9 trans.set_response_code(405)
1.10 raise WebStack.Generic.EndOfResponse
1.11 @@ -84,6 +83,7 @@
1.12 configuration = documents["configuration"]
1.13 else:
1.14 configuration = fields.new_instance("configuration")
1.15 + print "*", configuration.toString()
1.16
1.17 # Add and remove elements according to the selectors found.
1.18
1.19 @@ -100,7 +100,7 @@
1.20
1.21 if parameters.has_key("export"):
1.22 trans.set_content_type(WebStack.Generic.ContentType("text/xml", self.encoding))
1.23 - libxml2dom.toStream(configuration, trans.get_response_stream(), trans.get_response_stream_encoding())
1.24 + configuration.toStream(trans.get_response_stream(), trans.get_response_stream_encoding())
1.25
1.26 # When not exported, the data is transformed to produce a normal Web
1.27 # page.