Compare commits

...
Author SHA1 Message Date
romjerome fe18eab251 8555: Database repair tool always modify all source objects 2016-11-26 12:54:08 +01:00
romjerome 4af6dd88c2 9003: Locality data in address was not imported 2015-10-27 09:50:28 +01:00
Ζήσης Παπαδόπουλος 1ec8a8f2c3 Update Greek translation 2015-10-05 15:19:43 +02:00
Stéphane Charette 97cc0e33b4 8213: event columns too narrow
Web_Basic-Cypress stylesheet improvements
2015-04-18 16:14:40 +02:00
Matt Keenan 39f06eb4b0 8468: GuiColorOption missing avail-changed event handler 2015-03-31 10:22:09 -07:00
Jérôme Rapinat 8374e87b4d 8103: sidebar gramplet does not fit well into Event and Citation views 2015-03-19 16:08:11 +01:00
Jérôme Rapinat bacc3ee5e8 8451: Fix crash on RelGraph report with unknown gender 2015-03-19 16:06:33 +01:00
Zdeněk Hataš 54ea8eb1b7 czech translation update 2015-03-13 17:32:07 +01:00
kulath aabf8bfe6c 0008401: NameError in GEDCOM importer 2015-03-12 14:10:35 +00:00
kulath 74aa6a3341 0008322: Event address is lost on import, i.e. disconnected from event.
On GEDCOM import, Places are only merged if the Place Title and the
whole of the main location are identical.
2015-03-12 12:33:14 +00:00
kulath 0cece69ee2 Make a zip backup if schema is to be upgraded see 8134: Error converting
python2 utf-8 strings to python3 str when loading data from database
2015-03-02 17:44:31 +00:00
kulath 962d3bc488 0007824: Regression: running gramps from crontab fails 2015-03-01 16:49:56 +00:00
kulath 79942b1d00 0008380: tag_map is not initialized 2015-02-28 20:49:22 +00:00
kulath b1457f24e6 8233: Fix bad handle in explanation note for unknown event 2015-02-27 18:23:02 +00:00
kulath 71d22c61aa 0008347: GEDCOM import of embedded notes attached to media does not work 2015-02-16 22:52:38 +00:00
Jérôme Rapinat b37438204f fix typos, thank you phcook 2015-02-16 20:04:37 +01:00
noirauds e5f437ef06 geography : bug 7615 : Filter panel on geography view displays improperly 2015-02-11 21:20:31 +01:00
kulath 65523e0442 0007014: Errors handling owner/submitter information in GEDCOM files.
Only import researcher from GEDCOM or XML if the family tree was
originally empty.
2015-02-02 18:57:05 +00:00
kulath ed921b1a53 0008283: GEDCOM export does not export media attached to citations. Fix
for gramps40
2015-01-08 17:52:15 +00:00
Jérôme Rapinat 4e7cfd759f New year... 2015-01-02 10:26:06 +01:00
kulath 8117190a52 Fix 0008234: Various problems with docgen.TextDoc.add_media_object part
(2) for gramps40 branch
2014-12-15 20:34:25 +00:00
kulath 620000e863 Fix 0008234: Various problems with docgen.TextDoc.add_media_object part
(1) for gramps40 branch
2014-12-14 17:57:44 +00:00
kulath 18308f9a32 8196: Spurious spaces in CLI List Family Trees, tab delimited output.
Print statements changed to assemble the whole line before output.
2014-11-24 18:14:46 +00:00
Nick Hall 80924b9db0 7604: Fix error setting gramplet tab label 2014-11-03 21:51:40 +00:00
John Ralls 8d391f17ad 8140: Gramps doesn't work under Turkish locale
(cherry picked from commit 4662cf1cf94c3502ca8490f213b34d3d094e2d38)
2014-10-27 11:25:02 -07:00
Jérôme Rapinat fbf3835ca0 8122: DB lock not checked when opening database from the recent opened trees 2014-10-24 09:48:13 +02:00
Craig J. Anderson 4873f5245b fix for https://gramps-project.org/bugs/view.php?id=6355
Craig A.
2014-10-23 20:53:05 -04:00
Jérôme Rapinat 1d487e9fb2 8103: sidebarfilter gramplet does not fit well into People, Events, Citations or Media views (non-english locales) 2014-10-15 21:56:07 +02:00
leonhaeuser 12ebb0d6df update German translation 2014-10-13 22:05:39 +02:00
Luigi Toscano 477a0aa0a4 Italian translation updates and fixes 2014-09-28 02:01:37 +02:00
Zdeněk Hataš 4e634b4bec 8064: translation fixes 2014-09-18 12:38:06 +02:00
Zdeněk Hataš cf54b5eca7 czech translation update 2014-09-14 20:18:10 +02:00
Jérôme Rapinat 3f9b47c48e update template and french translation 2014-09-11 17:58:45 +02:00
Jérôme Rapinat 2119126685 6934: better GUI support for embeded custom attributes list on media object (backport) 2014-09-11 17:43:50 +02:00
Petr Hejl b6f77eb4e3 8051: Can't fill in calculated and estimated dates in cs locale 2014-09-11 17:28:59 +02:00
John Ralls 5b0efea92b Update OsmGpsMap to version 1.0.2
Addresses problem with retrieving tiles from OpenStreetMap.
Note as well https://gramps-project.org/bugs/view.php?id=8037
2014-09-09 16:57:33 -07:00
Paul Franklin 85f0f344ee 8014: Importing gedcom files containing multibyte UTF-8 characters fails 2014-09-01 19:05:18 -07:00
Paul Franklin b899935d54 python3 bytes-string mismatch with ICU installed 2014-08-22 18:16:40 -07:00
Paul Franklin c640067ebe tweak to "default" CSS choice for the narrated web report 2014-08-20 07:54:41 -07:00
Paul Franklin 17bca4c260 enable the "default" CSS choice for the narrated web report
Otherwise, whenever you start the report, you get this:

WARNING: _enumeratedlist.py: line 124: Value 'default' not found for option 'StyleSheet'
2014-08-17 12:47:20 -07:00
Malcom Lewis e7b5b9f213 Update FSF address to current location. 2014-08-08 19:51:28 -07:00
Jérôme Rapinat 0fb4f949a7 7258 7618: let the win() stuff to windows, fix url handling under linux and mac (not tested under mac) 2014-07-17 14:59:54 +02:00
Jérôme Rapinat 3dcdddf039 07837: Incorrect media path when using drag & drop; backport from gramps41; incomplete for non-ascii path or filename 2014-07-17 14:41:44 +02:00
Jérôme Rapinat 85fd4a8502 07837: Incorrect media path when using drag & drop; backport from gramps41; incomplete for non-ascii path or filename 2014-07-15 21:41:17 +02:00
Jérôme Rapinat 9046ea8de5 7618: Cannot drag and drop external media object with a non-ascii filename or path; missing conv_to_unicode (typo) 2014-07-15 20:40:18 +02:00
Paul Franklin 9a4bfe190e 7861: In Ahnentafel Report, Use Christening Date if no Birth Date 2014-07-11 15:38:34 -07:00
Ondrej Krc-Jediny 1a7c827aa9 7869: Various small issues in gramps.pot 2014-07-10 12:46:42 -07:00
Paul Franklin 21c00435ad 7739: [Narweb:] Missing webpage for media [under some circumstances] 2014-07-10 09:24:53 -07:00
Paul Franklin d7fac4e750 include Gramps.py in the tarball 2014-07-10 09:05:00 -07:00
Paul Franklin aa5297b476 7839: Place report does not run 2014-06-28 13:02:54 -07:00
John Ralls 23df099e41 7851: translations don't show in many labels
Ensure python text domain gets the right encoding.

(cherry picked from commit 65dbb1bd46)
2014-06-23 20:17:46 -07:00
Mirko Leonhaeuser 680301de90 Fixed 0006655 and 00078 2014-06-22 17:57:22 +02:00
Paul Franklin 99429b36c7 add translated-output option to B.R. TOC and Index reports 2014-06-14 13:37:29 -07:00
Paul Franklin 037ac5652d Fix alphabetic index and toc bug in books
Another bad indent from master commit [796240] (and gramps40 [3196f8])
2014-06-13 09:23:18 -07:00
Nick Hall 3880914e96 7471: Fix python3 sort key errors
Ensure input to strxfrm is correct type.
Apply patch by Marc Hulsman.
2014-06-12 23:28:58 +01:00
Mirko Leonhaeuser c8df231cd7 update German translation 2014-06-12 20:02:46 +02:00
Nick Hall 13a005da79 Fix alphabetic index and toc bug in books
Bad indent introduced in commit [796240].
2014-06-11 22:41:19 +01:00
Paul Franklin e7772a2c6b 7398: Gedcom import deletes first char of notes 2014-06-11 10:05:47 -07:00
Zdeněk Hataš 6dc44c3554 czech translation update 2014-06-11 08:44:49 +02:00
lklundin b9958fe62b 7794: Typo in error message 2014-06-10 11:57:13 +02:00
Paul Franklin 5454e8c19b improve plugin warning 2014-06-08 13:02:21 -07:00
Paul Franklin ce8aa53270 7678 typo 2014-06-08 12:58:46 -07:00
Jérôme Rapinat 5cfa4a015f 7678: some gir modules were not called 2014-06-07 13:26:08 +02:00
Jérôme Rapinat 6982d37427 7678: some fixes around gettext and messages handling 2014-06-07 13:06:00 +02:00
Paul Franklin fa338e85a4 7784 "IndexError: list index out of range" on [initial CLI "gramps -t"] 2014-06-05 08:01:57 -07:00
Jérôme Rapinat 6bf8a734cf 7678: typo, missing self argument on fallback for personpos_at_angle() 2014-06-04 12:13:27 +02:00
Jérôme Rapinat c8ab33fa27 7678: typo, set_border_width was set twice on CLIVbox() 2014-06-03 21:18:32 +02:00
Nick Hall 786a8f86f3 Prevent removing idle process after it has finished 2014-06-03 14:51:19 +01:00
Jérôme Rapinat 620dca433f 7766: Fan Chart views crash with self.maxperiod = self.minperiod 2014-06-03 10:34:38 +02:00
Nick Hall 02b017c402 7711: Fix tree views in python3 2014-06-02 19:48:02 +01:00
Ondrej Krc d81071a00e Git Merge Request #10: Update Slovak date handler 2014-05-30 10:15:58 +02:00
Omar Kohl 0e91e4f51d Git Merge Request #9: Spanish typo 2014-05-29 15:52:36 +02:00
Zdeněk Hataš f58fa79801 typo 2014-05-28 21:32:34 +02:00
Nick Hall f104408968 7712: Cherry-pick [321821] and [2dd0c9] from master. 2014-05-27 15:25:30 +01:00
Luigi Toscano 442663f53a Italian translation updates (4.0.x) 2014-05-27 01:45:38 +02:00
noirauds 340aabe210 BUG #0007744 : years are displayed as floating numbers 2014-05-25 11:17:35 +02:00
Nick Hall a02f76c97f Fix for python3 2014-05-24 22:22:05 +01:00
Zdeněk Hataš 004c2044c7 czech translation update 2014-05-24 23:11:58 +02:00
John Ralls 61f2de9667 Patch PIL to build with Freetype2 2014-05-23 12:11:18 -07:00
Ondrej Krc 4751c32e02 Merge Request #8: Typo fix in slovak translation 2014-05-23 14:55:38 +01:00
John Ralls 7a415c06de 7736: MacOSX Version 4.0.4-1 missing libgtkspell3 from bundle. 2014-05-22 20:23:23 -07:00
John Ralls a166d4802d Update mac build info for 4.0.4 release. 2014-05-22 11:20:51 -07:00
Jérôme Rapinat 281e06ef26 they are all fix on spacing into dialogs, remove extra lines from NEWS 2014-05-22 14:42:51 +02:00
Jérôme Rapinat 07372cf3be bump to '4.0.5' 2014-05-22 10:17:59 +02:00
Jérôme Rapinat 2506d06100 make official '4.0.4' release 2014-05-22 10:15:18 +02:00
Jérôme Rapinat 74a30ffc21 update for 4.0.4 release 2014-05-22 10:12:21 +02:00
noirauds 56efd58004 Geography: Bug #007722 : segfault in cairo.SurfaceImage.create_from_png 2014-05-20 21:34:15 +02:00
Nick Hall 928e32d030 7152: Fix error when importing database from the CLI 2014-05-20 13:27:13 +01:00
Espen Berg a2a988b62a Some more revised Norwegian Bokmål 2014-05-17 21:26:20 +02:00
Espen Berg bfaeb73d57 Some revised Norwegian bokmål translation 2014-05-17 20:35:38 +02:00
Jérôme Rapinat 806cfa696b 7706: typo, 'val' not defined on gui.viewmanager 2014-05-17 15:36:01 +02:00
Jérôme Rapinat 4bfbb4e7ca 7648: [Unit test] database dir and environment; https://gramps-project.org/bugs/view.php?id=7648#c36301 ; works on jralls' config, not yet on mine 2014-05-17 15:19:31 +02:00
Nick Hall 3e514a9798 7710: Fix crash in fan chart view when scrolling 2014-05-17 01:16:50 +01:00
Nick Hall a2dcbebd35 Fix list size in check tool 2014-05-16 23:01:49 +01:00
Nick Hall 16ed48e46d Fix resizing of widgets in dialogs
Conflicts:
	gramps/gui/glade/tipofday.glade
