Commit Graph

248 Commits

Author SHA1 Message Date
Sam Manzi
5dc5615bfd
Prefer with context manager to open files 2016-04-19 09:08:21 +10:00
Sam Manzi
4342b319e3 Merge pull request #102 from SNoiraud/bug5449
5449: Pedigree view crashes if you happen to choose a child as ancestor
2016-04-16 07:19:01 +10:00
Paul Franklin
2f608f67e6 fix "TypeError: 'tuple' object does not support item assignment" 2016-03-31 12:34:18 -07:00
SNoiraud
0650bd8643 5449: Convert list to set 2016-02-25 11:01:11 +01:00
SNoiraud
9bc91af2de 5449: Pedigree view crashes if you happen to choose a child as ancestor 2016-02-22 15:27:33 +01:00
John Ralls
c11fbe8bfc Bug 9159: Date format does not match system.
Make US English a special-case locale with en_GB the default if the locale
is en_XX where XX != US.

Note that untranslated languages will still end up using the 'C' locale.
2016-02-08 13:13:16 -08:00
Doug Blank
202e1f5594 Protection from null objects 2016-02-07 11:58:59 -05:00
Doug Blank
2eeda93617 Renamed get_object_from to get_media_from 2016-01-23 19:00:13 -05:00
Doug Blank
ee05e0b451 7335: Cleanup code, filenames, and documentation
First part of cleanup, changes:

MediaObject -> Media
mediaobj -> media
mediaobject -> media
2016-01-23 14:22:41 -05:00
Marek Szuba
186c2bcfef Only consider the values of LC_ALL, LANG, and LANGUAGE, in that order, when choosing the default locale.
Default arguments of locale.getdefaultlocale() consider the value
of LC_CTYPE in addition to the three aforementioned all-category
variables, which under certain conditions (LC_CTYPE set, LC_ALL and
the rest of LC_FOO unset) would result in the locale set in LC_CTYPE
(which should only affect interpretation of byte sequences as
characters) spilling over to other locale categories handled by the
GrampsLocale object. The most visible effect of that spill was that
with LC_ALL, LANG, LANGUAGE and LC_MESSAGES unset but LC_CTYPE set,
Gramps would start using the wrong UI language.
2016-01-22 13:42:50 -08:00
John Ralls
dbdec516b9 Fix err undefined exception. 2016-01-18 09:16:44 -08:00
Josip
73b3ccbd0e 9122: Complete Report about person (whole database) - PDF - crash 2016-01-08 20:55:20 -08:00
Nick Hall
e82148677d Replace tabs with spaces 2015-12-31 21:17:49 +00:00
Tom Samstag
92c2ddc33e remove unnecessary pass statements 2015-12-31 00:24:07 -08:00
Tom Samstag
602ad1bc53 not x is None -> x is not None 2015-12-31 00:03:22 -08:00
Nick Hall
5c958bd7fb Raise HandleError exception for bad handles 2015-12-05 21:17:56 +00:00
Nick Hall
e813e1c5c2 Remove conv_dbstr_to_unicode function 2015-12-05 17:50:51 +00:00
Nick Hall
8dffe6639b Remove remaining conv_to_unicode calls 2015-12-05 16:57:05 +00:00
Paul Franklin
c5bbe7b04e 9041: remove temorary _DATAMAP entries (from [8fac92d])
not needed after [4c22713]
2015-12-02 08:52:19 -08:00
romjerome
8fac92d170 9041: Add missing 'Father/mother age' translation strings
temp workaround for mapping them via translation dict
2015-11-29 11:05:18 +01:00
Nick Hall
452fbfac80 Remove redundant unicode conversion of __file__ variable 2015-11-28 22:34:38 +00:00
Nick Hall
d770c8a236 Remove unused constfunc imports 2015-11-28 22:00:51 +00:00
John Ralls
d4c7950cc5 Bug 8929 - Installation from DMG (binary) file and port file fail.
Cause was a stray bytes qualifier in the split character.
2015-10-25 15:06:15 -07:00
Tom Hughes
289b2df9a1 Handle citation objects in glocale.trans_objclass
Without this right clicking on a citation in the clipboard
gives options like "Make See Details active" which don't make
an awful lot of sense.
2015-10-18 19:25:50 +01:00
Nick Hall
a86890002f Remove redundant io imports 2015-10-05 19:20:08 +01:00
Nick Hall
41c17c3190 Tidy up xml parser file handling 2015-10-05 18:30:56 +01:00
Nick Hall
2d92101438 Replace GRAMPS with Gramps in comments 2015-09-07 21:58:52 +01:00
Sam Manzi
8fd1fab200 Update docstrings - spelling 2015-09-07 14:52:49 +10:00
Nick Hall
cdee00aca2 Remove trailing whitespace 2015-08-23 18:42:07 +01:00
belissent
82eb6e17ac Create a GRAMPS environment ENV for variables substitutions in paths 2015-08-20 14:04:21 +02:00
Pierre Bélissent
4bbae0e46a Fix for "Environment variables in mediapath" 2015-08-19 20:24:40 +02:00
belissent
5d654d402a Environment variables in mediapath
The mediapath could now be a relative path from database location,
or use variables ($GRAMPSHOME, $GRAMPS_RESOURCES, etc.)
2015-08-19 16:26:59 +02:00
Nick Hall
d76757ddb4 8775: Avoid using person-centric date matching for places 2015-08-17 19:25:33 +01:00
Doug Blank
134ba5bf2e Moved gui.thumbnails to gen.utils: useful without gui 2015-08-13 17:57:19 -04:00
Doug Blank
f1cc01eb1a 8768: Gramps throws fatal error when trying to delete a family 2015-07-31 07:08:51 -04:00
Josip
a6712e151a 8764: [Compare Individual Events :Tool ]
Selecting "Save" causes a UnicodeEncodeError error
2015-07-29 04:35:41 +02:00
Doug Blank
ed2a5bcdff Merge pull request #41 from ennoborg/maintenance/gramps41
8663: add exception for UnicodeEncodeError.
2015-07-13 23:14:35 -04:00
Doug Blank
8317f579c2 Merge branch 'master' into geps/gep-032-database-backend 2015-06-01 07:29:37 -04:00
Nick Hall
fff6a5ce15 Add extra place displayer options 2015-05-31 16:51:39 +01:00
Doug Blank
b059bdec66 Database backend as a plugin: this set of changes moves most or
all of Bsddb from gramps.gen.db to gramps.plugins.database. The
id of the plugin is 'bsddb' which can be loaded using the
make_database(id, dbstate) API (for now).

