]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/log
philipp/winterrodeln/wrpylib.git
3 years agoAdd "see also".
Philipp Spitzer [Fri, 10 Dec 2021 20:37:34 +0000 (21:37 +0100)]
Add "see also".

3 years agoFix check for existence of image.
Philipp Spitzer [Fri, 10 Dec 2021 20:37:22 +0000 (21:37 +0100)]
Fix check for existence of image.

3 years agoParse description.
Philipp Spitzer [Mon, 29 Nov 2021 22:42:43 +0000 (23:42 +0100)]
Parse description.

3 years agoFurther work on parsing (now a map is parsed).
Philipp Spitzer [Mon, 29 Nov 2021 22:12:02 +0000 (23:12 +0100)]
Further work on parsing (now a map is parsed).

3 years agoAdd type annotations.
Philipp Spitzer [Mon, 29 Nov 2021 22:11:39 +0000 (23:11 +0100)]
Add type annotations.

3 years agoWork on parsing wikicode (currently Rodelbahnbox).
Philipp Spitzer [Sun, 28 Nov 2021 22:14:30 +0000 (23:14 +0100)]
Work on parsing wikicode (currently Rodelbahnbox).

3 years agoAdd some type annotations.
Philipp Spitzer [Sun, 28 Nov 2021 21:51:38 +0000 (22:51 +0100)]
Add some type annotations.

3 years agoAdd functions lonlat_to_json and lonlat_ele_to_json.
Philipp Spitzer [Sun, 28 Nov 2021 21:45:09 +0000 (22:45 +0100)]
Add functions lonlat_to_json and lonlat_ele_to_json.

3 years agoCorrectly represent operator in Rodelbahnbox dict.
Philipp Spitzer [Sun, 28 Nov 2021 21:44:23 +0000 (22:44 +0100)]
Correctly represent operator in Rodelbahnbox dict.

3 years agoStart to work on wikitext to JSON conversion.
Philipp Spitzer [Sun, 28 Nov 2021 10:45:26 +0000 (11:45 +0100)]
Start to work on wikitext to JSON conversion.

3 years agoDisplay reason for skips to user.
Philipp Spitzer [Sun, 28 Nov 2021 10:45:00 +0000 (11:45 +0100)]
Display reason for skips to user.

3 years agoImplement JSON validation after edit.
Philipp Spitzer [Sun, 28 Nov 2021 10:44:35 +0000 (11:44 +0100)]
Implement JSON validation after edit.

3 years agoName of public_transport_stop was split.
Philipp Spitzer [Sun, 31 Oct 2021 22:57:15 +0000 (23:57 +0100)]
Name of public_transport_stop was split.

3 years agoOrder keys by schema when validating.
Philipp Spitzer [Sun, 31 Oct 2021 09:16:13 +0000 (10:16 +0100)]
Order keys by schema when validating.

3 years agoWrite function to resolve references ("$ref").
Philipp Spitzer [Fri, 29 Oct 2021 09:33:37 +0000 (11:33 +0200)]
Write function to resolve references ("$ref").

3 years agoMake original schema available everywhere (prepare to resolve $ref).
Philipp Spitzer [Fri, 29 Oct 2021 07:22:47 +0000 (09:22 +0200)]
Make original schema available everywhere (prepare to resolve $ref).

3 years agoAdd test to check error message.
Philipp Spitzer [Fri, 29 Oct 2021 07:15:00 +0000 (09:15 +0200)]
Add test to check error message.

3 years agoJSON path now contains the keys directly.
Philipp Spitzer [Fri, 29 Oct 2021 07:14:46 +0000 (09:14 +0200)]
JSON path now contains the keys directly.

3 years agoType of arrays are not tested.
Philipp Spitzer [Thu, 28 Oct 2021 20:32:19 +0000 (22:32 +0200)]
Type of arrays are not tested.

3 years agoFurther work on order_json_keys.
Philipp Spitzer [Tue, 26 Oct 2021 21:48:06 +0000 (23:48 +0200)]
Further work on order_json_keys.

