169 Commits

Author SHA1 Message Date
Paul Franklin
4e04ec09fb behave gracefully if no GExiv2 under Python3
svn: r21468
2013-02-26 20:36:52 +00:00
Paul Franklin
5e8623cf1b 6409 and 6447 Python3 changes (possibly not done yet)
svn: r21459
2013-02-26 17:18:00 +00:00
Tim G L Lyons
ed8b6b9edf 0006410: Webcal report crashes and freezes alpha4. For python3 simply opening the file works.
svn: r21458
2013-02-26 17:14:54 +00:00
Paul Franklin
3178850a29 Python3 changes: __next__ and future division (which is not done yet)
svn: r21446
2013-02-25 18:52:45 +00:00
Nick Hall
dc671cf212 6408: python3 fix
svn: r21430
2013-02-24 13:52:56 +00:00
John Ralls
4decf95b07 [r21424]Fix Py2 file encoding errors
svn: r21425
2013-02-24 02:20:09 +00:00
Nick Hall
7c0e4e4eb4 6408: Convert Metadata Viewer from pyexiv2 to GExiv2. Move Edit Exif Metadata gramplet into gramps-addons.
svn: r21386
2013-02-23 21:04:48 +00:00
Helge Herz
808c3d1183 see issue 0006464
svn: r21385
2013-02-23 12:45:55 +00:00
Paul Franklin
71edc3e710 6478: allow setting a background color in the SVG backend
svn: r21383
2013-02-23 04:59:31 +00:00
Craig J. Anderson
c5ae536432 someone changed a lot of the
box.next
to 
box.__next__

changed these back.


svn: r21382
2013-02-22 15:56:42 +00:00
John Ralls
3578392de5 ImportGedcom: Fix Python3 "dictionary changed size during iteration" errors
svn: r21377
2013-02-19 22:06:32 +00:00
John Ralls
e62eb831f0 Import ProGen: Use python3 print syntax
svn: r21376
2013-02-19 22:06:20 +00:00
John Ralls
c2a6e0e5d7 Fix Py2 TypeError in GEDCOM export
Due to writing regular strings instead of unicode strings.

svn: r21375
2013-02-19 22:06:11 +00:00
Serge Noiraud
5e6fe3a996 Geography : print suppression
svn: r21372
2013-02-18 19:57:28 +00:00
Serge Noiraud
670592122a Geography : bug #06451 note 27413 : the ellipse become a line when it is too small
svn: r21370
2013-02-18 19:41:35 +00:00
Serge Noiraud
bf65ad1e7c Geography : bug #06466 : History change when clicking on one marker
bug #06451 : incomplete precedent patch


svn: r21368
2013-02-17 12:48:55 +00:00
Serge Noiraud
f075325399 Geography : bug #06451 : Don't see chinese characters in the geography view.
svn: r21364
2013-02-16 13:35:32 +00:00
Paul Franklin
658134e464 6448: Text Reports>Descendant Report gives an AttributeError: 'Sort' object has no attribute by_birthdate
svn: r21357
2013-02-14 23:41:35 +00:00
John Ralls
5d6e2c991a [Bug 6413] Fix importing ProGen files
This isn't a perfect fix because it requires that the ProGen file is
encoded with CP437, which is guaranteed only in Version 3.21 and later.

svn: r21355
2013-02-14 18:41:43 +00:00
Serge Noiraud
d12314ccbd Geography : bug #6442 use the good glib with introspection.
svn: r21349
2013-02-13 15:07:41 +00:00
Serge Noiraud
8ddb3711b0 Geography : replace GObject.timeout_add by glib.timeout_add as it is deprecated
svn: r21341
2013-02-12 08:33:49 +00:00
Serge Noiraud
b98ea511cc Geography : synchronize gramps and osm-gps-map for the free maps.
svn: r21321
2013-02-08 07:59:31 +00:00
Serge Noiraud
6353e06fa6 Geography : sometimes crash with unknown people or family.
svn: r21320
2013-02-08 07:57:47 +00:00
Tim G L Lyons
f568077d1e 0006411: Navweb crashes alpha4 when creating Media pages
svn: r21315
2013-02-07 16:48:45 +00:00
Tim G L Lyons
280c455eba 0003968: [NarWeb] Save/Restore settings for Narrated Website Generation. Change report_options file to be in the database directory, and implement different default report file and directory names based on the Family Tree Name. N.B. On upgrading, if you want to preserve your report_options, copy the report_option.xml file from the .gramps directory to the applicable .gramps.grampsdb.<number> directory. Also don't forget that the default options are to EXCLUDE private and living data.
svn: r21306
2013-02-05 18:07:37 +00:00
Gary Burton
2cb390881b Bug #6358. gc.DEBUG_OBJECTS removed from python3. Also handle exceptions due to collected weak references.
svn: r21298
2013-02-04 22:01:03 +00:00
Tim G L Lyons
553baa596a Fix processing of contractions, and changes to ensure code (after initial lines) for narrativeweb is the same for trunk and gramps34
svn: r21293
2013-02-04 18:23:57 +00:00
Jérôme Rapinat
9b7a34d9c0 6403: Limit and try to avoid markups in translatable messages
svn: r21289
2013-02-04 09:25:41 +00:00
Gary Burton
85ae2aca09 Fix memory leaks.
svn: r21285
2013-02-03 16:40:43 +00:00
John Ralls
fd61b21a2d GrampsLocale: Replace locale.strcoll, locale.strxfrm, and conv*_tosrtkey
With GrampsLocale.sort_key (for strxfrm and conv*_tosrtkey) and
GrampsLocale.strcoll.