Next step is to add an identifying text in the directory to
indicate which database backend to use.
2015-05-26 20:07:44 -04:00
Nick Hall
cc6820f80c GEPS 036: Add date and language to place names 2015-05-26 21:12:36 +01:00
Doug Blank
9c9dc2c8e2 7143: Database Differences Report fails on gpkg with media
Added return values on imports, so we can tell the difference
between failure and success. Return value of None means failed.

Now, all importers should return an ImportInfo object.

The Differences will now stop if there is an error (such as
existing media directory.)
2015-05-26 13:19:03 -04:00
Nick Hall
e355a93dc1 Use escape utility from html rather than cgi module 2015-05-22 14:50:19 +01:00
Josip
bb1e5f4e3d fix typo in commit 7a507a6 2015-04-13 10:01:13 +02:00
Josip
7a507a6b01 8473: problem by start program 2015-04-13 01:23:53 +02:00
Nick Hall
13bee7cf26 7992: Fix call to get_participant_from_event during batch transaction
During a batch transaction the secondary tables are closed.  This
causes an error when find_backlink_handles is called.  Although
not ideal, we return an empty string for participants.
2015-03-17 14:03:03 +00:00
Nick Hall
5da10c5a80 Replace cuni with str 2015-03-14 23:48:32 +00:00
Nick Hall
c9fd339289 Replace UNITYPE with str 2015-03-14 22:33:55 +00:00
Nick Hall
beab7892e5 Replace STRTYPE with str 2015-03-14 22:11:54 +00:00
Nick Hall
6d047c946c Replace conv_to_unicode_direct with str 2015-03-14 21:49:45 +00:00