comparison README.creole @ 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 5c24c116ba1f
children 3bb3d9a9f1b7
comparison
equal deleted inserted replaced
16:5c24c116ba1f 17:adca5b3780d2
2 2
3 Grab and display data from a http://roundup-tracker.org/ instance. 3 Grab and display data from a http://roundup-tracker.org/ instance.
4 4
5 It is Free Software, check out the file headers. 5 It is Free Software, check out the file headers.
6 6
7 === Example
8 Run ./demo.py from a roundup-tracker to have a running tracker.
9
10 {{{
11 cp examples/collect_demo1.py c1.py
12 ./c1.py
13 # create or change some issues
14 ./c1.py
15
16 # to inspect the database contents
17 sqlite3 demo1.db 'select * from issues;'
18
19 ./display_issues_demo.py >demo1.html
20 chromium demo1.html
21 }}}
22
23
7 === Notes 24 === Notes
25 examples/collect_demo2.py builds database column names dynamically
26 and tracks issues with priorities. The display part is still missing.
8 27
9 When migrating to 3:99c68ebfb3b9, Nov 30 17:46:22 2015 28 When migrating to 3:99c68ebfb3b9, Nov 30 17:46:22 2015
10 you need to add the print statements for the content-type header 29 you need to add the print statements for the content-type header
11 to all of your cgi scripts. 30 to all of your cgi scripts.
12 31
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)