2014-05-16 22:14:27 +01:00
Jérôme Rapinat 969efacc33 7705: 'uni_to_gui' not called on gui.viewmanager 2014-05-16 16:29:35 +02:00
Bob Igo aka human-being 11eed32fef 7699: update and run again tools.sh; it outputs two DB files for human inspection 2014-05-16 11:49:01 +02:00
Paul Franklin c9f80fcd7b typo (unused import) 2014-05-14 11:55:42 -07:00
Paul Franklin 5aa3a419ea 5690: Can create multiple events with same Gramps-ID 2014-05-13 14:17:15 -07:00
Jérôme Rapinat 69ff7d3e26 7657: 7648: SyntaxError with python3 on 'gramps.cli.test.cli_test' 2014-05-13 18:26:20 +02:00
Jérôme Rapinat ceb58e9b88 7659: SyntaxError with python3 on 'gramps.gen.db.test.grampsdbtestbase' 2014-05-13 18:04:39 +02:00
John Ralls b198082790 7519: "Family Tree Directory Path" with accented characters
Take 2.

(cherry picked from commit b39902eab6e927a90fbce9a721d95b35f28065bd)
2014-05-12 07:30:52 -07:00
John Ralls 8b0b29c9c2 7666: ANSEL GEDCOM import messes up foreign characters
Make the ansel code strings bytestrings.
2014-05-12 07:30:01 -07:00
Paul Franklin cb1b04ac3c 5690: Can create multiple events with same Gramps-ID 2014-05-11 10:34:45 -07:00
Jérôme Rapinat 788ff005cb 7570: descendants browser doesn't expand under Ubuntu 14.04 2014-05-11 15:51:42 +02:00
donfano 405d2bbec5 7685: Correction of the LDS ordinance names in French 2014-05-11 10:32:32 +02:00
Pitxyoki aa9d6adfd2 7671: Typo on Portuguese translation for 'third grandson/daughter' 2014-05-09 12:18:46 +02:00
erikdrgm f747441024 Update Dutch translation 2014-05-08 22:18:13 +02:00
Jérôme Rapinat 5230f89a5a typo for calling conv_to_unicode on libdjango; thank you pylint 2014-05-08 17:30:53 +02:00
Human 0910e60235 7258 7665: NameError: global name 'conv_to_unicode' is not defined 2014-05-08 16:03:12 +02:00
Jérôme Rapinat b03ce38514 7649: [Unit test] gramps type, encoding and to_struct(); specific to python2 2014-05-07 20:43:54 +02:00
Jérôme Rapinat e4f7982479 7663: readonly/readwrite and 'create_id' method into 'gen/db/test/db_test.py', no more 'create_id' in the DB code 2014-05-04 17:44:00 +02:00
Jérôme Rapinat 3b03884811 update NEWS, ready for release 2014-05-04 17:00:33 +02:00
Jérôme Rapinat 455a59615b update template; consistency on translation strings 2014-05-04 16:09:47 +02:00
Paul Franklin 753eec3960 7582: Cannot remove a primary object having a new created backreference
This removes the create_id method from gen/db/write.py, since
after a recent "from __future__ import unicode_literals" (there)
it started producing unicode.  Instead the create_id method in
gen/utils/id.py is used, as its code is essentially identical,
in use in many other places -- and does not produce unicode.
2014-05-03 15:15:52 -07:00
Paul Franklin 5180925a46 use a standard string, not a unique string 2014-05-03 15:15:52 -07:00
verthezp d5d0430ab6 7662: Missing closing bracket in Web_Basic-Spruce.css 2014-05-03 17:32:51 +02:00
Jérôme Rapinat af445f1635 7648 7258: typo, io module called twice 2014-05-01 18:20:54 +02:00
Jérôme Rapinat 89907dced1 7628: Relationship calculator not displaying data 2014-04-30 20:08:51 +02:00
John Ralls 0b1a944eb9 7646: [Unit test] typo on 'gramps.gen.utils.file.py'
Replace the call with ensuring that dirname is unicode; since
TMP_DIR is guaranteed to be, os.path.join() willl return a unicode so
further conversion is unnecessary.

(cherry picked from commit 4327f6952b)
2014-04-30 07:38:28 -07:00
Jérôme Rapinat e1e18cb6f7 Revert "7638: Better support for locales falling back into U.S. English at startup"
This reverts commit 021426fc8d.
2014-04-30 09:55:54 +02:00
Jérôme Rapinat 021426fc8d 7638: Better support for locales falling back into U.S. English at startup 2014-04-30 09:53:36 +02:00
Josip 39d1ecc030 7628: Relationship calculator not displaying data 2014-04-29 16:52:27 +02:00
Jérôme Rapinat 473c613654 update template and french translation 2014-04-29 11:01:32 +02:00
Jérôme Rapinat bfa2e78131 7630: Unable to edit citations on association 2014-04-26 09:03:41 +02:00
Paul Franklin e95fc02804 fix deferred translation of dates and places, add name-format option 2014-04-25 07:55:48 -07:00
Paul Franklin 1b028fbc4a 7258 typos 2014-04-24 08:37:31 -07:00
Paul Franklin 0b4a0576a3 translate Arabic semicolon 2014-04-24 08:03:54 -07:00
Jérôme Rapinat 8e5224708c 7258: incomplete commit; https://gramps-project.org/bugs/view.php?id=7258#c35856 2014-04-24 11:37:34 +02:00
Mirko Leonhaeuser b4de594aab update German translation 2014-04-23 18:27:39 +02:00
John Ralls 72a5a00642 Make recentfiles.do_save exception safe. 2014-04-21 14:14:17 -07:00
John Ralls 50f0936914 Fix None type exception when there's no localedir. 2014-04-21 14:09:53 -07:00
Paul Franklin 8a98d800f4 7620: 'Display as' field in Name Editor reverts to Preferences default ... 2014-04-21 13:52:53 -07:00
John Ralls d5f918040c Fix indentation errors
Thanks to Paul Franklin for noticing.
2014-04-20 19:51:48 -07:00
John Ralls a4779e8c50 Remove gramps.gen.utils.file.fix_encoding()
Yet another overly complicated way to spell conv_to_unicode().
Note that unicode() and str.decode() are alternate spellings of the same function in Py2, and unicode();
note as well that this was used on strings coming from the GUI or the database, not the shell, so that
using glocale.encoding was also incorrect.
(cherry picked from commit f0ffd6e9b9)
2014-04-20 17:18:29 -07:00
John Ralls 236a031b14 Remove get_unicode_path_from_env_var(), get_unicode_path_from_file_chooser()
Two very cumbersome ways of saying conv_to_unicode().
(cherry picked from commit 55610b6f0a)
2014-04-20 17:15:11 -07:00
John Ralls 72c5c82f7d 7258: Replace os.getcwd() with gramps.gen.constfunc.get_curr_dir()
Py2 on Win32 returns a str from os.getcwd(), which doesn't work with unicode in the path.
New function get_curr_dir() uses the Windows GetCurrentDirectoryW to return a Unicode.
(cherry picked from commit ecfad157a8)
2014-04-20 17:12:50 -07:00
John Ralls 0a61b8b4bd GrampsLocale: Don't try to set self.localedir to _first.localedir if the latter path doesn't exist.
(cherry picked from commit 10921cee29)
2014-04-20 17:12:49 -07:00
John Ralls 02e43f971f 7258: Remove all instances of sys.getfilesystemencoding()
This function reliably returns a useful value only on MacOS X. On Linux it's incorrectly determined by the
locale's encoding and on Windows it always returns 'mbcs' which is correct only on FAT file systems.
(cherry picked from commit c1dcd6f59e)
2014-04-20 17:12:30 -07:00
John Ralls 583acbd438 7258: Ensure that resource paths are set correctly when they include Unicode characters.
(cherry picked from commit efa3741579)
2014-04-20 17:10:21 -07:00
Paul Franklin 425f09fd69 flag some semicolons, for translation in Arabic 2014-04-20 16:33:36 -07:00
John Ralls aaa1256762 7258: A consequence of forcing paths to unicode is that we sometimes need to explicitly decode a path to utf8 to pass to Gtk
Only in Py2, of course, since the Py3 version of PyGObject knows what to do.
2014-04-20 08:12:19 -07:00
John Ralls 7f1a57a2cd 7258: Metadata viewer: Exiv2 can't handle Windows's UTF16 pathnames
So open the file and pass the handle.
	gramps/plugins/lib/libmetadata.py
2014-04-20 08:12:18 -07:00
John Ralls 5387cd23cf 7258: MediaEditor: Ensure that pathnames are always Unicode. 2014-04-20 08:12:17 -07:00
John Ralls 3196f8c44f 7258: Work around PyCairo path issue by opening the target file first.
PyCairo, even the latest version, insists on using the 'mbcs' codec on path names on Windows.
That destroys pathnames with characters that aren't in the current default code-page.
2014-04-20 08:12:17 -07:00
Paul Franklin 4265fc1571 translate one more Arabic string 2014-04-20 07:57:41 -07:00
John Ralls 12c95e325f Correct lambda syntax for py3
Thanks to Paul Franklin for reporting it.