3 years agoStart to work on function sorting JSON data based on JSON schema.
Philipp Spitzer [Tue, 26 Oct 2021 21:08:49 +0000 (23:08 +0200)]
Start to work on function sorting JSON data based on JSON schema.

3 years agoCreate bot to validate sledrun JSON.
Philipp Spitzer [Tue, 26 Oct 2021 16:31:53 +0000 (18:31 +0200)]
Create bot to validate sledrun JSON.

3 years agoMove bot to bots directory.
Philipp Spitzer [Tue, 26 Oct 2021 14:56:02 +0000 (16:56 +0200)]
Move bot to bots directory.

3 years agoCreate bot to edit JSON data.
Philipp Spitzer [Tue, 26 Oct 2021 14:55:15 +0000 (16:55 +0200)]
Create bot to edit JSON data.

3 years agoSimplify and improve viewing of public transport.
Philipp Spitzer [Tue, 26 Oct 2021 09:23:03 +0000 (11:23 +0200)]
Simplify and improve viewing of public transport.

3 years agoSimplify sledrun markup creation by defining macro wr_page.
Philipp Spitzer [Tue, 26 Oct 2021 07:47:04 +0000 (09:47 +0200)]
Simplify sledrun markup creation by defining macro wr_page.

3 years agoDefine macro for weblink.
Philipp Spitzer [Tue, 26 Oct 2021 07:22:52 +0000 (09:22 +0200)]
Define macro for weblink.

3 years agoImprove rendering of sledrun as MediaWiki markup.
Philipp Spitzer [Tue, 26 Oct 2021 07:14:55 +0000 (09:14 +0200)]
Improve rendering of sledrun as MediaWiki markup.

3 years agoAdd description on how to use it.
Philipp Spitzer [Sun, 24 Oct 2021 19:57:41 +0000 (21:57 +0200)]
Add description on how to use it.

