changeset ccae3ab62e0f in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=ccae3ab62e0f
description:
        Add report extension as extra files

        issue9760
        review292571002
diffstat:

 bin/trytond |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 84244f5b7641 -r ccae3ab62e0f bin/trytond
--- a/bin/trytond       Mon Oct 26 21:27:13 2020 +0100
+++ b/bin/trytond       Tue Oct 27 21:15:28 2020 +0100
@@ -49,8 +49,11 @@
         ssl_args = {}
     for module in get_module_list():
         info = get_module_info(module)
-        path = os.path.join(info['directory'], 'view', '*.xml')
-        extra_files.extend(glob.glob(path))
+        for ext in ['xml',
+                'fodt', 'odt', 'fodp', 'odp', 'fods', 'ods', 'fodg', 'odg',
+                'txt', 'html', 'xhtml']:
+            path = os.path.join(info['directory'], '**', '*.' + ext)
+            extra_files.extend(glob.glob(path, recursive=True))
 
     if options.coroutine:
         from gevent.pywsgi import WSGIServer

Reply via email to