# HG changeset patch # User paulb # Date 1163209372 0 # Node ID de21e767581bd728d87b973f21b6050e891b3e16 # Parent 85a93d445e57432948cc8f2dcf059a11c79c5def [project @ 2006-11-11 01:42:52 by paulb] Added template fixing support. Updated release information. diff -r 85a93d445e57 -r de21e767581b XSLForms/Prepare.py --- a/XSLForms/Prepare.py Sat Nov 11 01:42:41 2006 +0000 +++ b/XSLForms/Prepare.py Sat Nov 11 01:42:52 2006 +0000 @@ -3,7 +3,7 @@ """ Preparation of templating stylesheets. -Copyright (C) 2005 Paul Boddie +Copyright (C) 2005, 2006 Paul Boddie This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -125,6 +125,18 @@ _make_document(template_name, output_name, stylesheet_names, encoding) +# Template repair functions. + +def fix_namespaces(template_name, output_name, stylesheet_names=["FixNamespace.xsl"], encoding=None): + + """ + Fix damage done to document namespaces by various editing tools, taking the + document identified by 'template_name' and producing a new document with the + given 'output_name'. + """ + + _make_document(template_name, output_name, stylesheet_names, encoding) + # Qt Designer functions. def make_qt_fragment(template_name, output_name, widget_name, stylesheet_names=["QtDesignerExtract.xsl"], encoding=None): diff -r 85a93d445e57 -r de21e767581b XSLForms/__init__.py --- a/XSLForms/__init__.py Sat Nov 11 01:42:41 2006 +0000 +++ b/XSLForms/__init__.py Sat Nov 11 01:42:52 2006 +0000 @@ -20,6 +20,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ -__version__ = "0.4.1" +__version__ = "0.4.2" # vim: tabstop=4 expandtab shiftwidth=4