(cherry picked from commit fa2be88b68)
2014-04-17 14:30:21 -07:00
Jérôme Rapinat 24016274b6 revert previous template generation 2014-04-17 16:37:06 +02:00
Jérôme Rapinat a9cc79d9fd sort translations output by file location for easier diff 2014-04-17 16:34:20 +02:00
Mirko Leonhaeuser 9e3d055a9a update German translation 2014-04-16 21:10:26 +02:00
Nick Hall dcf4f9e641 Prevent MapList action warning 2014-04-16 13:48:20 +01:00
John Ralls 8fd8d8b3e9 7258: Fix a path encoding issue when upgrading the database.
(cherry picked from commit 40cc0e9091bf4c2e1e215a31658c80216c396633)
2014-04-15 15:33:59 -07:00
John Ralls 117fbe2810 Bug 7258: Work around bug in Py2Cairo 1.8.10 and earlier on Linux 2014-04-15 11:46:42 -07:00
Jérôme Rapinat a44740a2ee spacing on french translation 2014-04-14 20:03:19 +02:00
Nick Hall 814bec98c8 Fix unicode error when saving filters 2014-04-13 14:07:42 +01:00
Jérôme Rapinat 98834658b3 support comments 2014-04-12 17:50:53 +02:00
Josip e04fb106de fix size of 'Potential Merges' dialog
(cherry picked from commit 63f0dc3447)
2014-04-11 21:02:50 +02:00
Jérôme Rapinat 26230df0c8 start to update NEWS 2014-04-11 10:48:20 +02:00
Nick Hall dd1a3f5e15 Fix family editor callback 2014-04-10 18:15:18 +01:00
Nick Hall d387bfbe77 7119: Register history objects at startup 2014-04-10 17:12:21 +01:00
Zdeněk Hataš f4c871bdaf czech translation update 2014-04-10 10:21:30 +02:00
Josip 87ae25f77c ease founding of perl in windows 2014-04-10 08:29:15 +02:00
Paul Franklin 1bb5ac82da Revert "7276: translate some punctuation marks -- partial"
This reverts commit 00c26a722e.
2014-04-09 18:52:54 -07:00
Paul Franklin 00c26a722e 7276: translate some punctuation marks -- partial 2014-04-09 18:40:17 -07:00
Josip 016b779316 backport [7fdf0f] and [6836db] from master 2014-04-09 23:43:09 +02:00
Paul Franklin 659433dd82 make gramps XML the initial default export type 2014-04-08 19:24:56 -07:00
John Ralls 137e18c41a 7258: Avoid dumb encoding error when compiling gpr files 2014-04-07 12:45:17 -07:00
John Ralls ee923e3205 7588: Can not start [in Chinese on OSX]
Force UTF-8 locale on Mac
2014-04-07 11:51:54 -07:00
Mirko Leonhaeuser 1f9d479074 update German translation 2014-04-07 18:39:03 +02:00
Josip b93fb16101 7258: transcode os.path.join args from the fs enc to prevent a crash
:35653 rename family tree with python2
:35653 self.reference_map.delete
2014-04-07 00:11:44 +02:00
John Ralls d48edcdcf7 Streamline conv_to_unicode
Also handle "None" strings and change default encoding to 'utf8' so that
it works without args when converting from UI input.
2014-04-06 13:36:24 -07:00
John Ralls 3f4596ae4c Convert the database title retrieved from the GUI to a unicode. 2014-04-06 13:33:31 -07:00
John Ralls 137afef3ab Fix up some failing tests 2014-04-06 13:33:31 -07:00
John Ralls 3b8d2bbeea Delete a bunch of superflous re-encodings of path names 2014-04-06 13:33:31 -07:00
Josip d702129296 7582: [Python2] Cannot remove a person having an event reference 2014-04-06 18:26:42 +02:00
Josip a07f411548 Change use of GetEnvironmentVariableW (#7582) 2014-04-06 00:14:33 +02:00
Nick Hall 4e166d4ccd 7584: Fix update of active object after merge 2014-04-05 17:54:38 +01:00
John Ralls 4164920d67 Fix bad open flag 2014-04-04 19:44:55 -07:00
Josip e10da882fb 6548: 'Available Gramps Updates for Addons' window not on top 2014-04-05 03:02:11 +02:00
Josip 238cf389b0 fix recentfile.py to work for both py2/py3 2014-04-05 01:32:24 +02:00
Josip f607cc98ae open ==> io.open 2014-04-04 21:54:43 +02:00
Josip b240c31631 7258: transcode os.path.join args from the fs enc to prevent a crash 2014-04-04 21:49:28 +02:00
Nick Hall 0218adae42 1772: Select row on right click in embedded lists 2014-04-04 19:39:46 +01:00
Nick Hall d085f886b4 7455: Remove hover selection from embedded lists 2014-04-04 19:39:46 +01:00
Jérôme Rapinat 5cb1a82312 Update template (~4 modified/new strings) and the french translation 2014-04-04 12:43:32 +02:00
John Ralls fd0181f4e5 Correctly encode the contents of the lock file. 2014-04-03 15:50:50 -07:00
John Ralls 328bb21cee Win32: Fix crash in gramps -L when the database path includes a non-ascii character. 2014-04-03 15:50:50 -07:00
John Ralls 89fe90a1a3 Fix some errors and Py3 deprecations in cli_test.py 2014-04-03 15:10:24 -07:00
John Ralls bb8d29dea9 Test for ability to open a DB in an arbitrary Unicode path with a Unicode name.
And fix a couple of bugs that made the test fail.
2014-04-03 15:10:24 -07:00
Nick Hall 80f9a3a5c8 More informative messages in citation editor 2014-04-03 18:41:37 +01:00
Nick Hall eec38c7c73 Fix drag & drop in citation editor 2014-04-03 17:31:25 +01:00
Paul Franklin 5ae0700e4b make the export assistant slightly wider 2014-04-03 09:16:00 -07:00
Jérôme Rapinat a741108b53 typo on french translation 2014-04-02 19:03:59 +02:00
Jérôme Rapinat b39daf09b1 7572: Do not hide categorysidebar from Plugins Manager, do not try to restore hidden gramplets, typo on grampletbar (LOG.warning) 2014-04-01 12:00:10 +02:00
Jérôme Rapinat 71ac10ef4d typo: NameError: global name 'gen' is not defined 2014-04-01 11:10:35 +02:00
Jérôme Rapinat 3b23ab4602 7559: add LOG.info for displaying recursive handles for BaseObject 2014-04-01 10:32:17 +02:00
Nick Hall 9a941503e4 7137: Fix updating of events gramplets 2014-03-29 23:55:07 +00:00
Nick Hall e0f673f937 7559: Fix bug in abandon changes and quit 2014-03-29 19:56:37 +00:00
John Ralls 3f9299a9d1 Use gramps.gen.const.HOME_DIR instead of os.environ['HOME']
$HOME doesn't exist on Windows, so os.environ['HOME'] gives the wrong answer.
(cherry picked from commit 53c878aa08)
2014-03-27 11:38:26 -07:00
John Ralls 15d1d0e6d0 7258: Replace some os.environ['foo'] lookups missed earlier.
(cherry picked from commit 71650917bf)
2014-03-27 11:37:32 -07:00
John Ralls 50f514ce51 7258: Transcode FS paths to avoid a crash
The problem is really that the paths get munged into strings in the
system codepage, losing or misinterpreting most Unicode. Python's os
module is smart enough to encode the unicode to the file system
encoding, but the bsddb module needs a little help.

Provide a new function, constfunc.get_env_var(name, default=None) to
cleanly import Unicode environment variables in Windows and use it in
place of all instances of foo = os.environ['BAR] or foo =
os.environ.get('BAR').

Os path functions are smart enough to convert unicode to the file system
encoding on their own, but Db functions aren't, so provide an _encode
function in gen.db.write.py and apply it where a path is being passed to
DBEnv.open().

Also convert paths from the UI to unicode from 'utf8' rather than
sysfilesystemencoding. The latter happens to be correct most of the time
on Linux and OSX but is wrong on Windows.
2014-03-25 15:45:41 -07:00
Jérôme Rapinat 825fac0c55 7559: more accurate word for 'Undo' on french translation 2014-03-25 12:01:19 +01:00
Jérôme Rapinat d36fdb3777 6403: minor difference around bold markup between master and gramps40 branch after merging 2014-03-25 09:40:35 +01:00
Jérôme Rapinat f61dd9b250 typo on swedish translation 2014-03-25 08:51:59 +01:00
Igal Shapira b12d08cf83 Updated Hebrew translations - update to latest gramps.pot and some minor fixes 2014-03-25 08:43:21 +01:00
Jérôme Rapinat a7f6f33511 start to update NEWS 2014-03-24 16:30:44 +01:00
Helder f6dd3c349e 7544: update Brazilian Portuguese translation 2014-03-24 12:38:28 +01:00
Luigi Toscano 591bee560a update Italian translation 2014-03-24 11:16:23 +01:00
Peter Landgren 70af0666a2 update Swedish translation 2014-03-24 11:05:23 +01:00
Paul Franklin 0edd609b92 7476: Given Name Cloud Gramplet splits up given names into words 2014-03-23 18:43:01 -07:00
John Ralls a5a7126dc4 7332-Filename-Decoding-Error-in-Graphical-Reports
Don't encode the filename for output. Python does that for you.
2014-03-23 16:34:35 -07:00
Paul Franklin b059ccb359 add new gvfamilylines strings to some po files 2014-03-23 12:17:50 -07:00
Munzir Taha (منذر طه) 1bc7c6506e Update Arabic translation 2014-03-23 08:37:23 +01:00
Jérôme Rapinat bfff63d8f7 typos on french translation (spell check) 2014-03-21 18:41:11 +01:00
Pekka Valta cc40653b97 typo on Finnish translation 2014-03-21 17:19:25 +01:00
kdau ff5265605d 7501: Notes always say 'no data exists for note' when saving 2014-03-21 15:04:40 +01:00
Munzir Taha (منذر طه) 3812183a3e update Arabic translation, review plural forms 2014-03-21 12:21:15 +01:00
Pekka Valta 93b6206744 start to review plural form 2014-03-21 11:51:21 +01:00
Mirko Leonhaeuser 5c2d301619 update German translation 2014-03-20 20:02:20 +01:00
Zdeněk Hataš 3c39bd3a28 czech translation update 2014-03-20 16:38:27 +01:00
Pekka Valta a555e793e6 update Finnish translation 2014-03-19 20:35:57 +01:00
Vassilii Khachaturov 10bda16d21 RU translation update 2014-03-19 15:37:29 +02:00
Vassilii Khachaturov 7627464e58 7212: vcard: only convert non-empty BDAY to text
Discovered in #7530.
1) Previously, tests expected invalid BDAY with DD-MM-YYYY format
to be ignored. Now they are wrapped with datestr (see #7212),
and that is already covered by
 test_birthday_invalid_format_converted_to_datestr
Corrected test expectations by removing the obsolete test.
2) Test expects that an empty BDAY record won't create any
event objects. Modified import code accordingly -- we used
to create an event object without date, regression in #7212.
2014-03-19 13:34:18 +02:00
Munzir Taha ac9099434f 7539: NotRelated and Verify data dialogs appear either too small or too big 2014-03-19 09:05:16 +01:00
Jérôme Rapinat 29606b2b10 Update template and french translation, new string on gvfamilylines [37193c] 2014-03-19 08:58:49 +01:00
Paul Franklin 37193c86a0 fix translation of children count to use ngettext 2014-03-18 17:27:28 -07:00
Mirko Leonhaeuser 03c995f52f update German translation 2014-03-18 21:23:36 +01:00
Fedik 13311e0acc Update Ukrainian translation 2014-03-18 20:44:18 +02:00
Vassilii Khachaturov 25c26dcd97 7530: gen.test.constfunc_test broken in python3
Use the `in' operator rather than has_key() method to check for
environment variables in os.environ. Works on both python2 and python3.
2014-03-18 15:50:03 +02:00
John Ralls 61cdc0b54b 7519: GRAMPs unable to handle ... Path with accented characters
This replaces commit 3535f7a79f with
removing the incorrect encoding of paths with the system filesystem
encoding. Python is mostly smart enough to do that itself.

Thanks to Paul Franklin and Josip Pisoj for their help with sorting this
out.
2014-03-17 12:54:59 -07:00
John Ralls 25b4c22a30 7026: Eliminate localedir error message 2014-03-17 12:54:59 -07:00
John Ralls 1030239cce Remove some left-over diagnostic messages.
(cherry picked from commit 38aaa671cd)
2014-03-17 12:54:59 -07:00
Munzir Taha (منذر طه) 8917f7fae8 update Arabic translation 2014-03-17 19:00:37 +01:00
Jérôme Rapinat cf0e138246 7276: [e44be0] update template and french translation 2014-03-17 18:29:18 +01:00
Paul Franklin e44be07f62 7276: translate some punctuation marks -- partial 2014-03-17 08:00:18 -07:00
Jérôme Rapinat 644aab5db9 6369 Couldn't find a target for a mnemonic activation on confidence into Citation Editor 2014-03-16 11:04:14 +01:00
Jérôme Rapinat 513c328bbc 7342 5024: typo on change column into event selector 2014-03-15 21:46:32 +01:00
Jérôme Rapinat 421688464b typo on french translation 2014-03-15 21:32:32 +01:00
Jérôme Rapinat 3e6127ac17 [824195]: update translation template and french translation, new source selection and citation editor simplification, [3a56ed] 6854: spelling messages, [a8d78e] 7434: media viewer and missing path 2014-03-15 21:10:00 +01:00
Nick Hall d88eedbc27 7536: Fix bug introduced with new column order 2014-03-15 19:57:58 +00:00
Nick Hall e046804e39 Fix bug in event gramplet 2014-03-15 19:31:31 +00:00
Nick Hall 8241953765 Simplify citation editor and add source selection 2014-03-15 18:21:51 +00:00
Jérôme Rapinat efd8a5bef6 7510: do not drag and drop more than one data into editor tabs 2014-03-15 11:12:21 +01:00
Muhammad Bashir Al-Noimi 5d90ce5ce1 update Arabic translation with contributions by Munzir Taha 2014-03-13 20:17:08 +01:00
Jérôme Rapinat 5faa635e41 7530: typo on import geneweb unit test 2014-03-13 12:01:53 +01:00
Mirko Leonhaeuser 1d58cbdd10 update German translation 2014-03-11 21:05:10 +01:00
Espen Berg 11731e81d4 Some more update of Norwegian bokmål 2014-03-11 20:36:43 +01:00
John Ralls 3535f7a79f 7519: GRAMPs unable to handle ... Path with accented characters
Much worse, actually. Gramps wasn't able to handle any non-ascii
characters in any preference setting from Python2.

repr() in Py2 effectively runs "encode(val, ascii, backslashreplace)"
on its argument, and there's no way to reconstruct the string.

(cherry picked from commit 8cbb3ef014)
2014-03-08 17:56:35 -08:00
John Ralls 3a56ed8433 6854: Spelling messages at random cause hang for a few seconds.
Improve error message to conditionally explain that there is no
dictionary if that's in fact the case; otherwise log the actual
exception string.

(cherry picked from commit 2642fc5409)
2014-03-08 16:43:39 -08:00
John Ralls d8e2713912 6808: Poor contrast mouse on mouse over
Set the Gnome-standard 'Adwaita' theme, which doesn't have gray lines.

(cherry picked from commit 9c3a40f785)
2014-03-08 13:24:56 -08:00
Josip 84e164d8cc Merge branch 'maintenance/gramps40' of ssh://git.code.sf.net/p/gramps/source into gramps40 2014-03-08 21:37:50 +01:00
Josip a8d78e3edc 7434: Media viewer list crashes during start if one try to select an entry where the media isn't available 2014-03-08 21:34:36 +01:00
Josip 06e6a76e03 7435: Media Editor error if Path value was changed to a non existing file
fix media path
2014-03-08 21:29:41 +01:00
Espen Berg b87bdf7294 Some more update of Norwegian bokmål 2014-03-08 21:29:33 +01:00
Espen Berg dd206b0030 Merge branch 'maintenance/gramps40' of ssh://git.code.sf.net/p/gramps/source into gramps40 2014-03-08 21:24:53 +01:00
Espen Berg 94bb9c41b4 Some more update of Norwegian bokmål 2014-03-08 21:24:26 +01:00
Josip fe8d5bb9cd 7435: Media Editor error if Path value was changed to a non existing file 2014-03-08 17:32:19 +01:00
Jérôme Rapinat c4a7b4c064 4220: update samples; http://sourceforge.net/p/gramps/source/merge-requests/2/ 2014-03-08 16:44:15 +01:00
John Ralls b299ac2e6e Bug 6538: Collation variants do not work properly
If ICU is available, inspect the environment for $COLLATION and on
a Mac also check the AppleCollationOrder default. Pass the results
to a special ICU Locale used for sorting.

(cherry picked from commit 49cdfe3283)
2014-03-07 16:29:49 -08:00
John Ralls 9766d81bb8 Convert two common plugin errors from unhandled exceptions to warnings.
Missing translation for the current primary locale.
Import failure because of some missing dependency.

Note that these handlers can be overridded in the module itself; this is just a fallback.

(cherry picked from commit 80c58f46d3)
2014-03-07 16:29:49 -08:00
Espen Berg 05de040e82 Some more revision of Norwegian bokmål 2014-03-07 22:20:23 +01:00
John Ralls 1be36fdef9 Bug 6696: sort failure using key=glocale.sort_key
Correct the call with a lambda.
2014-03-07 12:39:58 -08:00
Jérôme Rapinat 31583b923f update template and french translation 2014-03-07 14:56:30 +01:00
John Ralls 76017ac269 Bug 7026: misleading diagnostics when locale resources aren't built
This problem is from setup.py test, so ensure that there's a 'build'
directory before running test.
2014-03-06 15:40:25 -08:00
Espen Berg 8578e39c12 Merge branch 'maintenance/gramps40' of ssh://git.code.sf.net/p/gramps/source into gramps40 2014-03-06 22:24:34 +01:00
Espen Berg f82edf8973 Some more update of Norwegian bokmål 2014-03-06 22:24:06 +01:00
John Ralls 89e394a690 Move the icu missing warning to after setting up the log handler.
(cherry picked from commit 6eb76c8af59ee15f618b44c0755bbdde4f72e222)
2014-03-06 11:25:15 -08:00
Espen Berg bd23fce194 Merge branch 'maintenance/gramps40' of ssh://git.code.sf.net/p/gramps/source into gramps40 2014-03-06 18:08:20 +01:00
Espen Berg 6b2e26b8de Some update of nb.po 2014-03-05 21:41:06 +01:00
kulath ec4c6c4cfc 6194: Database corrupted - TypeError: unhashable type: 'list'
A couple of minor changes missed off the previous commit (427ee2d)
2014-03-05 18:03:54 +00:00
Mirko Leonhaeuser 447046060f update German translation 2014-03-04 23:15:57 +01:00
Espen Berg afe59cfa99 Some update of nb.po 2014-03-04 19:52:06 +01:00
John Ralls a5179d2460 Bug 7377 - Ver 4.0.2 starts in East Asian Language
Because there is no en.po for Gramps, so the C gettext called from
GtkBuilder skips to the next translation in the list. Fix makes sure
that there is no next translation.
2014-03-04 09:56:14 -08:00
kulath 427ee2d0fd 6194: Database corrupted - TypeError: unhashable type: 'list'
Fixed upgrade to deal with sourceref in media references in Sources.
Also fixed Check and Repair to repair previously broken databases.
2014-03-04 17:39:16 +00:00
Paul Franklin f3d993be38 partly revert 7470: Upgrade to db version 17 fails in Python3 due to use of iteritems 2014-03-01 16:44:52 -08:00
Nick Hall 0618abf89c 7342: Update column order in editor event tabs 2014-02-28 17:09:04 +00:00
Nick Hall 24a8e72c2a 7342: Split details column in events gramplet 2014-02-28 15:58:06 +00:00
Nick Hall 522296fbc2 7342: Update default columns in event view
Add main participant.
Change order to be consistent with selector.
2014-02-28 15:48:07 +00:00
Nick Hall 1614ea952e 7342: Better column order in event selector 2014-02-28 15:45:20 +00:00
Nick Hall d54e57ee8d Add author column to source selector 2014-02-28 12:20:22 +00:00
John Ralls 97d1809ac7 Remove no longer needed icu repo 2014-02-26 22:02:28 -08:00
Paul Franklin dc810fc483 7276: translate some punctuation marks -- partial 2014-02-26 10:22:13 -08:00
John Ralls c503efa849 Move icu module to gtk-osx-unsupported.modules 2014-02-25 15:19:08 -08:00
Mirko Leonhaeuser e9ffd48787 update German translation 2014-02-25 22:42:49 +01:00
Vassilii Khachaturov 4182ac0c47 7097: EditNote hangs initially on misspelled note
Disable undo during the initial note text population,
so as to avoid bombardment with gtkspell-... tags for the
misspelled text.
2014-02-25 15:44:27 +02:00
TonyG a6d491df59 7498: List in Unused Objects dialog has limited space 2014-02-24 10:30:23 +01:00
John Ralls 37b589c7dc Bug 7377 Ver 4.0.2 starts in East Asian Language
Revert "GrampsLocale: Don't set  to 'C' if LANG is en_US"

This reverts commit bdd336f38e.

It turns out that Gtk's having an 'en' translation isn't the only reason
for doing this: GtkBuilder uses $LANGUAGE too, and will look for an english
translation of strings in our Glade files. Since there's no en.po or
en_US.po, it will go to the next language in the list and produce confusing
results.
2014-02-20 14:03:47 -08:00
John Ralls 62a19e4cd9 Better fix for bug 7122. 2014-02-20 14:03:47 -08:00
John Ralls 608aca8e65 Fix up grampslocale logging a bit.
Send log messages "up the chain", make maclocale a sub-log of grampslocale.
2014-02-20 14:03:47 -08:00
Jérôme Rapinat daa26b012b New strings for Geography (#7240) and Webkit 2014-02-20 16:13:54 +01:00
Paul Franklin 9b96baf643 don't warn, WebKit is not in Mac or Windows bundles 2014-02-19 19:16:33 -08:00
noirauds 16fecf125b Geography : Adding bookmarks (follow bug 7240) 2014-02-19 23:13:20 +01:00
Benny Malengier 32c312f7d9 remove stale part of install file 2014-02-19 22:02:42 +01:00
Jérôme Rapinat 62ab0dfdab 7484: Selection lists in Attribute Editor have limited space 2014-02-19 18:46:22 +01:00
Jérôme Rapinat 22ef7a0df3 566 7477: Translate 'New Style' and 'Default' on StyleEditor; update template for translation strings 2014-02-19 15:17:25 +01:00
Vassilii Khachaturov ee9151b117 7097: add UndoableStyledBuffer.undo_disabled
Refactoring away the coupling between Spell and StyleTextEditor
innards:

1) add a context manager UndoableStyledBuffer.undo_disabled
2) add a forwarding to it as StyleTextEditor.undo_disabled
3) use that in Spell.__real_set_active_spellcheck
2014-02-19 16:01:43 +02:00
Vassilii Khachaturov c81ff4bf63 7097: attaching spell checker isn't undoable
Quick-and-dirty fix removing the hang. Needs to be refactored
in order not to expose the knowledge of StyleTextEditor's
innards to Spell.
2014-02-19 16:01:36 +02:00
Vassilii Khachaturov ef10274f4e 7097: spell.py hangs on a note for tens of secods
shave off ~15s out of 40s of the hang
2014-02-19 16:01:29 +02:00
John Ralls 73c743593b Mark osmgpsmap for version 1.0.1, matching master 2014-02-18 16:47:51 -08:00
John Ralls 2866b80f24 Mark osmgpsmap for non-srcdir builds
It uses built headers, but Makefile isn't smart enough to find them in a non-srcdir build.
2014-02-18 16:46:12 -08:00
John Ralls d512f0a0d3 Bug 6784 GraphView fails to load.
Also 7168, 7169, and 7428.
Graphview won't load if libgoocanvas isn't in the bundle. D'oh.
2014-02-18 16:46:12 -08:00
Mirko Leonhaeuser 7371c8e49e fix bug 0007487 and update German translation 2014-02-18 22:02:11 +01:00
Vassilii Khachaturov e0507074ca 7117: disallow new year unless Julian or like cal
Unit test.
2014-02-18 21:17:44 +02:00
Vassilii Khachaturov 5feeb1e7f6 7117: disallow new year unless Julian or like cal
raise an exception from Date.set for a meaningless newyear parameter
Add Date.CALENDARS to reduce cut-and-paste here and with the unit test
2014-02-18 21:17:44 +02:00
noirauds e45c1158bb 0007488: After creating narrative web report, some temporary files remains in /tmp 2014-02-17 09:47:35 +01:00
Paul Franklin 88a5b002df 7477: Users should not be allowed to delete 'default' style in Style Editor 2014-02-16 12:04:29 -08:00
Paul Franklin dafdc220b7 translate some paper names, suggested in 0566 2014-02-16 12:03:55 -08:00
Paul Franklin 6f75211730 0566: Translate the "New Style" and "Default" on StyleEditor.py 2014-02-16 12:02:22 -08:00
Vassilii Khachaturov 856ba57b6e 7117: disallow new year unless Julian or like cal 2014-02-16 20:42:22 +02:00
Zdeněk Hataš 816bc10a64 czech translation update 2014-02-16 11:34:10 +01:00
Vassilii Khachaturov 1a2f079bf9 7469: ReorderIDs: global name 'gen' is not defined 2014-02-16 11:41:55 +02:00
John Ralls 893710aa3a Bug 7122 - Gramps does not start
Handle AppleCollationOrder returning an empty string
2014-02-14 17:22:05 -08:00
Éric Doutreleau e8c4adfa8c 7465: scroll window for patchname tool didn't expand 2014-02-14 16:09:06 +01:00
Marc Hulsman 08155ba962 7470: Upgrade to db version 17 fails in Python 3 due to use of iteritems 2014-02-13 18:19:48 -08:00
Paul Franklin 4fb98d5fbb encode every "style" file in utf-8 2014-02-09 13:34:49 -08:00
noirauds f024b37501 bug 7447: HTML View fails to load on Debian unstable. 2014-02-09 13:38:31 +01:00
noirauds d0cf197430 bug 7368 : os.environ['http_proxy'] gives an error if http_proxy is not set. 2014-02-09 10:56:09 +01:00
noirauds 32d2ef4b5e bug 7368 : Geography gramplet does not communicate over proxy server with autorisation. 2014-02-08 13:11:16 +01:00
Jérôme Rapinat cab29ca2b6 update Debian files 2014-02-06 15:13:39 +01:00
Tadas Masiulionis 63b38a2bab update Lithuanian translation 2014-02-06 15:05:55 +01:00
Jérôme Rapinat 2b689746a4 typos on french translation 2014-02-06 13:00:33 +01:00
Paul Franklin 8a3b884b8c 7439: pre-load alert dialogs crash w/o DISPLAY 2014-02-04 20:30:10 -08:00
Mirko Leonhaeuser f4dda4f44a update German translation 2014-02-04 22:12:12 +01:00
Jérôme Rapinat d9dc79770d tweak changes for building .deb package, test with git revision 2014-02-04 20:04:11 +01:00
Jérôme Rapinat f08e404ab3 minor change on a debian patch 2014-02-04 19:42:31 +01:00
Jérôme Rapinat 1e7498663b Merge with Ross' work on Debian upstream (http://anonscm.debian.org/gitweb/?p=collab-maint/gramps.git) 2014-02-04 19:38:10 +01:00
Tadas Masiulionis 2c56f4fbcb update Lithuanian translation 2014-02-04 19:13:44 +01:00
Jérôme Rapinat 064bc56738 update french translation 2014-02-04 19:10:40 +01:00
Pekka Valta a2c4d9bdb1 update template and finnish translation 2014-02-04 19:08:23 +01:00
Nick Hall e4d26784c0 Fix person sidebar filter 2014-02-04 15:40:23 +00:00
Nick Hall 1fbe7ea049 Add HasDayOfWeek rule 2014-02-03 22:15:30 +00:00
Nick Hall 5e8187c539 7419: HasEventBase should not include primary role 2014-02-02 16:12:00 +00:00
Nick Hall 4c51f7d033 7429: Fix bug when an empty string is used as custom type 2014-02-02 15:42:45 +00:00
Łukasz Rymarczyk 304ce468b4 Update Polish translation 2014-01-31 20:49:36 +01:00
John Ralls 156e8095dd Release 4.0.3
Includes some module updates and fixups.
2014-01-28 16:30:54 -08:00
Mirko Leonhaeuser 4c05acd065 update German translation 2014-01-28 23:24:17 +01:00
Nick Hall 4c17d90ab4 7419: Fix HasEvent filter in sidebar gramplet 2014-01-28 19:33:49 +00:00
gzsuniq bf99af4abd 7412: Edit Note window is too small 2014-01-27 19:31:22 +01:00
Jérôme Rapinat af890ff3ee 7413: COPYING file is missing into debian package 2014-01-27 18:20:42 +01:00
Jérôme Rapinat 179ae142fa bump to '4.0.4' 2014-01-27 16:44:27 +01:00
1150 changed files with 113158 additions and 86321 deletions

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# $Id$
+3 -3
View File
@@ -72,12 +72,12 @@ from the source directory.
this for you.
b) You downloaded the Gramps source code to a directory, and want to run it.
First, copy/rename the gramps/gen/const.py.in to gramps/gen/const.py.
Edit this file if needed. Now you can start Gramps from the source code
directory with
You can start Gramps from the source code directory with
python Gramps.py
See gramps/gen/const.py how Gramps finds his resource directories in case
you encounter problems.
Custom directory installation
-------------------------------------
+1 -1
View File
@@ -1,6 +1,7 @@
include AUTHORS
include COPYING
include FAQ
include Gramps.py
include INSTALL
include LICENSE
include MANIFEST.in
@@ -21,7 +22,6 @@ recursive-include windows *
# Remove files created in the build
exclude data/tips.xml
#exclude gramps/gen/const.py
exclude gramps/plugins/lib/holidays.xml
exclude po/.intltool-merge-cache
global-exclude *.pyc
+69 -17
View File
@@ -1,22 +1,74 @@
2014-05-22
Version 4.0.4, "Not the comfy chair", a maintenance release.
* Upgrade to db version 17 fails in Python 3 due to use of iteritems
* Database corrupted - TypeError: unhashable type: 'list'
* Fix bug in abandon changes and quit
* Consistency on create_id method
* Better handling for non-ASCII characters on database-path
* Better support for ANSEL characters
* 'Display as' field in Name Editor reverts to Preferences default
* Fix vcard date converter
* View does not communicate over proxy server with autorisation
* Enhanced Bookmark support
* Event gramplet filter does not have field for primary role,
* New HasDayOfWeek filter rule
* Error when leaving a Gramps type field blank in an editor
* Fix creation of events with same Gramps-ID
* Crash when opening details of a person
* Fix spacing on dialogs for some recent linux distribution
* date editor and Date class allow e.g. Hebrew dates with newyear (Mar25)
* Fix crash in fan chart view when scrolling
* Poor contrast mouse on mouse over
* Drag and drop only one data into Editors tabs
* Enhancements and consitency on events gramplet, selector and view
* Sometimes says 'no data exists for note' when saving
* Enhanced Citation Editor
* Do not always raise errors when some plugins are hidden
* Remove hover selection from embedded lists
* Fix update of active object after merge
* Cleanup on warnings and messages around locale directory
* Media Editor error if Path value was changed to a non existing file
* Register history objects at startup
* Avoid dumb encoding error when compiling gpr file
* Work around Py2Cairo
* Given Name Cloud Gramplet splits up given names into words
* Users should not be allowed to edit and delete 'default' style into Style Editor
* Filename Decoding Error in Graphical Reports
* Missing closing bracket in Web_Basic-Spruce.css
* Reorder tool: global name 'gen' is not defined
* Fix start in East Asian language, force UTF-8 locale on Mac
* Fix apple_collation
* Spelling messages at random cause hang for a few seconds.
* Media viewer list crashes during start if one try to select an entry where the media isn't available
* 'Available Gramps Updates for Addons' window not on top
* HTML View fails to load
* Paper names and Styles values are now translated
* Sort failure using glocale.sort_key
* Improve support for collation variants
* Translate some punctuation marks
* Fix unit tests and python3 issues
* Fix Relationships handler for Portuguese
* Updated translations: ar, cs, de, fi, fr, he, it, lt, nb, nl, pl, pt_BR, ru, sv, uk
2014-01-27
Version 4.0.3, "It's tomorrow, ask me now", a maintenance release.
* Fix copy via context menu on Views into Charts Category / 7399
* Fix Tab sequence in Name Editor / 6868
* Fix citations gramplet into media view / 7232
* Fix unhandled exception when inspecting media / 7348
* Fix Citation sidebar filter for python3 / 7370
* Fix add link to a "Html code" note / 7357
* Fix message on backup dialog / 6690
* Fix space for selection lists / 7331 7409
* Fix spell with myspell and LANG / 7339
* Fix changes root cursor to hand / 7336
* Recent file parser now gives the file location / 7327
* Fix vertical overflows on check and repair-tool dialog / 7316
* Fix custom key/value (data item) on Database difference report / 7209
* Fix unhandled exception in media exif information under Windows OS / 7182
* Fix person selector in searchfilter under Windows OS/ 7179
* Starting Gramps without console is now possible under Windows OS/ 7378
* Specific OS handling / 7313
* Fix copy via context menu on Views into Charts Category
* Fix Tab sequence in Name Editor
* Fix citations gramplet into media view
* Fix unhandled exception when inspecting media
* Fix Citation sidebar filter for python3
* Fix add link to a "Html code" note
* Fix message on backup dialog
* Fix space for selection lists
* Fix spell with myspell and LANG
* Fix changes root cursor to hand
* Recent file parser now gives the file location
* Fix vertical overflows on check and repair-tool dialog
* Fix custom key/value (data item) on Database difference report
* Fix unhandled exception in media exif information under Windows OS
* Fix person selector in searchfilter under Windows OS
* Starting Gramps without console is now possible under Windows OS
* Specific OS handling
* Common fixes and changes with 3.4.7.
* Updated translations: ca, de, fi, fr, ru
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
----------------------------------------------------------------------------
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id: Web_Basic-Blue.css 15540 2010-06-07 16:32:00Z robhealey1 $
#
+8
View File
@@ -248,6 +248,14 @@ table.primobjlist tr.BeginLetter td, table.primobjlist tr.BeginSurname td {
td.ColumnLetter, td.ColumnRowLabel {
font-weight: bold;
}
/* bug #8213 testing by Stephane, 2014-12-6 */
td.ColumnEvent, td.ColumnDate {
white-space: nowrap;
}
td.ColumnPlace, td.ColumnDescription {
width: 20%
}
/* end of customizations by Stephane */
td.ColumnBirth, td.ColumnDeath, td.ColumnPartner, td.ColumnParents {
font-size: 90%;
}
+1
View File
@@ -514,6 +514,7 @@ i + div.grampsstylednote p {
}
div.grampsstylednote p {
margin-bottom: 0.5em;
}
/* Subsection : Family Map
----------------------------------------------------- */
+1 -1
View File
@@ -17,7 +17,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
******************************************************
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
#
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
#
+1 -1
View File
@@ -17,7 +17,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
******************************************************
+1 -1
View File
@@ -17,7 +17,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
**************************************************************************************************
+1 -1
View File
@@ -17,7 +17,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
**************************************************************************************************
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id: $
#
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
**************************************************************************************************
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
#
+1 -1
View File
@@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
$Id$
+1 -1
View File
@@ -19,7 +19,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# $Id$
-->
+1 -1
View File
@@ -18,7 +18,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# Written by Alex Roitman
+1 -1
View File
@@ -19,7 +19,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""
update_man.py for command line documentation.
+10 -1
View File
@@ -1,4 +1,4 @@
gramps for Debian
Gramps for Debian
----------------------
This is the Debian package of the 4.0 series of GRAMPS.
@@ -7,3 +7,12 @@ It is a major update of Gramps to upgrade to GTK 3. A switch was also made to di
The 4.0 series of Gramps is being packaged for the experimental distribution until all dependencies are available
and it proves stable.
Webkit - gir1.2-webkit-3.0 crashes. Gramps has been patched disable the hidden
HTML view instead until a solution is found.
Goocanvas2 - The latest Goocanvas is not available in Debian yet. If you miss
the Graphview plugin, you could try installing the gir1.2-goocanvas-2.0-9 which
is available in Ubuntu.
-- Ross Gammon <rossgammon@mail.dk> Sat, 25 Jan 2014 18:00:00 +0100
+8 -2
View File
@@ -1,8 +1,14 @@
gramps (4.0.3) precise; urgency=low
* - 4.0.4-git.f08e40 Experimental stream gramps.git
-- Jérôme Rapinat <romjerome@yahoo.fr> Tue, 04 Feb 2014 19:49:32 +0100
gramps (4.0.2) precise; urgency=low
* experimental .deb for gramps 4.0.2
-- Jérôme Rapinat <romjerome@yahoo.fr> Wed, 04 Dec 2013 10:23:36 +0100
-- Jérôme Rapinat <romjerome@yahoo.fr> Wed, 04 Dec 2013 10:23:36 +0100
gramps (4.0.1-2) precise; urgency=low
+29 -6
View File
@@ -2,18 +2,41 @@ Source: gramps
Section: python
Priority: optional
Maintainer: Ross Gammon <rossgammon@mail.dk>
Build-Depends-Indep: libxml-parser-perl, gettext, python, intltool, python-setuptools
Build-Depends: debhelper (>= 9.0.0)
Build-Depends-Indep:
dh-linktree,
gettext,
intltool,
libxml-parser-perl,
python-all,
python-setuptools
Build-Depends:
debhelper (>= 9.0.0)
Standards-Version: 3.9.5
Vcs-Git: git://anonscm.debian.org/collab-maint/gramps.git
Vcs-browser: http://anonscm.debian.org/git/collab-maint/gramps.git
Vcs-browser: http://anonscm.debian.org/gitweb/?p=collab-maint/gramps.git
Homepage: http://www.gramps-project.org/
X-Python-Version: >= 2.7
Package: python-gramps
Architecture: all
Depends: ${python:Depends}, librsvg2-2, xdg-utils, python-gobject (>= 3.3.2), gir1.2-gtk-3.0, python-gi-cairo, python-bsddb3, ${misc:Depends}
Recommends: graphviz, python-pyicu
Suggests: fonts-freefont-ttf, gir1.2-gtkspell3-3.0, rcs, python-pil, gir1.2-goocanvas, gir1.2-webkit-3.0, gir1.2-osmgpsmap-1.0, gir1.2-gexiv2-0.4
Depends:
gir1.2-gtk-3.0,
librsvg2-2,
python-gi,
python-gi-cairo,
xdg-utils,
${misc:Depends},
${python:Depends}
Recommends:
graphviz,
libosmgpsmap-1.0-0-dev,
python-pyicu
Suggests:
fonts-freefont-ttf,
gir1.2-gexiv2-0.4,
gir1.2-gtk-gtkspell3-3.0,
python-pil,
rcs
Description: Genealogical research program
GRAMPS is an Open Source genealogy program written in Python, using
the GTK/GNOME interface. It is an extremely flexible program fitting
-7
View File
@@ -1,7 +0,0 @@
[DEFAULT]
# the default build command
#builder=debuild -i\.git -I.git
# the default branch for experimental upstream sources
upstream-branch=upstream
# the default branch for the debian patch
debian-branch=experimental
-2
View File
@@ -1,2 +0,0 @@
NEWS
README
-2
View File
@@ -1,2 +0,0 @@
usr/share/pixmaps
usr/share/mime/packages
-5
View File
@@ -1,5 +0,0 @@
AUTHORS
FAQ
NEWS
README
TODO
-3
View File
@@ -1,3 +0,0 @@
/usr/bin/
/usr/share/
/etc
+1
View File
@@ -1 +1,2 @@
# Install icon to the correct place
debian/gramps.xpm usr/share/pixmaps/
-1
View File
@@ -1 +0,0 @@
data/man/gramps.1.in
-3
View File
@@ -1,3 +0,0 @@
?package(gramps):needs="X11" section="Applications/Office"\
title="gramps" command="/usr/bin/gramps"\
icon="/usr/share/pixmaps/gramps.xpm"
-9
View File
@@ -1,9 +0,0 @@
#!/bin/sh
set -e
# Update mime database postinst
if [ -x /usr/sbin/update-mime-database ]; then
update-mime-database /usr/share/mime
fi
#DEBHELPER#
-9
View File
@@ -1,9 +0,0 @@
#!/bin/sh
set -e
# Update mime database postrm
if [ -x /usr/sbin/update-mime-database ]; then
update-mime-database /usr/share/mime
fi
#DEBHELPER#
-14
View File
@@ -1,14 +0,0 @@
#! /bin/sh
set -e
# This was added by stdeb to workaround Debian #479852. In a nutshell,
# pycentral does not remove normally remove its symlinks on an
# upgrade. Since we're using python-support, however, those symlinks
# will be broken. This tells python-central to clean up any symlinks.
if [ -e /var/lib/dpkg/info/gramps.list ] && which pycentral >/dev/null 2>&1
then
pycentral pkgremove gramps
fi
#DEBHELPER#
-3
View File
@@ -1,3 +0,0 @@
#!/bin/sh -e
# #DEBHELPER#
@@ -0,0 +1,13 @@
diff --git a/setup.py b/setup.py
index 3f702ae..9622d75 100644
--- a/setup.py
+++ b/setup.py
@@ -248,7 +248,7 @@ class install(_install):
'utils', 'resource-path')
with io.open(resource_file, 'w', encoding='utf-8',
errors='strict') as fp:
- path = os.path.abspath(os.path.join(self.install_data, 'share'))
+ path = '/usr/share'
if sys.version_info[0] < 3:
path = unicode(path)
fp.write(path)
+22
View File
@@ -0,0 +1,22 @@
diff --git a/gramps/plugins/view/htmlrenderer.py b/gramps/plugins/view/htmlrenderer.py
index c41942a..8f35b16 100644
--- a/gramps/plugins/view/htmlrenderer.py
+++ b/gramps/plugins/view/htmlrenderer.py
@@ -122,11 +122,12 @@ user_pref("general.useragent.locale, %(lang)s);
TOOLKIT = NOWEB
-try:
- from gi.repository import WebKit as webkit
- TOOLKIT = WEBKIT
-except:
- pass
+#Disable webkit as it is causing a crash in Gramps 4.0.2
+#try:
+# from gi.repository import WebKit as webkit
+# TOOLKIT = WEBKIT
+#except:
+# pass
#no interfaces present, raise Error so that options for GeoView do not show
if TOOLKIT == NOWEB :
+2
View File
@@ -0,0 +1,2 @@
0001-Correct-resource-path-in-setup.py.patch
0002-Disable-HTML-View.patch
-1
View File
@@ -1 +0,0 @@
2
+21 -9
View File
@@ -1,8 +1,8 @@
#!/usr/bin/make -f
# Remember to remove verbose option once testing is finished
DH_VERBOSE=1
export PYBUILD_NAME=python-gramps
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DH_OPTIONS=-v
%:
dh $@ --with python2
@@ -10,16 +10,28 @@ export PYBUILD_NAME=python-gramps
# Override auto test because upstream do not use the standard unittest discover
override_dh_auto_test:
# Override of auto_build to force python 3
# Override of auto_build
override_dh_auto_build:
python setup.py build
# Override of auto_install to force python 3
# Override of auto_install to remove information from package
override_dh_auto_install:
python setup.py install --root=debian/python-gramps --install-layout=deb
#dh_auto_install
# Remove duplicate copyright information
rm debian/python-gramps/usr/share/doc/gramps/COPYING
#rm $(CURDIR)/debian/python-gramps/usr/share/doc/gramps/COPYING
# Remove install file as it is not needed by package users
rm debian/python-gramps/usr/share/doc/gramps/INSTALL
#rm $(CURDIR)/debian/python-gramps/usr/share/doc/gramps/INSTALL
# Remove duplicate license information
rm debian/python-gramps/usr/share/doc/gramps/LICENSE
#rm $(CURDIR)/debian/python-gramps/usr/share/doc/gramps/LICENSE
python setup.py install --root=debian/python-gramps --install-layout=deb
# Make css style sheets and png icons non-executable
override_dh_fixperms:
dh_fixperms
chmod a-x $(CURDIR)/debian/python-gramps/usr/share/gramps/css/Web_*.css
chmod a-x $(CURDIR)/debian/python-gramps/usr/share/gramps/images/22x22/gramps*.png
chmod a-x $(CURDIR)/debian/python-gramps/usr/share/gramps/images/16x16/gramps*.png
# Avoid compressing COPYING file so that it can appear in the "About" dialog
override_dh_compress:
dh_compress -X COPYING
+1
View File
@@ -0,0 +1 @@
1.0
+1
View File
@@ -0,0 +1 @@
unapply-patches
-2
View File
@@ -1,2 +0,0 @@
shlibs:Depends=libbonobo2-0 (>= 2.4.3), libc6 (>= 2.3.2.ds1-4), libglib2.0-0 (>= 2.2.3), libgnomevfs2-0 (>= 2.4.1), libgnomevfs2-common (>= 2.4.1), liborbit2 (>= 1:2.8.0)
python:Depends=python (>= 2.3), python (<< 2.4)
+3 -2
View File
@@ -1,3 +1,4 @@
# watch control file for uscan
version=3
http://sf.net/gramps/gramps-(.+)\.tar\.gz debian uupdate
opts="dversionmangle=s/\+dfsg//g" \
http://sf.net/gramps/gramps-(.+)\.tar\.gz
+1 -1
View File
@@ -19,7 +19,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""
update_doc.py for Gramps API(s) documentation.
+764 -443
View File
File diff suppressed because it is too large. Load diff
Binary file not shown.
+12858 -12858
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -15,7 +15,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# gen/__init__.py
# $Id$
+1 -1
View File
@@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+22 -25
View File
@@ -22,7 +22,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
@@ -46,8 +46,7 @@ import sys
#
#-------------------------------------------------------------------------
from gramps.gen.recentfiles import recent_files
from gramps.gen.utils.file import (rm_tempdir, get_empty_tempdir,
get_unicode_path_from_env_var)
from gramps.gen.utils.file import rm_tempdir, get_empty_tempdir
from gramps.gen.db import DbBsddb
from .clidbman import CLIDbManager, NAME_FILE, find_locker_name
@@ -56,6 +55,7 @@ from gramps.gen.plug.report import CATEGORY_BOOK, CATEGORY_CODE, BookList
from .plug import cl_report, cl_book
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext
from gramps.gen.constfunc import conv_to_unicode
#-------------------------------------------------------------------------
#
@@ -213,7 +213,7 @@ class ArgHandler(object):
"""
if value is None:
return None
value = get_unicode_path_from_env_var(value)
value = conv_to_unicode(value, sys.stdin.encoding)
db_path = self.__deduce_db_path(value)
if db_path:
@@ -243,8 +243,7 @@ class ArgHandler(object):
"""
# Need to convert path/filename to unicode before opening
# For non latin characters in Windows path/file/user names
value = get_unicode_path_from_env_var(value)
fname = value
fname = conv_to_unicode(value, sys.stdin.encoding)
fullpath = os.path.abspath(os.path.expanduser(fname))
if fname != '-' and not os.path.exists(fullpath):
self.__error(_('Error: Import file %s not found.') % fname)
@@ -280,8 +279,7 @@ class ArgHandler(object):
return
# Need to convert path/filename to unicode before opening
# For non latin characters in Windows path/file/user names
value = get_unicode_path_from_env_var(value)
fname = value
fname = conv_to_unicode(value, sys.stdin.encoding)
if fname == '-':
fullpath = '-'
else:
@@ -364,7 +362,7 @@ class ArgHandler(object):
# Apparently it is not a database. See if it is a file that
# can be imported.
db_path, title = self.dbman.import_new_db(self.open_gui, self.user)
# Handle the "-l" List Family Trees option.
if db_path:
# Test if not locked or problematic
if not self.check_db(db_path, self.force_unlock):
@@ -375,6 +373,7 @@ class ArgHandler(object):
title = db_path
recent_files(db_path, title)
self.open = db_path
# Handle the "-L" List Family Trees in detail option.
self.__open_action()
else:
sys.exit(0)
@@ -394,7 +393,7 @@ class ArgHandler(object):
@param: climan: the manager of a CLI session
@type: CLIManager object
"""
# Handle the "-l" List Family Trees option.
if self.list:
print(_('List of known Family Trees in your database path\n'))
@@ -405,6 +404,7 @@ class ArgHandler(object):
% {'full_DB_path' : dirname, 'f_t_name' : name})
sys.exit(0)
# Handle the "-L" List Family Trees in detail option.
if self.list_more:
print(_('Gramps Family Trees:'))
summary_list = self.dbman.family_tree_summary()
@@ -416,23 +416,26 @@ class ArgHandler(object):
print(" %s: %s" % (item, summary[item]))
sys.exit(0)
# Handle the "-t" List Family Trees, tab delimited option.
if self.list_table:
print(_('Gramps Family Trees:'))
summary_list = self.dbman.family_tree_summary()
print(_("Family Tree"), end="")
if not summary_list:
sys.exit(0)
# We have to construct the line elements together, to avoid
# insertion of blank spaces when print on the same line is used
line_list = [_("Family Tree")]
for key in sorted(summary_list[0]):
if key != "Family Tree":
print("\t ", end="")
print(key, end="")
print()
if key != _("Family Tree"):
line_list += [key]
print("\t".join(line_list))
for summary in sorted(summary_list,
key=lambda sum: sum[_("Family Tree")].lower()):
print('"%s"' % summary[_("Family Tree")], end="")
line_list = [('"%s"' % summary[_("Family Tree")])]
for item in sorted(summary):
if item != _("Family Tree"):
print("\t ", end="")
print('"%s"' % summary[item], end="")
print()
line_list += [('"%s"' % summary[item])]
print("\t".join(line_list))
sys.exit(0)
self.__open_action()
@@ -549,12 +552,6 @@ class ArgHandler(object):
if family_tree_format == plugin.get_extension():
import_function = plugin.get_import_function()
import_function(self.dbstate.db, filename, self.user)
if not self.cl:
if self.imp_db_path:
return self.sm.open_activate(self.imp_db_path)
else:
return self.sm.open_activate(self.open)
#-------------------------------------------------------------------------
#
+7 -5
View File
@@ -22,7 +22,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
@@ -36,7 +36,7 @@ Module responsible for handling the command line arguments for GRAMPS.
# Standard python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
from __future__ import print_function, unicode_literals
import sys
import getopt
import logging
@@ -49,9 +49,9 @@ import logging
from gramps.gen.const import LONGOPTS, SHORTOPTS
from gramps.gen.config import config
from gramps.gen.utils.cast import get_type_converter
from gramps.gen.utils.file import get_unicode_path_from_env_var
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext
from gramps.gen.constfunc import conv_to_unicode
_HELP = _("""
Usage: gramps.py [OPTION...]
@@ -225,7 +225,8 @@ class ArgParser(object):
# -Ärik is '-\xc3\x84rik' and getopt will respond :
# option -\xc3 not recognized
for arg in range(len(self.args) - 1):
self.args[arg+1] = get_unicode_path_from_env_var(self.args[arg + 1])
self.args[arg+1] = conv_to_unicode(self.args[arg + 1],
sys.stdin.encoding)
options, leftargs = getopt.getopt(self.args[1:],
SHORTOPTS, LONGOPTS)
except getopt.GetoptError as msg:
@@ -371,7 +372,8 @@ class ArgParser(object):
# but not for non-latin characters in list elements
cliargs = "[ "
for arg in range(len(self.args) - 1):
cliargs += get_unicode_path_from_env_var(self.args[arg + 1]) + " "
cliargs += conv_to_unicode(self.args[arg + 1],
sys.stdin.encoding) + ' '
cliargs += "]"
self.errors += [(_('Error parsing the arguments'),
_("Error parsing the arguments: %s \n"
+13 -22
View File
@@ -17,7 +17,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
@@ -37,6 +37,7 @@ from __future__ import print_function
import os
import sys
import time
import io
if sys.version_info[0] < 3:
from urlparse import urlparse
from urllib2 import urlopen, url2pathname
@@ -64,7 +65,7 @@ _ = glocale.translation.gettext
from gramps.gen.db import DbBsddb
from gramps.gen.plug import BasePluginManager
from gramps.gen.config import config
from gramps.gen.constfunc import win, conv_to_unicode
from gramps.gen.constfunc import win, conv_to_unicode, UNITYPE
#-------------------------------------------------------------------------
#
# constants
@@ -217,10 +218,7 @@ class CLIDbManager(object):
retval[_("Locked?")] = _("no")
retval[_("Bsddb version")] = bsddb_version
retval[_("Schema version")] = schema_version
if sys.version_info[0] < 3:
retval[_("Family Tree")] = name.encode(glocale.getfilesystemencoding())
else:
retval[_("Family Tree")] = name
retval[_("Family Tree")] = name
retval[_("Path")] = dirpath
retval[_("Last accessed")] = time.strftime('%x %X',
time.localtime(tval))
@@ -232,8 +230,6 @@ class CLIDbManager(object):
"""
# make the default directory if it does not exist
dbdir = os.path.expanduser(config.get('behavior.database-path'))
if sys.version_info[0] < 3:
dbdir = dbdir.encode(glocale.getfilesystemencoding())
db_ok = make_dbdir(dbdir)
self.current_names = []
@@ -242,7 +238,7 @@ class CLIDbManager(object):
dirpath = os.path.join(dbdir, dpath)
path_name = os.path.join(dirpath, NAME_FILE)
if os.path.isfile(path_name):
file = open(path_name)
file = io.open(path_name, 'r', encoding='utf8')
name = file.readline().strip()
file.close()
@@ -299,8 +295,8 @@ class CLIDbManager(object):
if title is None:
name_list = [ name[0] for name in self.current_names ]
title = find_next_db_name(name_list)
name_file = open(path_name, "w")
name_file = io.open(path_name, "w", encoding='utf8')
name_file.write(title)
name_file.close()
@@ -407,10 +403,12 @@ class CLIDbManager(object):
Returns old_name, new_name if success, None, None if no success
"""
try:
name_file = open(filepath, "r")
filepath = conv_to_unicode(filepath, 'utf8')
new_text = conv_to_unicode(new_text, 'utf8')
name_file = io.open(filepath, "r", encoding='utf8')
old_text=name_file.read()
name_file.close()
name_file = open(filepath, "w")
name_file = io.open(filepath, "w", encoding='utf8')
name_file.write(new_text)
name_file.close()
except (OSError, IOError) as msg:
@@ -448,7 +446,6 @@ def make_dbdir(dbdir):
if not os.path.isdir(dbdir):
os.makedirs(dbdir)
except (IOError, OSError) as msg:
msg = conv_to_unicode(str(msg), glocale.getfilesystemencoding())
LOG.error(_("\nERROR: Wrong database path in Edit Menu->Preferences.\n"
"Open preferences and set correct database path.\n\n"
"Details: Could not make database directory:\n %s\n\n") % msg)
@@ -464,7 +461,7 @@ def find_next_db_name(name_list):
while True:
title = "%s %d" % (DEFAULT_TITLE, i)
if title not in name_list:
return title
return conv_to_unicode(title)
i += 1
def find_next_db_dir():
@@ -476,8 +473,6 @@ def find_next_db_dir():
while True:
base = "%x" % int(time.time())
dbdir = os.path.expanduser(config.get('behavior.database-path'))
if sys.version_info[0] < 3:
dbdir = dbdir.encode(glocale.getfilesystemencoding())
new_path = os.path.join(dbdir, base)
if not os.path.isdir(new_path):
break
@@ -515,12 +510,8 @@ def find_locker_name(dirpath):
"""
try:
fname = os.path.join(dirpath, "lock")
ifile = open(fname, 'rb')
ifile = io.open(fname, 'r', encoding='utf8')
username = ifile.read().strip()
# Convert username to unicode according to system encoding
# Otherwise problems with non ASCII characters in
# username in Windows
username = conv_to_unicode(username, glocale.getfilesystemencoding())
# feature request 2356: avoid genitive form
last = _("Locked by %s") % username
ifile.close()
+12 -2
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
@@ -248,6 +248,13 @@ class CLIManager(object):
_("Family Tree does not exist, as it has been deleted."))
return
if os.path.isfile(os.path.join(filename, "lock")):
self._errordialog(
_("The database is locked."),
_("Use the --force-unlock option if you are sure "
"that the database is not in use."))
return
if self.db_loader.read_file(filename):
# Attempt to figure out the database title
path = os.path.join(filename, "name.txt")
@@ -289,7 +296,10 @@ class CLIManager(object):
# apply preferred researcher if loaded file has none
res = self.dbstate.db.get_researcher()
owner = get_researcher()
if res.get_name() == "" and owner.get_name() != "":
# If the DB Owner Info is empty and
# [default] Researcher is not empty and
# database is empty, then copy default researcher to DB owner
if res.is_empty() and not owner.is_empty() and self.dbstate.db.is_empty():
self.dbstate.db.set_researcher(owner)
name_displayer.set_name_format(self.dbstate.db.name_formats)
+2 -2
View File
@@ -20,7 +20,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
#
# cli.plug.__init__
@@ -309,7 +309,7 @@ class CommandLineReport(object):
self.options_help['papers'][2] = \
[ paper.get_name() for paper in paper_sizes
if paper.get_name() != _("Custom Size") ]
if paper.get_name() != 'Custom Size' ]
self.options_help['papero'][2] = [
"%d\tPortrait" % PAPER_PORTRAIT,
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+48 -1
View File
@@ -15,7 +15,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
@@ -25,6 +25,10 @@
import os
import unittest
import re
import io
import sys
from gramps.gen.constfunc import cuni
test_ged = """0 HEAD
1 SOUR min1r.ged min 1-rec
@@ -37,6 +41,13 @@ test_ged = """0 HEAD
0 TRLR
"""
# see gramps.grampsapp.py
## hack to avoid mentioning 'utf8' encoding everywhere unicode or str is is used
if sys.version_info[0] < 3:
reload(sys)
sys.setdefaultencoding('utf8')
##
ddir = os.path.dirname(__file__)
min1r = os.path.join(ddir,"min1r.ged")
out_ged = os.path.join(ddir,"test_out.ged")
@@ -102,6 +113,42 @@ class Test(unittest.TestCase):
for fn in bogofiles:
self.assertFalse(os.path.exists(fn))
class UnicodeTest(unittest.TestCase):
@unittest.skipIf(sys.version_info[0] < 3 and sys.platform == 'win32',
"Python2 bsddb doesn't handle unicode paths")
def setUp(self):
from gramps.cli.clidbman import CLIDbManager
from gramps.gen.config import set as setconfig
from gramps.gen.dbstate import DbState
self.newpath = os.path.join(os.path.dirname(__file__),
cuni('\u0393\u03c1\u03b1\u03bc\u03c3\u03c0'))
self.newtitle = cuni('Gr\u00e4mps T\u00e9st')
os.makedirs(self.newpath)
setconfig('behavior.database-path', self.newpath)
self.cli = CLIDbManager(DbState())
def tearDown(self):
for (dirpath, dirnames, filenames) in os.walk(self.newpath, False):
for afile in filenames:
os.remove(os.path.join(dirpath, afile))
for adir in dirnames:
os.rmdir(os.path.join(dirpath, adir))
os.rmdir(self.newpath)
pass
# Test that clidbman will open files in a path containing
# arbitrary Unicode characters.
def test4_arbitrary_uncode_path(self):
(dbpath, title) = self.cli.create_new_db_cli(self.newtitle)
self.assertEquals(self.newpath, os.path.dirname(dbpath),
"Compare paths %s and %s" % (repr(self.newpath),
repr(dbpath)))
self.assertEquals(self.newtitle, title, "Compare titles %s and %s" %
(repr(self.newtitle), repr(title)))
if __name__ == "__main__":
unittest.main()
+7 -3
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
@@ -153,8 +153,6 @@ class TestUser_quiet(unittest.TestCase):
@unittest.skipUnless(MOCKING, "Requires unittest.mock to run")
class TestUser_progress(unittest.TestCase):
_progress_begin_step_end = \
TestUser_quiet.test_progress_can_begin_step_end.__func__
def setUp(self):
self.user = user.User()
@@ -186,5 +184,11 @@ class TestUser_progress(unittest.TestCase):
pass
self.assertTrue(MockEP.called)
def _progress_begin_step_end(self):
self.user.begin_progress("Foo", "Bar", 0)
for i in range(10):
self.user.step_progress()
self.user.end_progress()
if __name__ == "__main__":
unittest.main()
+1 -1
View File
@@ -15,7 +15,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
#
+1 -1
View File
@@ -15,7 +15,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# gen/__init__.py
# $Id$
+3 -2
View File
@@ -19,7 +19,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
@@ -145,7 +145,7 @@ register('behavior.max-sib-age-diff', 20)
register('behavior.min-generation-years', 13)
register('behavior.owner-warn', False)
register('behavior.pop-plugin-status', False)
register('behavior.recent-export-type', 1)
register('behavior.recent-export-type', 3)
register('behavior.spellcheck', False)
register('behavior.startup', 0)
register('behavior.surname-guessing', 0)
@@ -214,6 +214,7 @@ register('interface.grampletbar-close', False)
register('interface.height', 500)
register('interface.ignore-gexiv2', False)
register('interface.ignore-osmgpsmap', False)
register('interface.ignore-webkit', False)
register('interface.lds-height', 450)
register('interface.lds-width', 600)
register('interface.location-height', 250)
+21 -30
View File
@@ -18,7 +18,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
@@ -44,7 +44,7 @@ import uuid
#
#-------------------------------------------------------------------------
from .git_revision import get_git_revision
from .constfunc import get_env_var, conv_to_unicode
#-------------------------------------------------------------------------
#
# Gramps Version
@@ -88,28 +88,18 @@ APP_VCARD = ["text/x-vcard", "text/x-vcalendar"]
#
#-------------------------------------------------------------------------
if 'GRAMPSHOME' in os.environ:
USER_HOME = os.environ['GRAMPSHOME']
USER_HOME = get_env_var('GRAMPSHOME')
HOME_DIR = os.path.join(USER_HOME, 'gramps')
elif 'USERPROFILE' in os.environ:
USER_HOME = os.environ['USERPROFILE']
USER_HOME = get_env_var('USERPROFILE')
if 'APPDATA' in os.environ:
HOME_DIR = os.path.join(os.environ['APPDATA'], 'gramps')
HOME_DIR = os.path.join(get_env_var('APPDATA'), 'gramps')
else:
HOME_DIR = os.path.join(USER_HOME, 'gramps')
else:
USER_HOME = os.environ['HOME']
USER_HOME = get_env_var('HOME')
HOME_DIR = os.path.join(USER_HOME, '.gramps')
# Conversion of USER_HOME to unicode was needed to have better
# support for non ASCII path names in Windows for the Gramps database.
if sys.version_info[0] < 3:
if not isinstance(USER_HOME, unicode):
USER_HOME = unicode(USER_HOME, sys.getfilesystemencoding())
if not isinstance(HOME_DIR, unicode):
HOME_DIR = unicode(HOME_DIR, sys.getfilesystemencoding())
else:
pass
VERSION_DIR = os.path.join(
HOME_DIR, "gramps%s%s" % (VERSION_TUPLE[0], VERSION_TUPLE[1]))
@@ -125,7 +115,7 @@ THUMB_NORMAL = os.path.join(THUMB_DIR, "normal")
THUMB_LARGE = os.path.join(THUMB_DIR, "large")
USER_PLUGINS = os.path.join(VERSION_DIR, "plugins")
# dirs checked/made for each Gramps session
USER_DIRLIST = (HOME_DIR, VERSION_DIR, ENV_DIR, TEMP_DIR, THUMB_DIR,
USER_DIRLIST = (USER_HOME, HOME_DIR, VERSION_DIR, ENV_DIR, TEMP_DIR, THUMB_DIR,
THUMB_NORMAL, THUMB_LARGE, USER_PLUGINS)
#-------------------------------------------------------------------------
@@ -134,19 +124,20 @@ USER_DIRLIST = (HOME_DIR, VERSION_DIR, ENV_DIR, TEMP_DIR, THUMB_DIR,
# above this one, and that the plugins directory is below the root directory.
#
#-------------------------------------------------------------------------
ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(
__file__), os.pardir))
if sys.version_info[0] < 3:
# test for sys.frozen to detect a py2exe executable on Windows
if hasattr(sys, "frozen"):
ROOT_DIR = os.path.abspath(os.path.dirname(
unicode(sys.executable, sys.getfilesystemencoding())))
else:
ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(
unicode(__file__, sys.getfilesystemencoding())), os.pardir))
# test for sys.frozen to detect a py2exe executable on Windows
#VERSION += get_git_revision(ROOT_DIR)
VERSION += "-1"
if sys.version_info[0] < 3 and hasattr(sys, "frozen"):
ROOT_DIR = os.path.abspath(os.path.dirname(unicode(sys.executable)))
else:
ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(
conv_to_unicode(__file__)), os.pardir))
sys.path.insert(0, ROOT_DIR)
git_revision = get_git_revision(ROOT_DIR)
if sys.platform == 'win32' and git_revision == "":
git_revision = get_git_revision(os.path.split(ROOT_DIR)[1])
VERSION += git_revision
#VERSION += "-1"
#
# Glade files
@@ -203,7 +194,7 @@ GTK_GETTEXT_DOMAIN = 'gtk30'
#
#-------------------------------------------------------------------------
COPYRIGHT_MSG = "© 2001-2006 Donald N. Allingham\n" \
"© 2007-2014 The Gramps Developers"
"© 2007-2015 The Gramps Developers"
COMMENTS = _("Gramps (Genealogical Research and Analysis "
"Management Programming System)\n"
"is a personal genealogy program.")
+64 -7
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
@@ -34,6 +34,8 @@ perform a translation on import, eg Gtk.
#------------------------------------------------------------------------
import platform
import sys
import ctypes
import os
#-------------------------------------------------------------------------
#
@@ -53,20 +55,26 @@ WINDOWS = ["Windows", "win32"]
#python 2 and 3 support, use correct conversion to unicode
if sys.version_info[0] < 3:
conv_to_unicode = unicode
conv_to_unicode_direct = unicode
STRTYPE = basestring
UNITYPE = unicode
else:
def conv_to_unicode(x, y):
if isinstance(x, str):
return x
else:
return x.decode(y)
conv_to_unicode_direct = str
STRTYPE = str
UNITYPE = str
cuni = conv_to_unicode_direct
def conv_to_unicode(x, y='utf8'):
return x if x is None or isinstance(x, UNITYPE) else cuni(x, y) if y else cuni(x)
def uni_to_gui(x):
'''
In Py2 we need to convert strings to utf8 before passing them to
Gtk functions.
'''
if sys.version_info[0] < 3 and isinstance(x, UNITYPE):
return x.encode('utf8')
else:
return x
# handle in database is bytes, while internally Gramps wants unicode for py3
if sys.version_info[0] < 3:
@@ -159,3 +167,52 @@ def mod_key():
return "<ctrl>"
return "<alt>"
# Python2 on Windows munges environemnt variables to match the system
# code page. This breaks all manner of things and the workaround
# though a bit ugly, is encapsulated here. Use this to retrieve
# environment variables if there's any chance they might contain
# Unicode, and especially for paths.
# Shamelessly lifted from http://stackoverflow.com/questions/2608200/problems-with-umlauts-in-python-appdata-environvent-variable, answer 1.
def get_env_var(name, default=None):
'''
Python2 on Windows can't directly read unicode values from
environment variables. This routine does so using the native C
wide-character function.
'''
if not name or not name in os.environ:
return default
if sys.version_info[0] < 3 and win():
name = unicode(name) # make sure string argument is unicode
n = ctypes.windll.kernel32.GetEnvironmentVariableW(name, None, 0)
if n==0:
return default
# n is number of codepoints
buf = ctypes.create_unicode_buffer(n+1)
ctypes.windll.kernel32.GetEnvironmentVariableW(name, buf, n)
return buf.value
return os.environ[name]
def get_curr_dir():
'''
In Python2 on Windows, os.getcwd() returns a string encoded with
the current code page, which may not be able to correctly handle
an arbitrary unicode character in a path. This function uses the
native GetCurrentDirectory function to return a unicode cwd.
'''
if not (sys.version_info[0] < 3 and win()):
return os.getcwd()
n = ctypes.windll.kernel32.GetCurrentDirectoryW(0, None)
if n == 0:
return None
buf = ctypes.create_unicode_buffer(n+1)
ctypes.windll.kernel32.GetCurrentDirectoryW(n, buf)
return buf.value
+1 -1
View File
@@ -15,7 +15,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
#
+11 -9
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
#
@@ -165,8 +165,10 @@ class DateParserCZ(DateParser):
}
quality_to_int = {
'přibližně' : Date.QUAL_ESTIMATED,
'odhadované' : Date.QUAL_ESTIMATED,
'odh.' : Date.QUAL_ESTIMATED,
'vypočteno' : Date.QUAL_CALCULATED,
'vypočtené' : Date.QUAL_CALCULATED,
'vyp.' : Date.QUAL_CALCULATED,
}
@@ -237,14 +239,14 @@ class DateDisplayCZ(DateDisplay):
return date.get_text()
elif start == Date.EMPTY:
return ""
elif mod == Date.MOD_NONE:
date_decl_string = self.display_cal[cal](start)
date_decl_string = date_decl_string.replace("den ", "dna ")
date_decl_string = date_decl_string.replace("or ", "ora ")
date_decl_string = date_decl_string.replace("en ", "na ")
date_decl_string = date_decl_string.replace("ad ", "adu ")
date_decl_string = date_decl_string.replace("ec ", "ce ")
return date_decl_string
# elif mod == Date.MOD_NONE:
# date_decl_string = self.display_cal[cal](start)
# date_decl_string = date_decl_string.replace("den ", "dna ")
# date_decl_string = date_decl_string.replace("or ", "ora ")
# date_decl_string = date_decl_string.replace("en ", "na ")
# date_decl_string = date_decl_string.replace("ad ", "adu ")
# date_decl_string = date_decl_string.replace("ec ", "ce ")
# return date_decl_string
elif mod == Date.MOD_SPAN:
dat1 = self.display_cal[cal](start)
dat2 = self.display_cal[cal](date.get_stop_date())
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
#
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -17,7 +17,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -18,7 +18,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
#
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
#
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
#
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Portuguese version translated by Duarte Loreto <happyguy_pt@hotmail.com>, 2007.
# Based on the Spanish file.
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+5 -7
View File
@@ -16,11 +16,9 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
"""
Slovak-specific classes for parsing and displaying dates.
"""
@@ -61,7 +59,7 @@ class DateParserSK(DateParser):
calendar_to_int = {
'gregoriánsky' : Date.CAL_GREGORIAN,
'g' : Date.CAL_GREGORIAN,
'juliánský' : Date.CAL_JULIAN,
'juliánsky' : Date.CAL_JULIAN,
'j' : Date.CAL_JULIAN,
'hebrejský' : Date.CAL_HEBREW,
'h' : Date.CAL_HEBREW,
@@ -71,7 +69,7 @@ class DateParserSK(DateParser):
'r' : Date.CAL_FRENCH,
'perzský' : Date.CAL_PERSIAN,
'p' : Date.CAL_PERSIAN,
'swedish' : Date.CAL_SWEDISH,
'švédsky' : Date.CAL_SWEDISH,
's' : Date.CAL_SWEDISH,
}
@@ -112,9 +110,9 @@ class DateDisplaySK(DateDisplay):
"júl", "aug", "sep", "okt", "nov", "dec" )
calendar = (
"", "juliánský", "hebrejský",
"", "juliánsky", "hebrejský",
"republikánsky", "perzský", "islamský",
"swedish"
"švédsky"
)
_mod_str = ("", "pred ", "po ", "okolo ", "", "", "")
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
#
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
#
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -17,7 +17,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
#
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -15,7 +15,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -15,7 +15,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -17,7 +17,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
@@ -18,7 +18,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -15,7 +15,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# gen/db/__init__.py
# $Id$
+1 -1
View File
@@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# gen/db/backup.py
# $Id$
+1 -7
View File
@@ -17,7 +17,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
@@ -87,12 +87,6 @@ class DbReadBase(object):
"""
raise NotImplementedError
def create_id(self):
"""
Create an id
"""
raise NotImplementedError
def db_has_bm_changes(self):
"""
Return whethere there were bookmark changes during the session.
+1 -1
View File
@@ -15,7 +15,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# $Id$
+1 -1
View File
@@ -15,7 +15,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# gen/db/cursor.py
# $Id$
Loaded 100 of 1150 files, more files were not shown because too many files have changed in this diff. Show more