Edward d'Auvergne
ed7075f4ba
Catalogs: Python 3 compatibility for reading binary data.
...
IO data needs to be decoded, and the binary zip file needs to be opened in 'rb'
binary mode.
2019-11-18 10:26:40 +01:00
Edward d'Auvergne
5d3fcd3ba0
Catalogs: Converted all print statements into Python 3 compatible functions.
2019-11-18 10:06:24 +01:00
Edward d'Auvergne
3b1a3c51b1
Catalogs: Default to Python 3.
2019-11-18 09:58:58 +01:00
Edward d'Auvergne
d22ff42e42
Catalogs: The scm <update> XML tag is now used.
...
The tag can be overridden on the command line with the --update and --no-update options.
2019-11-14 11:59:56 +01:00
Edward d'Auvergne
190d789a54
Catalogs: Support for <include> tags to allow a subset of craft to be cataloged.
2019-11-13 22:26:11 +01:00
Edward d'Auvergne
8534a8aba4
Catalogs: Modification of the template file parsing.
...
The code is now a function in the 'catalog' module and checks for the existence
of the file are now performed.
2019-11-13 22:26:11 +01:00
Edward d'Auvergne
9ec3e015b2
Catalogs: Modification of the configuration file parsing.
...
The code is now a function in the 'catalog' module and checks for the existence
of the file are now performed.
2019-11-13 22:26:10 +01:00
Edward d'Auvergne
b8c05410e3
Catalogs: Rewrite of the craft zip creation using the Python zipfile module.
...
If a 'zip-excludes.lst' file is found in the craft's base directory, that will
overwrite the global catalog exclusion list.
Three new unit tests have been created to test the functionality.
2019-11-13 22:25:49 +01:00
James Turner
99b893368b
Catalogs: multiple download URLs (mirrors) supported
2018-10-17 14:16:40 +01:00
James Turner
6e8b4c3ee7
Sharing logic tweaks
2018-10-17 13:00:10 +00:00
James Turner
391ceaea11
Update-catalog.py: —quiet option
2018-10-17 11:04:11 +01:00
Curtis L. Olson
89d526e740
Check if thumbnail exists in package before building thumbnail_url (which
...
is never actually used by the way.)
2017-09-26 06:30:50 -05:00
James Turner
7eb3a8886f
Improving catalog generation
...
Support multiple primary aircraft in a package, which has several
aircraft developers have requested. This adjusts the handling of
the variant-of and primary-set tags.
Additionally, this adds partial unit-test coverage for -set.xml
scanning and catalog XML generation.
Run ./test_catalog to run unit-tests of the catalog generation.
2017-04-12 16:38:58 +01:00
James Turner
3f85e1911e
Catalog script thumbnails, primary-set fixes.
...
- extract per-variant thumbnails from -set.xml files
- handle multiple primary aircraft in a directory (this will
need client-side changes too, eventually)
2017-03-05 21:02:49 +02:00
James Turner
8e22064b71
Re-add tag validation and support to catalog.
...
Tags are copied to the catalog.xml again, and validated against
catalogTags.py
2017-02-27 00:32:01 +00:00
Curtis L. Olson
a5949431b1
A couple cleanups ....
2017-02-12 09:44:02 -06:00
Curtis L. Olson
0622410e4a
Create the preview directory if it doesn't already exist.
2017-02-12 09:14:05 -06:00
James Turner
acb8a7a793
Fix catalog parsing, add unit-tests
...
Fixes issues with conflated nodes and skipped previews in the
catalog XML.
2017-02-10 11:55:30 +00:00
James Turner
e8a6c477cc
Preview support.
2017-01-12 21:12:57 +00:00
James Turner
21a53b3537
Update-catalog does SGProps parsing of -set.xml
...
This restores the ability to use includes in -set.xml files visible
to the catalog code, and also exposes some problems / validation
issues in our -set.xml files. (Which can of course be fixed)
2017-01-12 14:39:35 +00:00
James Turner
93b085f441
Fix a typo
2016-11-25 21:52:42 +00:00
James Turner
52bceabab7
Catalog includes description / authors per variant.
2016-11-25 21:51:46 +00:00
Curtis L. Olson
6927ffb67c
Fix a cwd/path issue when building zip files.
2016-08-19 06:29:50 -05:00
Curtis L. Olson
57e20e046a
Aircraft catalog update script with example catalog configuration.
2016-08-17 13:33:10 -05:00