annotate INTRODUCTION @ 536:a59622c06936

Fix generating reports if no week given unix_week() cannot handle week being None but does so for year. It just assumes the current year in this case, although this only duplicates the initialisation of year with c_year in this context. week being None gives TypeError: unsupported operand type(s) for -: 'NoneType' and 'int' load_entries() handles the case with no week given, thus call it anyhow. This fix makes it possible to invoke scripts/getan-report with a year given but no week and seeing the expected result (data for a whole year) instead of a traceback.
author Tom Gottfried <tom@intevation.de>
date Thu, 09 Jan 2020 11:32:34 +0100
parents 75131561d098
children
rev   line source
153
17dede6cb724 Update introduction file about the keys
Björn Ricks <bjoern.ricks@intevation.de>
parents: 142
diff changeset
1 This file gives some information about the available default keys in the 'getan'
17dede6cb724 Update introduction file about the keys
Björn Ricks <bjoern.ricks@intevation.de>
parents: 142
diff changeset
2 view. Some further keys are self-explanatory while working with 'getan'.
23
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
3
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
4 | key | description
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
5 ================================================================================
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
6 | up/down (arrows) | Navigate up/down in ProjectList and EntryList.
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
7 | tab | Switch focus between ProjectList and EntryList
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
8 | enter | start/stop a project (in ProjectList), mark an entry (in
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
9 EntryList).
438
d56fee6fd7ca Documentation: Adds description of the available tree mode.
Bernhard Reiter <bernhard@intevation.de>
parents: 405
diff changeset
10 | [project key] | Selects a project to run. Will start it, if the key
d56fee6fd7ca Documentation: Adds description of the available tree mode.
Bernhard Reiter <bernhard@intevation.de>
parents: 405
diff changeset
11 pressed is the last to uniquely identify a project.
23
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
12 | space | Pause a running project (the time that will be inserted
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
13 into database is the real running time without the break.
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
14 | F1 | Switch time display mode in ProjectList.
142
d88240a3a065 Add global key to switch sorting of the project list
Björn Ricks <bjoern.ricks@intevation.de>
parents: 123
diff changeset
15 | F2 | Switch sorting of entries in ProjectList.
23
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
16 | d | Delete marked entries (in EntryList).
405
150180e972d3 Adds ability to adjust the length of (saved) entries.
Bernhard Reiter <bernhard@intevation.de>
parents: 400
diff changeset
17 | e | Edit the text of a (marked) entry.
150180e972d3 Adds ability to adjust the length of (saved) entries.
Bernhard Reiter <bernhard@intevation.de>
parents: 400
diff changeset
18 | a | Adjust the starting datetime of a (marked) entry.
150180e972d3 Adds ability to adjust the length of (saved) entries.
Bernhard Reiter <bernhard@intevation.de>
parents: 400
diff changeset
19 | l | Adjust the length of a (marked) entry.
339
435fa7386f51 INTRODUCTION: mentioned key "e" for edit entry. Fixed typo in wizzard.
Bernhard Reiter <bernhard@intevation.de>
parents: 181
diff changeset
20 | m | Start the 'wizard' to move selected entries to another
23
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
21 project.
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
22 | esc | Exit the application. This is only possible if no project
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
23 is running (in ProjectList).
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
24 | + | Start a dialog to add time to a running project. Only
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
25 possible if there is a running project (in ProjectList).
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
26 | - | Start a dialog to subtract time from running project.
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
27 Only possible if there is a running project (in
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents:
diff changeset
28 ProjectList).
180
c043eaf163b6 Clarify insert key usage in introduction file
Björn Ricks <bjoern.ricks@intevation.de>
parents: 153
diff changeset
29 | ins | Create a new project (in ProjectList if no project is
c043eaf163b6 Clarify insert key usage in introduction file
Björn Ricks <bjoern.ricks@intevation.de>
parents: 153
diff changeset
30 running).
181
ecb8e422ead7 Add backspace usage explanation in introduction file
Björn Ricks <bjoern.ricks@intevation.de>
parents: 180
diff changeset
31 | backspace | Change key and description of a Project (in ProjectList
ecb8e422ead7 Add backspace usage explanation in introduction file
Björn Ricks <bjoern.ricks@intevation.de>
parents: 180
diff changeset
32 if no project is running).
479
75131561d098 Add a redraw function on key Control-L.
Magnus Schieder <mschieder@intevation.de>
parents: 438
diff changeset
33 | Control-L | Completely redraw the screen.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)