pmaengineering / ppp-web

Web server and client application for Pretty PDF Printer, a package to convert XlsForms to human readable formats.
https://www.pma2020.org
MIT License
4 stars 4 forks source link

Language selector changes #30

Closed joeflack4 closed 6 years ago

joeflack4 commented 6 years ago

Tasks

Additional details.

Regarding point (5), you can test to see if it is working by trying to upload and convert the file attached at the bottom of the issue. Also FYI, I added some code to views.py to expect the 'none' case, as shown below.

        language = request.form.get('language')
        lang_option = \
            '--language ' + language if language and language != 'none' else ''
        preset = request.form.get('preset', 'standard')
        command_line = ' '.join((
            'python',
            '-m ppp',
            shlex.quote(in_file_path),
            lang_option,
            '--format ' + out_format,
            '--preset ' + preset,
            '--template ' + 'old',
            '--outpath ' + shlex.quote(out_file_path)
        ))

Attachments

  1. no default language - just label.xlsx.zip
joeflack4 commented 6 years ago

Tested and looks good!