Mercurial > roundup-cc
comparison collect_issues.py @ 17:adca5b3780d2
Add collecting no-prio issues. Restructure.
* Move usage examples from collect_issues.py to examples/.
Also add a section about this to the readme. This should
make it easier to understand how it all works together.
As we have two examples now, hardcode the database filenames.
* Add a function to create the necessary database command from a list
of columns. This makes it easier to work with tracker that have
customized their priorities,
* Add an example how to collect no-prio issues in a database.
Note that the display part is not included.
* Cleanup roundup_content_data by removing db file name suggestions
and unused "reference db" command. This could be re-added for specific
installations if they need it, however it probably should be separated
as configuration.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Mon, 09 Jul 2018 12:28:28 +0200 |
parents | d0c439d1e833 |
children | 3bb3d9a9f1b7 |
comparison
equal
deleted
inserted
replaced
16:5c24c116ba1f | 17:adca5b3780d2 |
---|---|
9 | 9 |
10 This is Free Software unter the terms of the | 10 This is Free Software unter the terms of the |
11 GNU GENERAL PUBLIC LICENSE Version 3 or later. | 11 GNU GENERAL PUBLIC LICENSE Version 3 or later. |
12 See http://www.gnu.org/licenses/gpl-3.0.txt for details | 12 See http://www.gnu.org/licenses/gpl-3.0.txt for details |
13 | 13 |
14 | 14 For usage see examples/. |
15 ##USAGE EXAMPLE: ## | |
16 | |
17 BASE_URL_DEMO = "http://localhost:8917/demo/" | |
18 SEARCH_URL_DEMO = "issue?@action=export_csv&@columns=title,priority&@filter=status&@pagesize=50&@startwith=0&status=-1,1,2,3,4,5,6,7" | |
19 | |
20 LOGIN_PARAMETERS_DEMO = ( | |
21 ("__login_name", "demo"), | |
22 ("__login_password", "demo"), | |
23 ("@action", "Login"), | |
24 ) | |
25 | |
26 save_stats_in_db(LOGIN_PARAMETERS_DEMO, BASE_URL_DEMO, rcd.DATABASE_DEMO, rcd.COLUMNS, rcd.CREATE_DB, rcd.INSERT_NEW, SEARCH_URL_DEMO) | |
27 """ | 15 """ |
28 | 16 |
29 import http.cookiejar | 17 import http.cookiejar |
30 import urllib.parse | 18 import urllib.parse |
31 import urllib.request | 19 import urllib.request |