From 8358b2ef15dc1ed831f3e4c0bb0a2bf8fe712bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 7 Mar 2013 20:58:02 +0100 Subject: [PATCH] Use separate XML files for views --- MANIFEST.in | 1 + currency.xml | 108 ++--------------------------------- setup.py | 2 +- view/currency_form.xml | 56 ++++++++++++++++++ view/currency_rate_form.xml | 12 ++++ view/currency_rate_graph.xml | 11 ++++ view/currency_rate_list.xml | 8 +++ view/currency_tree.xml | 11 ++++ 8 files changed, 105 insertions(+), 104 deletions(-) create mode 100644 view/currency_form.xml create mode 100644 view/currency_rate_form.xml create mode 100644 view/currency_rate_graph.xml create mode 100644 view/currency_rate_list.xml create mode 100644 view/currency_tree.xml diff --git a/MANIFEST.in b/MANIFEST.in index f55ca198cf..2f34bcdd96 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,6 +6,7 @@ include COPYRIGHT include LICENSE include tryton.cfg include *.xml +include view/*.xml include *.odt include locale/*.po include doc/* diff --git a/currency.xml b/currency.xml index e2d9af7334..3d6dae9c87 100644 --- a/currency.xml +++ b/currency.xml @@ -28,79 +28,12 @@ this repository contains the full copyright notices and license terms. --> currency.currency form - - - currency.currency tree - - - - - - - - - - ]]> - + currency_tree Currencies @@ -137,50 +70,19 @@ this repository contains the full copyright notices and license terms. --> currency.currency.rate tree - - - - - - - ]]> - + currency_rate_list currency.currency.rate form - - - currency.currency.rate graph - - - - - - - - - - ]]> - + currency_rate_graph diff --git a/setup.py b/setup.py index f7974d1c41..81ac17667a 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ setup(name='trytond_currency', ], package_data={ 'trytond.modules.currency': (info.get('xml', []) - + ['tryton.cfg', 'locale/*.po', 'icons/*.svg']), + + ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'icons/*.svg']), }, classifiers=[ 'Development Status :: 5 - Production/Stable', diff --git a/view/currency_form.xml b/view/currency_form.xml new file mode 100644 index 0000000000..eadd4072a5 --- /dev/null +++ b/view/currency_form.xml @@ -0,0 +1,56 @@ + + +
+