Commit graph

487 commits

Author SHA1 Message Date
brian m. carlson
d084fcd18d
manual: document key field directive.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-12-08 23:47:05 +00:00
brian m. carlson
8c6c5bf3c8
manual: document field definition directives.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-12-07 16:25:49 +00:00
brian m. carlson
43ff0d4eee
manual: document table definition directives.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-12-07 16:25:29 +00:00
brian m. carlson
c08856ab16
manual: document format directives.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-12-05 21:35:49 +00:00
brian m. carlson
d8c099fd9f
manual: document the CSV format exactly.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-12-04 01:11:05 +00:00
brian m. carlson
2af7432fcd
manual: document comments and extra fields.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-12-03 02:21:14 +00:00
brian m. carlson
bdb8691bd0
manual: document configuration files.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-11-26 03:18:49 +00:00
brian m. carlson
a48ce88ac1
manual: use Atx-style headers except for document title
These are easier to remember than using the Setext-style titles.  Also,
move the Data Layout section to a second-level title from a third-level.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-11-23 21:23:47 +00:00
brian m. carlson
8a2721289c
manual: document schema file format.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-11-23 21:16:11 +00:00
brian m. carlson
358efbab51
manual: document that CSV is colon-separated.
Traditionally, CSV has meant comma-separated values, but in the context
of newfol, it always means colon-separated.  Document this.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-11-23 21:14:45 +00:00
brian m. carlson
9611bf42df
manual: describe the data layout.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-11-22 23:09:05 +00:00
brian m. carlson
470d0dbe73 manual: expand overview.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-11-19 03:31:43 +00:00
brian m. carlson
df8e916995
Build PostScript docs by default.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-11-19 03:19:10 +00:00
brian m. carlson
a78ef81c3a
Set all test files executable.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-11-18 03:10:22 +00:00
brian m. carlson
7a8d6632d1
Makefile: enhance clean rule.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-11-18 02:23:58 +00:00
brian m. carlson
b61846a3dc
Don't rely on magic array indices in AboutView.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-10-23 22:36:32 +00:00
brian m. carlson
1f2070602d
Localize help output.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-10-22 01:52:26 +00:00
brian m. carlson
a7a13284c8
Note that development follows newer Python 3 versions.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-10-21 00:56:17 +00:00
brian m. carlson
f9cc2980df
Render all views using the session.
This ensures that each view will get access to the appropriate session
object.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-09-20 22:52:29 +00:00
brian m. carlson
438c563871
Format logging text correctly.
If passed a single string, the logging code would insert spaces between
each character.  Also, it was not possible to print non-string args.
Ensure that the logging behavior is as similar to what print() would
provide as possible,

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-09-18 10:54:31 +00:00
brian m. carlson
9727fc5967
Allow specifying debug path through the environment.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-09-18 10:52:02 +00:00
brian m. carlson
08cb029916
Render views from keyboard shortcuts with Session.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-09-17 23:26:47 +00:00
brian m. carlson
03395e3235
Add session attribute to view objects.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-09-17 23:26:16 +00:00
brian m. carlson
4b42f4b69e
Localize most of the main program.
Some format strings have been converted from the Python 3-style strings
to the %s strings, as these are more common for potential translators.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-09-16 02:03:33 +00:00
brian m. carlson
21b8a44ccb
newfol: add basic gettext support.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-09-15 22:57:45 +00:00
brian m. carlson
69f7cd5be2
Write log files in the user's home directory.
The log function stored logs in /tmp, but only if the NEWFOL_DEBUG
environment variable was set and logging statements were added.
However, avoid any possibility of attacks by storing this file in the
user's home directory instead.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-09-14 20:55:41 +00:00
brian m. carlson
67baea4318
Bump version to v6~pre.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-09-09 23:00:35 +00:00
brian m. carlson
bf9fde8329
Update version number to version 5.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-09-09 22:55:13 +00:00
brian m. carlson
0f2d370f86 Simplify code for starting GUI. 2014-09-08 22:25:00 +00:00
brian m. carlson
3ca6275c50
Print supported transaction types for --version.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-09-07 23:43:38 +00:00
brian m. carlson
f6c5e4bbb7
Use dict.get instead of catching exceptions.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-31 20:30:56 +00:00
brian m. carlson
dc4f8e4909
Ensure that locale character set is UTF-8.
newfol uses Unicode strings internally, and Python wants to read strings
from the terminal based on the locale.  We want the locale to be in
UTF-8 so that all files are also written that way, and also so that the
behavior is consistent between invocations.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-28 23:16:30 +00:00
brian m. carlson
2f0693e87d
Handle editor process failures.
If the editor process couldn't be spawned, or it exited nonzero, provide
a message box with a sensible error message to indicate this to the
user.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-25 10:32:50 +00:00
brian m. carlson
2ea7c15601
Clarify confusing comment.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-21 07:53:39 +00:00
brian m. carlson
182759b9b8
Add basic tests for KeyboardShortcuts.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-21 07:42:03 +00:00
brian m. carlson
083faadb12
Allow unsetting a keyboard shortcut.
Also make it possible to override an existing shortcut.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-21 06:53:50 +00:00
brian m. carlson
8282016c8e
Move a large set of if statements to a table.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-13 23:08:49 +00:00
brian m. carlson
7d61cfbdce
Convert some NewfolErrors to DataErrors.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-06 00:44:09 +00:00
brian m. carlson
c4aaf59940
Add support for per-user configuration.
By default, the file in $XDG_CONFIG_HOME/newfol/defaults will be read
and parsed almost exactly as if it were a schema file.  If it is
missing, nothing happens.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-05 23:36:29 +00:00
brian m. carlson
9c9662ae9a
Add support for loading configuration files.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-05 23:23:34 +00:00
brian m. carlson
26a83e68d7
Make Schema.load a regular method.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-05 23:04:57 +00:00
brian m. carlson
42643dface
Use a more specific class for schema errors.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-05 23:01:45 +00:00
brian m. carlson
6131cc6c43
Make Schema.load_file a regular method.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-05 22:56:31 +00:00
brian m. carlson
07983b4a32
Allow loading schema data from an arbitrary file.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-05 22:51:09 +00:00
brian m. carlson
476863a44b
Allow longer names for schema fields.
The current names are hard to remember.  Allow using longer names for
most fields.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-05 22:48:07 +00:00
brian m. carlson
ee1a228919
Add support for specifying keyboard shortcuts.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-08-04 23:14:39 +00:00
brian m. carlson
6279323334
Create a session object.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-07-31 22:39:38 +00:00
brian m. carlson
8563e90739
Remove unused code.
The only case in which we can call toggle_state from outside of the
class it's declared in is in DisplayTemplateRecordView.  However, we no
longer try to toggle the first cell, which is the only one that can
contain a non-checkbox.  Remove this code since it is never used.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-07-30 22:33:29 +00:00
brian m. carlson
b46144f50c
Write KeyboardShortcuts more naturally.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-07-30 01:22:08 +00:00
brian m. carlson
fc2b1cb177
Centralize list of default transaction types.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
2014-07-29 02:14:18 +00:00