If ICU is available will use the correct ICU::Collator for the locale,
otherwise falls back to locale.strxfrm -- for which it temporarily
changes the LC_COLLATE locale.

svn: r21275
2013-02-01 22:49:14 +00:00
Tim G L Lyons
fa1151ef05 Narrative web: fix tar file output and HTML encoding output support.
svn: r21258
2013-01-30 18:58:44 +00:00
John Ralls
72051dd488 GrampsLocale: Replace use of get_language_string with GrampsLocale.get_language_dict
Permits sorting by localized language name.
Also hides the language code, which the user doesn't really care about.
Removes get_language_string from libtranslate.py, no longer needed.

svn: r21236
2013-01-27 21:10:17 +00:00
Gary Burton
da7ab966d1 Bug #6371. Fix memory leak caused by hanging reference to progress meter callback method.
svn: r21225
2013-01-26 09:28:52 +00:00
Nick Hall
1200a57d53 6307: Use untranslated string in filter
svn: r21214
2013-01-24 16:47:14 +00:00
Nick Hall
a8a177d396 6360: Fix to work with new model
svn: r21212
2013-01-24 16:28:13 +00:00
Gary Burton
284ee7dce9 Bug #6255.
svn: r21201
2013-01-22 20:56:11 +00:00
John Ralls
7d9cc19ed0 Fix unhandled exception in expandersidebar
svn: r21198
2013-01-22 19:21:17 +00:00
Nick Hall
9c66c62d5c Add tagging to all primary objects
svn: r21194
2013-01-22 16:12:15 +00:00
Gary Burton
1d002b3218 Bug #6255. Wrap gzip files with TextIOWrapper to allow them to be read as text.
svn: r21177
2013-01-20 17:16:01 +00:00
John Ralls
9e09c4233f GrampsLocale: Fix another typo
svn: r21171
2013-01-19 00:56:18 +00:00
John Ralls
b0e9f158d5 GrampsLocale: Convert some late-added translations to GRAMPS_LOCALE
svn: r21170
2013-01-18 22:23:11 +00:00
Nick Hall
d189448f39 Use public interface of Gtk.TreeModel in listview code
svn: r21165
2013-01-18 18:46:09 +00:00
Nick Hall
e4c0e079e7 Remove handle and tooltip columns from models
svn: r21158
2013-01-17 21:58:53 +00:00
John Ralls
5e914292fe Fix GeoGraphyView.__init__ arg list for simplified bookmarks
svn: r21157
2013-01-17 19:49:04 +00:00
John Ralls
85a082bb6d Descendant Report: Fix changed Sort function name
svn: r21156
2013-01-17 19:48:58 +00:00
John Ralls
d9409a8998 Use IMAGE_DIR in geography.py so that map images can be found when running from source directory.
svn: r21155
2013-01-17 19:48:51 +00:00
John Ralls
b79eb50aba PdfDocGen: Report cause of failure on all exceptions
not just file open ones. Expat can raise exceptions too!

svn: r21153
2013-01-17 19:48:37 +00:00
John Ralls
e920cbfac1 GrampsLocale: Get the language code from the global translation
Instead of probing locale.getlocale() and environment variables

svn: r21151
2013-01-17 19:48:24 +00:00
John Ralls
09a875db11 GrampsLocale: Simplify the file-finding functions
Making use of the fact that GrampsLocale now knows what
encoding to use, and noting that filesystems don't use
more than one encoding to write filenames in directories.

Also specify the encoding on some more files

svn: r21148
2013-01-17 19:47:59 +00:00
John Ralls
a58ef2b73f GrampsLocale: Replace calls to sys.getfilesystemencoding
On MSWin and OSX, this call always returns the correct
value (utf-8 on OSX, 'mbcs' on MSWin), but on Linux the
return value is bizarrely dependent upon the environment.

Replace it with a GrampsLocale function which returns 'utf-8'
(the correct value for most Linux file systems) regardless of
the environment.

Also replace its use in print and write functions: It's the
encoding of paths in the filesystem, not of the files's content,
nor of the terminal's capabilities. The former is almost
always utf-8 as long as we write the file, the latter is
given by sys.stdout.encoding. Use the 'backslashreplace' error
handler to avoid exceptions when we need to output unicode
text to an ASCII terminal.

svn: r21146
2013-01-17 19:47:36 +00:00