3 years agoUser script for pywikibot (https://gerrit.wikimedia.org/r/pywikibot/core.git).
Philipp Spitzer [Sun, 24 Oct 2021 19:54:59 +0000 (21:54 +0200)]
User script for pywikibot (https://gerrit.wikimedia.org/r/pywikibot/core.git).

3 years agoAdd some type annotations.
Philipp Spitzer [Tue, 19 Oct 2021 20:32:19 +0000 (22:32 +0200)]
Add some type annotations.

3 years agoCopy converting JSON to wikitext from wradmin.
Philipp Spitzer [Tue, 19 Oct 2021 20:32:07 +0000 (22:32 +0200)]
Copy converting JSON to wikitext from wradmin.

3 years agoAdd some type annotations.
Philipp Spitzer [Wed, 13 Oct 2021 21:35:25 +0000 (23:35 +0200)]
Add some type annotations.

3 years agoThe order of XML attributes is now retained.
Philipp Spitzer [Wed, 29 Sep 2021 21:15:39 +0000 (23:15 +0200)]
The order of XML attributes is now retained.

3 years agoPEP8 improvements.
Philipp Spitzer [Wed, 29 Sep 2021 21:15:11 +0000 (23:15 +0200)]
PEP8 improvements.

3 years agoUse same order of columns as in database.
Philipp Spitzer [Wed, 29 Sep 2021 21:14:54 +0000 (23:14 +0200)]
Use same order of columns as in database.

3 years agoMention package name in some imports.
Philipp Spitzer [Wed, 29 Sep 2021 21:14:32 +0000 (23:14 +0200)]
Mention package name in some imports.

3 years agoRemove unused imports.
Philipp Spitzer [Wed, 29 Sep 2021 21:14:05 +0000 (23:14 +0200)]
Remove unused imports.

3 years agoRemove Python 3.4 shebang.
Philipp Spitzer [Wed, 29 Sep 2021 21:13:47 +0000 (23:13 +0200)]
Remove Python 3.4 shebang.

3 years agoAdd more type annotations.
Philipp Spitzer [Wed, 29 Sep 2021 21:13:19 +0000 (23:13 +0200)]
Add more type annotations.

3 years agoAvoid remaining usage of LonLat(None, None), instead None is used.
Philipp Spitzer [Wed, 29 Sep 2021 21:12:26 +0000 (23:12 +0200)]
Avoid remaining usage of LonLat(None, None), instead None is used.

3 years agoFix test usage of mwparserfromhell.
Philipp Spitzer [Wed, 29 Sep 2021 21:10:49 +0000 (23:10 +0200)]
Fix test usage of mwparserfromhell.

3 years agoNew table structure in MediaWiki: slots and content.
Philipp Spitzer [Wed, 29 Sep 2021 21:01:40 +0000 (23:01 +0200)]
New table structure in MediaWiki: slots and content.

4 years agoAdd function create_template().
Philipp Spitzer [Fri, 6 Aug 2021 21:16:53 +0000 (23:16 +0200)]
Add function create_template().

4 years agoOnly allow floats in LonLat (and not None, None).
Philipp Spitzer [Fri, 6 Aug 2021 20:32:33 +0000 (22:32 +0200)]
Only allow floats in LonLat (and not None, None).

4 years agoMake use of format strings.
Philipp Spitzer [Fri, 6 Aug 2021 20:31:57 +0000 (22:31 +0200)]
Make use of format strings.

4 years agoRemove unused class ParseError.
Philipp Spitzer [Fri, 6 Aug 2021 19:27:22 +0000 (21:27 +0200)]
Remove unused class ParseError.

4 years agoUpdate requirements.
Philipp Spitzer [Thu, 5 Aug 2021 20:39:20 +0000 (22:39 +0200)]
Update requirements.

4 years agoBetter formatting and add some type hints.
Philipp Spitzer [Thu, 5 Aug 2021 20:39:12 +0000 (22:39 +0200)]
Better formatting and add some type hints.

4 years agoParameter min and max of int_to_string are now minimum and maximum.
Philipp Spitzer [Mon, 26 Jul 2021 20:28:30 +0000 (22:28 +0200)]
Parameter min and max of int_to_string are now minimum and maximum.

4 years agoAdd type annotations and improve coding style.
Philipp Spitzer [Mon, 26 Jul 2021 20:27:30 +0000 (22:27 +0200)]
Add type annotations and improve coding style.

4 years agoDeactivate Bavaria and Switzerland.
Philipp Spitzer [Fri, 12 Feb 2021 12:41:54 +0000 (13:41 +0100)]
Deactivate Bavaria and Switzerland.

4 years agoAdd Bavaria.
Philipp Spitzer [Fri, 12 Feb 2021 12:39:55 +0000 (13:39 +0100)]
Add Bavaria.

4 years agoAdd DEM Switzerland.
Philipp Spitzer [Thu, 11 Feb 2021 21:24:32 +0000 (22:24 +0100)]
Add DEM Switzerland.

4 years agoImplement bounding box check.
Philipp Spitzer [Thu, 11 Feb 2021 11:10:05 +0000 (12:10 +0100)]
Implement bounding box check.

4 years agoImplement DEM for South Tyrol.
Philipp Spitzer [Tue, 9 Feb 2021 21:59:17 +0000 (22:59 +0100)]
Implement DEM for South Tyrol.

4 years agoFix nodata results.
Philipp Spitzer [Tue, 26 Jan 2021 21:59:23 +0000 (22:59 +0100)]
Fix nodata results.

4 years agoCreate test for wrdem.py.
Philipp Spitzer [Tue, 26 Jan 2021 21:59:07 +0000 (22:59 +0100)]
Create test for wrdem.py.

4 years agoSmall improvements in wrvalidators.py.
Philipp Spitzer [Mon, 25 Jan 2021 23:13:31 +0000 (00:13 +0100)]
Small improvements in wrvalidators.py.

4 years agoCreate module wrdem and script get_elevation.
Philipp Spitzer [Mon, 25 Jan 2021 22:06:12 +0000 (23:06 +0100)]
Create module wrdem and script get_elevation.

5 years agoPEP 8 improvements.
Philipp Spitzer [Mon, 29 Jun 2020 20:50:07 +0000 (22:50 +0200)]
PEP 8 improvements.

5 years agoFix test_wrreportcache_table.
Philipp Spitzer [Mon, 29 Jun 2020 20:49:55 +0000 (22:49 +0200)]
Fix test_wrreportcache_table.

5 years agoCopy testdb.sql from wradmin project.
Philipp Spitzer [Mon, 29 Jun 2020 20:52:55 +0000 (22:52 +0200)]
Copy testdb.sql from wradmin project.

5 years agoMap strings saved in database as binary to unicode strings in Python.
Philipp Spitzer [Sat, 27 Jun 2020 20:56:12 +0000 (22:56 +0200)]
Map strings saved in database as binary to unicode strings in Python.

5 years agoAdjust expected data types in tests.
Philipp Spitzer [Sat, 27 Jun 2020 20:55:12 +0000 (22:55 +0200)]
Adjust expected data types in tests.

5 years agoInsert testdb.sql as raw SQL.
Philipp Spitzer [Sat, 27 Jun 2020 20:53:43 +0000 (22:53 +0200)]
Insert testdb.sql as raw SQL.

5 years agoSet version number to 0.7.0.
Philipp Spitzer [Tue, 23 Jun 2020 21:36:45 +0000 (23:36 +0200)]
Set version number to 0.7.0.

5 years agoAdd mapping definition for MediaWiki table user_groups.
Philipp Spitzer [Tue, 23 Jun 2020 21:36:14 +0000 (23:36 +0200)]
Add mapping definition for MediaWiki table user_groups.

5 years agoIncrease version number from 0.6.1 to 0.6.2.
philipp [Fri, 10 Jan 2020 20:03:29 +0000 (20:03 +0000)]
Increase version number from 0.6.1 to 0.6.2.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2917 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoSupport "real" UTF-8 by changing to utf8mb4 (winterrodeln tables) and binary (Mediawi...
philipp [Fri, 10 Jan 2020 20:03:28 +0000 (20:03 +0000)]
Support "real" UTF-8 by changing to utf8mb4 (winterrodeln tables) and binary (Mediawiki tables).

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2916 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoInclude scripts in setup.py.
philipp [Fri, 10 Jan 2020 20:03:26 +0000 (20:03 +0000)]
Include scripts in setup.py.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2915 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoIncrease version number from 0.6.0 to 0.6.1.
philipp [Sat, 21 Dec 2019 06:34:36 +0000 (06:34 +0000)]
Increase version number from 0.6.0 to 0.6.1.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2882 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoChange shabang to python3.
philipp [Sat, 21 Dec 2019 06:34:35 +0000 (06:34 +0000)]
Change shabang to python3.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2881 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoRemove obsolete file headers.
philipp [Tue, 17 Dec 2019 21:20:43 +0000 (21:20 +0000)]
Remove obsolete file headers.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2877 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoMake scripts more consistent (e.g. use argparse module).
philipp [Tue, 17 Dec 2019 21:20:41 +0000 (21:20 +0000)]
Make scripts more consistent (e.g. use argparse module).

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2876 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoMake executable.
philipp [Tue, 17 Dec 2019 21:20:40 +0000 (21:20 +0000)]
Make executable.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2875 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoConvert to Python3.
philipp [Tue, 17 Dec 2019 21:20:39 +0000 (21:20 +0000)]
Convert to Python3.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2874 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoMove updatewrsledruncache.py to scripts folder.
philipp [Tue, 17 Dec 2019 20:25:12 +0000 (20:25 +0000)]
Move updatewrsledruncache.py to scripts folder.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2873 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoMove updatewrreportcache.py to scripts folder.
philipp [Tue, 17 Dec 2019 20:24:45 +0000 (20:24 +0000)]
Move updatewrreportcache.py to scripts folder.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2872 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoMove updatewrregioncache.py to scripts folder.
philipp [Tue, 17 Dec 2019 20:24:19 +0000 (20:24 +0000)]
Move updatewrregioncache.py to scripts folder.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2871 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoMove updatewrmapcache.py to scripts folder.
philipp [Tue, 17 Dec 2019 20:23:53 +0000 (20:23 +0000)]
Move updatewrmapcache.py to scripts folder.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2870 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoMove updatewrinncache.py to scripts folder.
philipp [Tue, 17 Dec 2019 20:23:19 +0000 (20:23 +0000)]
Move updatewrinncache.py to scripts folder.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2869 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoMove createthumbnails.py to scripts folder.
philipp [Tue, 17 Dec 2019 20:22:35 +0000 (20:22 +0000)]
Move createthumbnails.py to scripts folder.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2868 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoMove command line interface to intermaps to separate file.
philipp [Tue, 17 Dec 2019 20:19:19 +0000 (20:19 +0000)]
Move command line interface to intermaps to separate file.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2867 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoUpdate update_wrintermapsreport() to sub-functions.
philipp [Tue, 17 Dec 2019 20:19:18 +0000 (20:19 +0000)]
Update update_wrintermapsreport() to sub-functions.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2866 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoIncrease indent to avoid a Python warning in update_wrintermapssledrun.
philipp [Tue, 17 Dec 2019 20:19:17 +0000 (20:19 +0000)]
Increase indent to avoid a Python warning in update_wrintermapssledrun.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2865 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoImplement adding reports from wrintermapsreport to wrintermapsreportshistory.
philipp [Tue, 17 Dec 2019 20:19:16 +0000 (20:19 +0000)]
Implement adding reports from wrintermapsreport to wrintermapsreportshistory.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2864 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoMap new column first_check as well.
philipp [Tue, 17 Dec 2019 20:19:15 +0000 (20:19 +0000)]
Map new column first_check as well.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2863 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoDynamic UTF offset.
philipp [Tue, 17 Dec 2019 20:19:14 +0000 (20:19 +0000)]
Dynamic UTF offset.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2862 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoPEP 8 improvements.
philipp [Tue, 17 Dec 2019 20:19:13 +0000 (20:19 +0000)]
PEP 8 improvements.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2861 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoWe don't need the investigate() function anymore.
philipp [Tue, 17 Dec 2019 20:19:12 +0000 (20:19 +0000)]
We don't need the investigate() function anymore.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2860 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoMake last_check a function parameter.
philipp [Tue, 17 Dec 2019 20:19:11 +0000 (20:19 +0000)]
Make last_check a function parameter.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2859 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoCreate function update_wrintermapsreport().
philipp [Tue, 17 Dec 2019 20:19:10 +0000 (20:19 +0000)]
Create function update_wrintermapsreport().

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2858 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoAdd WrIntermapsReport and WrIntermapsReportHistory to mapping.
philipp [Tue, 17 Dec 2019 20:19:10 +0000 (20:19 +0000)]
Add WrIntermapsReport and WrIntermapsReportHistory to mapping.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2857 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoFix typo in column names in mapping as well.
philipp [Tue, 17 Dec 2019 20:19:09 +0000 (20:19 +0000)]
Fix typo in column names in mapping as well.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2856 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoUse new wrpylib.orm classes.
philipp [Tue, 17 Dec 2019 20:19:08 +0000 (20:19 +0000)]
Use new wrpylib.orm classes.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2855 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoStart to add ORM classes for MediaWiki and Winterrodeln tables.
philipp [Tue, 17 Dec 2019 20:19:07 +0000 (20:19 +0000)]
Start to add ORM classes for MediaWiki and Winterrodeln tables.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2854 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoRename unused function main() to investigate().
philipp [Tue, 17 Dec 2019 20:19:06 +0000 (20:19 +0000)]
Rename unused function main() to investigate().

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2853 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoDraft helper script for intermap tables.
philipp [Tue, 17 Dec 2019 20:19:05 +0000 (20:19 +0000)]
Draft helper script for intermap tables.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2852 7aebc617-e5e2-0310-91dc-80fb5f6d2477

5 years agoAdd new intermaps tables to mapping.
philipp [Tue, 17 Dec 2019 20:19:04 +0000 (20:19 +0000)]
Add new intermaps tables to mapping.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2851 7aebc617-e5e2-0310-91dc-80fb5f6d2477