Compare commits

...

466 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
Jérôme Rapinat 828a14c43e make official '4.0.3' release 2014-01-27 16:40:41 +01:00
Jérôme Rapinat 1710e7a515 update for 4.0.3 release 2014-01-27 16:08:18 +01:00
Jérôme Rapinat a28325eb64 6519: 3 new strings around event roles on filter rules [aedc45] 2014-01-27 15:31:08 +01:00
Nick Hall aedc453452 6519: Add primary role option to event filter 2014-01-26 16:35:57 +00:00
Jérôme Rapinat b34391ec2f 7399: Cannot copy via context menu on Views into Charts Category 2014-01-26 12:11:12 +01:00
Jérôme Rapinat 30a5c27c3d 6868: Tab sequence in Name Editor causes an error 2014-01-26 10:35:15 +01:00
Jérôme Rapinat df40640b17 7183: two new strings for a new filter rule 2014-01-25 21:20:19 +01:00
Nick Hall e1bdb17230 7183: Fix source note citation filter 2014-01-25 19:50:34 +00:00
Jérôme Rapinat 23be452169 7388: Clicking on www link in Welcome Gramplet when detached causes crash 2014-01-25 19:11:13 +01:00
Pekka Valta 0ea428bad4 Update finnish translation 2014-01-25 19:00:21 +01:00
Jérôme Rapinat 93398f416b 7232: 'TreePath' has no len(); str(TreePath) can have a len()... 2014-01-25 14:54:00 +01:00
Jérôme Rapinat 6a9d1897cb Merge branch 'maintenance/gramps40' of ssh://git.code.sf.net/p/gramps/source into gramps40 2014-01-24 15:51:22 +01:00
BennyP a0cc917cda 7409 7331: Selection lists do not expand for some edit dialogs 2014-01-24 15:50:32 +01:00
Mirko Leonhaeuser 1753a098d1 update German translation 2014-01-23 22:16:11 +01:00
Nick Hall faad965522 Make event groups consistent with event type menu 2014-01-23 19:23:27 +00:00
Jérôme Rapinat 13f1cb0f20 Minor improvements 2014-01-23 16:55:02 +01:00
Nick Hall e0d8b923bf 5123: Fix bug in associations filter 2014-01-22 16:15:47 +00:00
Jérôme Rapinat 288ef11d22 7361: Do not save column order if there is not at least one column 2014-01-22 14:45:25 +01:00
Mirko Leonhaeuser 217e1a0736 update German translation 2014-01-22 00:25:38 +01:00
Jérôme Rapinat 79680cb547 5775: rebuild template (one new string) and make french translation more consistent 2014-01-21 21:01:55 +01:00
Theophraste 15062a2d0f 5775: ID reorder tool doesn't update citation IDs
reapplied from gramps34
2014-01-21 21:50:57 +02:00
Josip 6286d938d3 7378: Starting Gramps without console not possible 2014-01-21 19:41:55 +01:00
Josip 24b65ca5ed 7313: 'utf8' codec can't decode byte 0xa0 in position 6: invalid start byte 2014-01-21 19:08:11 +01:00
Vassilii Khachaturov d6db8c46bd RU: translation update - back-merge from master
2 fuzzies resolved
2014-01-21 17:23:41 +02:00
Jérôme Rapinat 26896bf2e4 7404: update docstring 2014-01-21 15:37:49 +01:00
Vassilii Khachaturov e62cedd343 7317,7360: also use 'value-changed' signal
With gtk3 controls, the day/year changes aren't caught otherwise
2014-01-21 16:08:20 +02:00
Vassilii Khachaturov b27082b20b 7360: Calendar conversion broken in date editor
Port my fix from gramps34: [ecdcca] [aa9deb]
The enable/disable code behaves worse under gtk3, need further polish
(this is not related to the current fix). Sometimes the changes
to the d/m/y edit fields don't fire the "changed" signal with the
UI value seen by build_date_from_ui
2014-01-21 12:25:42 +02:00
Nick Hall b60ea170bf Fix bugs in the test case generator 2014-01-21 00:05:03 +00:00
Jérôme Rapinat bdc350a14d try to keep consistency on URLS with LANG code (french and GrampsDisplay) 2014-01-19 16:07:20 +01:00
Jérôme Rapinat 5b3594766f typo on message layer 2014-01-19 15:41:20 +01:00
Jérôme Rapinat 8fcd507390 One ignored translation string on FanChart view 2014-01-19 15:31:06 +01:00
Jérôme Rapinat 76ed68bd29 update finnish translation (by Pekka Valta) 2014-01-18 12:19:02 +01:00
Jérôme Rapinat 071fead878 7370: entries were set twice 2014-01-17 21:14:14 +01:00
Doug Blank 676a39ce9c 6690: Not being able to write a .gramps produces a scary message about DB corruption 2014-01-17 07:43:39 -05:00
Jérôme Rapinat 4111214e01 7370: Citation sidebar filter raises unicode exception with python3 2014-01-17 12:40:41 +01:00
Jérôme Rapinat e80d56303e 7134: fit encoding selector dialog 2014-01-17 12:16:44 +01:00
Jérôme Rapinat f8a7cdb86d Fix typo on urls (french translation) 2014-01-17 11:06:46 +01:00
Jérôme Rapinat 5b73a01ca7 Update About dialog (2013 -> 2014) 2014-01-17 10:48:45 +01:00
Jérôme Rapinat 7456d9e56b Update Template (around 10 new strings) and french translation 2014-01-17 10:42:19 +01:00
Jérôme Rapinat bfc05b2f8d Use sgettext for handling context (english locale) 2014-01-16 15:00:19 +01:00
Benny Malengier 9d4fdd0646 7157: better support for objects having citations as subobjects 2014-01-15 09:31:49 +01:00
Jérôme Rapinat 997b2683d5 7331: Events and Children selectors don't use all available space of dialog box; 3.6 < gtk+ < 3.10; patch by BennyP (missing on author list) 2014-01-15 09:12:34 +01:00
Mirko Leonhaeuser d7502ebf4f Update German translation 2014-01-14 22:22:34 +01:00
John Ralls d1034c5c41 Bug 7363: file-not-found exception when generating narrative web
document.png is in images/ not images/webstuff/

(cherry picked from commit 3b3a0338a3)
2014-01-07 10:31:15 -08:00
Vassilii Khachaturov 1a429ca644 l10n: need to disambiguate "New" at least for RU 2014-01-07 17:41:00 +02:00
Doug Blank 5fd1963855 7357: Adding link to a "Html code" note using the "Link" button has no effect 2014-01-07 10:35:30 -05:00
Doug Blank bc79cdf5db Missing file for narrative web 2014-01-07 10:34:05 -05:00
Nick Hall 8f004f0215 Enhance event type selector to use sub-menus 2014-01-06 19:36:31 +00:00
Nick Hall 8fe92e9b3f Add custom types to selection widgets 2014-01-06 19:36:31 +00:00
Josip a53bdad4bf 7339: Spell: Gramps crashes if myspell folder doesn't contain files for
the currently used LANG

With patch works like:
* default to dictionary in system locale if exist (language Gramps use)
* if no system-locale dictionary default to English dictionary if exist but
	allow selection of any other installed one
* if both English and system-locale dictionary is not available,
	disable spellchecking
2014-01-06 19:46:24 +01:00
Jérôme Rapinat 7544d66cb1 5024: add 'Last Change' column on selectors, when missing 2014-01-06 17:33:58 +01:00
Vassilii Khachaturov 2e3724f2f3 7336: Gramps changes root cursor to hand
Following the suggestion from QuLogic, change get_root_window
to get_window for the set_cursor scope, like in my #6740 fix.
2014-01-04 21:20:55 +02:00
Mirko Leonhaeuser 9b45e7652f update German translation 2014-01-02 11:45:41 +01:00
Nick Hall c0c318e2e5 7340: Performance improvement in ancestor filter 2013-12-31 17:40:26 +00:00
Vassilii Khachaturov 46eee8a252 7172: more meaningful LOG warning plug/utils.py
Reapply [5c467c] from gramps34
2013-12-30 11:10:19 +02:00
Vassilii Khachaturov 38826b6946 6380: GEDCOM export error for family _UID
Port gramps34 [429c18]
    Applying patch from 2013-12-24 by Enno Borgsteede,
    fixing attribute processing on the path that handled _UID
    and adding another extension, _FSFTID.
2013-12-30 11:03:28 +02:00
Jérôme Rapinat 67d2a8e5f8 Small correction on finnish translation (by Pekka Valta) 2013-12-29 17:57:45 +01:00
Mirko Leonhaeuser 45591f205d updated German translation and corrected Bar-Mizwa and Bat-Mizwa 2013-12-29 01:18:22 +01:00
Mirko Leonhaeuser 850be1f75a update German translation 2013-12-29 00:42:33 +01:00
Vassilii Khachaturov 487b779a90 7327: friendlier diagnostics during parsing
In preparation for fixing the bug, discovered minor glitches
in the open/lock/close logic on error paths. Using the RAII syntax
for xml_file and removing redundant unlock-before-close.

The parse errors now have friendlier verbiage, give action suggestions,
and point to the actual file location for better usability and
maintainability.
2013-12-26 19:42:59 +02:00
Nick Hall ce5de0bbb2 7333: Reduce number of columns in LDS temple selector 2013-12-26 17:36:14 +00:00
Vassilii Khachaturov 1fb8959585 remove stray debugging print
discovered by running under py3 which balked at an old-style print :-)
2013-12-26 18:59:33 +02:00
Vassilii Khachaturov 1e256c6443 6955: warn on non-primary surnames not exported
reapply from gramps34
2013-12-26 17:44:32 +02:00
Jérôme Rapinat e724894bd7 7316: use ellipsize at the begining adjusts text and make missing media dialog more fit 2013-12-23 14:22:30 +01:00
Vassilii Khachaturov 928346c1cc 7317: DateEdit statusbar to report invalid dates
Port [6b0b9f] from gramps34
    Add/remove an explanatory prompt on the statusbar along
    with disabling/enabling the "OK" button when the date
    is invalid.
2013-12-21 23:11:54 +02:00
Vassilii Khachaturov 4aa3de0aec 7317: DateEdit statusbar to report invalid dates
Port [0c80c5] from gramps34
    add the status bar to the date editor dialog
2013-12-21 23:05:51 +02:00
Vassilii Khachaturov 62207a98d0 ignore test/data 2013-12-21 22:56:41 +02:00
Doug Blank d3056d33f5 unicode literals for {} formats 2013-12-20 12:02:41 -05:00
Doug Blank 6ad2ec26f7 Added unicode_literals; thanks Nick 2013-12-20 11:18:59 -05:00
Vassilii Khachaturov 1e908f8acc add specific help links for person/name editor 2013-12-19 19:46:08 +02:00
Jérôme Rapinat 8766d9a099 7147 7001: Merge person dialog does not properly adjust context section after expand 2013-12-17 15:12:30 +01:00
Vassilii Khachaturov 2b83de38fd 7229: change active person upon a bookmark select
Port the more general fix [c7c0b2]^..[6caf08] from gramps34.
2013-12-16 21:54:04 +02:00
Doug Blank db79b0bd32 Fix for deleting tags in people model; fix for calendar graphical report when too many 2-line entries in day 2013-12-15 10:25:40 -05:00
Vassilii Khachaturov 04d69928b9 7288/7290: port image_dpi legacy gtk code to gtk3 2013-12-15 15:06:17 +02:00
Jérôme Rapinat bbcefae24e 7286: gir1.2-webkit-3.0 and others gir1.2-dependencies for debian package 2013-12-15 12:55:15 +01:00
Vassilii Khachaturov 37f4b411e3 7288/7290: image_dpi and cropping fixes for ODFdoc
Port my fixes based on the patch from Matthias Basler from gramps34
[2eca30] 7290: use simpler math in image_dpi
[2f5e22] 7290: align warning with the image_dpi fix logic
[36f84e] 7290: image_dpi default calc based on gtk.gdk
[161ce3] 7290: ImgManip.image_dpi shouldn't return None
[460e63] 7288/7290 refactor out crop_percentage_to_pixel
[a8a38f] 7288/7290 refactor out crop_percentage_to_subpixel
[0d61bb] 7288/7290: refactor fix from matthiasbasler
[088146] rm relict RCS kwd
[76df5d] 7288/7290: image cropping fixes in ODFDoc

Using legacy gtk interface in image.py at the moment, need to port
to the new style.

Tested with python2.
2013-12-14 23:12:18 +02:00
Vassilii Khachaturov b1c1466a15 7229: change active person upon a bookmark select
Reapply my fix [88d2a2] from gramps34.
2013-12-14 17:57:47 +02:00
Vassilii Khachaturov de4517dbc5 6921: Use "Bat Mitzvah" as the en_US event name
Port [109549] from gramps34
p3/3: related msgid changes in the POT
2013-12-14 17:11:29 +02:00
Vassilii Khachaturov 8643f248fb 6921: Use "Bat Mitzvah" as the en_US event name
Port [4f86a3] from gramps34
p2/3: related msgid changes in the translaion DBs
2013-12-14 17:10:17 +02:00
Vassilii Khachaturov bd29c4739e 6921: Use "Bat Mitzvah" as the en_US event name
Port [0021e8] from gramps34:
p1/3: actual change in the code. Note that the abbreviation
also has to be changed accordingly.
2013-12-14 17:05:29 +02:00
Vassilii Khachaturov 665328654e 7300: "Add citation" missing in pop-up menu 2013-12-14 16:33:33 +02:00
Jérôme Rapinat 2e6186a53d Update Finnish translation (by Pekka Valta) 2013-12-12 17:47:00 +01:00
Mirko Leonhaeuser de4e7a99b2 update German translation 2013-12-11 21:04:21 +01:00
Jérôme Rapinat aa49025c38 update template (new strings on import, modified string on listview), merge finnish and french translations with new template, update french translation 2013-12-11 10:11:48 +01:00
Jérôme Rapinat 74a630f947 update Finnish translation (by Pekka Valta) 2013-12-11 09:59:50 +01:00
Vassilii Khachaturov 9315c69886 7086: "Remove selected items?" inconsistent YES/NO 2013-12-05 17:07:16 +02:00
Vassilii Khachaturov 5ff531d09e 7273: imprecise l10n of 'before' as 'перед' in RU 2013-12-05 16:25:09 +02:00
Jérôme Rapinat 5c8781dc86 http://www.gramps-project.org/wiki/index.php?title=Debian http://sourceforge.net/projects/gramps/files/Unstable/ 2013-12-04 12:24:30 +01:00
Mirko Leonhaeuser a038cc0432 update German translation 2013-12-03 20:11:45 +01:00
Jérôme Rapinat 2f190df9d5 python2 for python-gramps-4.0.x; python3 for python-gramps-4.1.x 2013-12-03 17:14:10 +01:00
Jérôme Rapinat a10a9af0e2 Merge experimental python3 support (Ross Gammon - Debian packaging) 2013-11-30 11:04:54 +01:00
Jérôme Rapinat f862478404 6918: try to limit lintian messages by merging Ross Gammon's work on Debian packaging 2013-11-30 10:42:47 +01:00
Vassilii Khachaturov 188ad41592 7256: extra spaces in HTML GV labels 2013-11-28 23:11:11 +02:00
noirauds 2972b0d9c0 Geography : bug7240 : create a bookmark via GeoEvents leads to an empty link 2013-11-27 21:21:58 +01:00
Doug Blank 33c9e7e043 Revert changes for 7231; didn't fix main issue 2013-11-27 12:50:17 -05:00
Vassilii Khachaturov 29ebeb47a2 use logging.warning in old cases in this file, too 2013-11-27 18:02:57 +02:00
Vassilii Khachaturov c54c31cd68 7212: convert invalid date to text on .gw import
Implement the feature.
2013-11-27 18:02:56 +02:00
Vassilii Khachaturov fe6c014ab2 7212: convert invalid date to text on .gw import
Add a failing test demonstrating the feature to be implemented...
2013-11-27 18:02:56 +02:00
Doug Blank 2d147924e8 7231: recursion limit during navigation; added non-blocking lock to prevent reentrant calls over and over to prevent overflowing stack 2013-11-26 07:51:38 -05:00
Doug Blank 3e17a1586a 7231: recursion limit during navigation; added lock to prevent reentrant calls over and over to prevent overflowing stack 2013-11-26 07:00:16 -05:00
Joan Creus 2633afc555 Translation update 2013-11-25 22:50:32 +01:00
Vassilii Khachaturov 9674518322 7212: convert invalid date to text on import
Consolidate the new logic with the older code -- now malformatted
dates, as well as well-formatted invalid ones, will also be
converted to text.
2013-11-25 12:37:19 +02:00
Vassilii Khachaturov 0b0e55250c 7212: convert invalid date to text on import
Switch vcard birthday import code to use the validating Date.set
and catch the exception, convert to text mode if caught.
2013-11-25 12:24:00 +02:00
Vassilii Khachaturov 182c0f3437 7212: convert invalid dates to text on import
Make log message from [dfc3cc] use named arguments for l10n.
Thanks to Paul Franklin for finding this during code review.
2013-11-25 11:00:53 +02:00
Jérôme Rapinat aaa250f7fc Update Finnish translation (contribution by Pekka Valta), need review (fuzzy strings) 2013-11-23 20:16:45 +01:00
Vassilii Khachaturov cca72aa579 7212: convert invalid dates to text on import
If the date is invalid, it will be converted to text mode,
and the text field will be set to the problematic XML.
A warning will be printed on the console as well.
The log message will use the invalid date attached as
DateError.date, see [8e1659].
2013-11-23 19:59:19 +02:00
Vassilii Khachaturov befcd21d0b 7212: convert invalid dates to text on import
unit tests
2013-11-23 19:59:19 +02:00
Vassilii Khachaturov ca4eab8c0e 7198: Date editor crashes on invalid date
Revalidate the date upon every change, and disable
OKing the dialog when it is not valid, for usability review.

If it is not good, we can always revert this commit.
2013-11-23 19:59:18 +02:00
Vassilii Khachaturov b4a5df2622 7198: Date editor crashes on invalid date
give a name to the OK button instead of an autogenerated id
2013-11-23 19:59:18 +02:00
Vassilii Khachaturov 531e6624b0 7198: Date editor crashes on invalid date
Trying out the approach preferred by Nick, see 7198:32708
2013-11-23 19:59:18 +02:00
Vassilii Khachaturov 872bf57946 7198, 7212: attach invalid date to DateError
when Date.set throws during the date fields sanity
check validation, it now attaches an (undocumented) .date field
to the exception -- proof of concept for 7198 and potentially
for 7212 as well
2013-11-23 19:59:18 +02:00
Vassilii Khachaturov 83c6788d43 7198: Date editor crashes on invalid date
Improve user experience as promised in [98d8e6].
Now, if one clicks OK in the date editor and the date is invalid,
it's switched into text mode and the dialog remains open,
so the user can either correct the date or type it as text,
no more loss of entered data happens.
2013-11-23 19:59:18 +02:00
Vassilii Khachaturov 1d654a2b1a 7198: Date editor crashes on invalid date
Now it just autoconverts into MOD_TEXT and returns whatever
text was there. This fixes the crash on the master branch,
but is not the final user experience yet.
2013-11-23 19:59:18 +02:00
Vassilii Khachaturov 3c93c1d164 7198,7212: fix Date.set(value=None) 2013-11-23 19:59:18 +02:00
Doug Blank 4f29c6e464 7209: Custom key/value (data item) on Database difference report: Change datamap representation to allow Database Difference Report to work 2013-11-18 06:27:05 -05:00
Josip aad7b15a47 0007179: Select an existing person causes crash in searchfilter 2013-11-16 10:04:19 +01:00
Vassilii Khachaturov 68c0615bc4 7197: merge the fix from master
All date tests pass cleanly on gramps40 branch.
Merged the following commits.

	commit a90139cb9a
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Fri Nov 15 15:04:03 2013 +0200

		7197, 7100: missing recalc_sort_value in ny code

		Fix bug #7197

	commit baae6ac615
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Thu Nov 14 22:45:42 2013 +0200

		7197: readjust sanity date wrt newyear/slash

		Attempt to fix the failing
		 DateHandlerTest.test_invalid_month_with_ny
		(see 7197:32625). Tests still fail, investigation shows
		there's a problem in Date.set setting Julian+Mar25 date even if the
		date validation check is disabled by inserting a return before
		the validation block, i.e., before this line
				if modifier != Date.MOD_TEXTONLY:
		which seems to be the root cause of the remaining failing tests.
		which seems to be the root cause of the remaining failing tests.

		To investigate, add the return and try
		LC_ALL=en_GB.utf8 LANG=en_GB.utf8 GRAMPS_RESOURCES=$PWD \
		 python -m unittest -v \
		 gramps.gen.lib.test.date_test.MatchDateTest.test_match

	commit 4147721112
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Wed Nov 13 22:34:24 2013 +0200

		7197: refactor code

		extract Date._adjust_newyear out of Date.set

	commit b3ab87bc5a
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Wed Nov 13 22:02:21 2013 +0200

		7197: refactor code

		replace all copies of logging with a single point at the exception
		rethrow point

	commit c4daa151a5
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Wed Nov 13 17:39:47 2013 +0200

		7197: date sanity check breaks on Julian+Mar25

		Date.convert_calendar resets the new year setting to 0,
		so the sanity check fails. Commit the initial fix that
		unblocks the failing test.
2013-11-15 15:51:56 +02:00
Vassilii Khachaturov e097fb58c3 7197: failing tests demonstrating the bug
Merge from master:
	commit 93ca90f3b8
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Thu Nov 14 22:41:46 2013 +0200

		7197: more failing tests

	commit 78cae43a32
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Wed Nov 13 16:59:26 2013 +0200

		7197: better diagnostics from test for debugging

		Use unittest -v/--verbose flag to trigger it.

	commit 626353a0b3
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Wed Nov 13 13:52:47 2013 +0200

		7197: failing test demonstrating the bug
2013-11-15 15:41:55 +02:00
Vassilii Khachaturov 6514aed725 RU: minor libnarrate translation fix
Reapply from master
	commit dc278569c1
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Wed Nov 13 10:15:41 2013 +0200
2013-11-15 15:35:58 +02:00
John Ralls 4f07546433 Bug 7191: Cursor keys just beep on PPC with Gramps 3.4.6
It's actually on both PPC and Intel, and it's from forgetting to update
gramps.accel after upgrading Gtk past 2.24.10, which changed the mapping
of alt/option from Mod5 to Mod1.

For gramps40 and master, the problem was masked by the bundler putting
the file in the wrong directory.
2013-11-14 10:17:35 -08:00
John Ralls d3655f65de Fix gramps.modules for git conversion 2013-11-09 17:28:56 -08:00
Nick Hall 10b6c433d4 Update url to example file 2013-11-09 19:45:18 +00:00
Nick Hall ccdc4297ce Skip .git instead of .svn directories 2013-11-09 00:11:30 +00:00
Nick Hall adfafbc478 Change version string to contain git hash instead of svn revision 2013-11-08 19:54:16 +00:00
Nick Hall 93fe889a4c 7182: Avoid using private functions in GExiv2 > 0.5
svn: r23475
2013-11-08 09:26:04 -08:00
Jérôme Rapinat 56878b3205 bump to 4.0.3
svn: r23472
2013-11-08 09:25:35 -08:00
1175 changed files with 136428 additions and 100811 deletions
+3
View File
@@ -13,3 +13,6 @@ po/.intltool-merge-cache
# Editor
tags
# Testing
test/data
+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
+74
View File
@@ -1,3 +1,77 @@
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
* 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
2013-11-08
Version 4.0.2, "Welcome to our humble abode", a maintenance release.
* Citation merge works better for all objects with citations
+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.
+14 -14
View File
@@ -1,18 +1,18 @@
gramps for Debian
Gramps for Debian
----------------------
This is the Debian package of GRAMPS.
This is the Debian package of the 4.0 series of GRAMPS.
Regarding the extra dependencies:
It is a major update of Gramps to upgrade to GTK 3. A switch was also made to distutils from autotools.
Recommends: graphviz
Enable creation of graphs
Recommends: python-gtkmozembed
Recommends: python-webkit
Enable html rendering for Geographic view and Web view. If both
are installed webkit will be used. python-gtkmozembed may be more
stable.
Suggests: ttf-freefont
Allows more fonts in reports
Suggests: python-gtkspell python-enchant
allows spell checking in the notes. Both need to be installed.
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
+12
View File
@@ -1,3 +1,15 @@
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
gramps (4.0.1-2) precise; urgency=low
* bug 6918: make package more compliant according to Debian policy
+1 -1
View File
@@ -1 +1 @@
7
9
+41 -11
View File
@@ -1,17 +1,47 @@
Source: gramps
Maintainer: Gramps Development Team <gramps-devel@lists.sourceforge.net>
Section: python
Priority: optional
Build-Depends-Indep: libxml-parser-perl, gettext, intltool
Build-Depends: python-all (>= 2.7.0), debhelper (>= 7.4.3)
Standards-Version: 3.9.1
Maintainer: Ross Gammon <rossgammon@mail.dk>
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/gitweb/?p=collab-maint/gramps.git
Homepage: http://www.gramps-project.org/
X-Python-Version: >= 2.7
Package: gramps
Package: python-gramps
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, python-gobject (>= 3.3.2), librsvg2-2
Recommends: python-pyicu, python-osmgpsmap, graphviz, xdg-utils
Suggests: ttf-freefont, python-gtkspell, libgexiv2-1, rcs, python-imaging, python-pygoocanvas
Description: (Genealogical Research and Analysis Management
Programming System) is a full featured genealogy program supporting
a Python based plugin system.
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
the needs for both the amateur genealogist and serious genealogical
researcher.
GRAMPS has the ability to import GEDCOM files exported from many
proprietary genealogy programs and can produce a large number of
reports in many popular formats.
+296 -233
View File
@@ -1,251 +1,314 @@
This package was originally debianized by Brandon L. Griffith
<brandon@debian.org> on Sat, 19 May 2001 13:37:24 -0400.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Gramps
Source: http://gramps-project.org
The current Debian maintainer is James A. Treacy <treacy@debian.org>
Files: *
Copyright: 2000-2007, Alex Roitman
2000-2002, Bruce J. DeGrasse
2000-2008, Donald N. Allingham
2000-2007, Martin Hawlisch
2001, Andrés Sepúlveda
2001, David R. Hampton
2001-2013, Free Software Foundation, Inc.
2001, Graham J. Williams
2001, Jesper Zedlitz
2001-2013, The Gramps Project
2002, Gary Shao
2003-2006, Josiah Carlson
2004-2006, Eero Tamminen
2004-2013, Julio Sánchez
2004, Toshio Kuratomi
2005-2011, Serge Noiraud
2006-2011, Brian G. Matherly
2006, 2008-2011, Kees Bakker
2006-2008, Steve Hall
2007-2012, Benny Malengier
2007-2012, Douglas S. Blank
2007-2012, Gary Burton
2007-2011, Jerome Rapinat
2007, Johan Gronqvist
2007, Robert Cawley
2007-2009, Stephane Charette
2007, Thom Sturgill
2007-2008, Zsolt Foldvari
2008-2010, 2012, Craig J. Anderson
2008-2009, James Friedmann
2008-2009, Jason Simanek
2008, Lukasz Rymarczyk
2008-2010, Peter G. Landgren
2008, 2010, Raphael Ackermann
2008-2011, Reinhard Mueller
2008, 2011, Robert Cheramy
2008-2012, Rob G. Healey
2008, Stefan Siegel
2008-2010, Stephen George
2009-2010, Andrew I Baznikin
2009, 2011, The Dojo Foundation
2009, Florian Heinle
2009, Gerald W. Britton
2009, Igal Shapira
2009, 2011, John Resig
2009-2013, Nick Hall
2009, Pander Musubi
2009, Robert Ham
2009, Swoon on bug tracker
2009, Yevgeny Zegzda
2010, Gramps
2010, Jakim Friant
2010, Josip
2010, lcc & Robert Jerome
2010-2012, Michiel D. Nauta
2010-2013, Tim G L Lyons
2010-2011, Vlada Perić
2011, Adam Stein
2011-2012, Harald Rosemann
2011, 2013, Heinz Brinker
2011, Helge Herz
2011, 2013 John Ralls
2011, Matt Keenan
2011-2013, Paul Franklin
2012, Mathieu MD
2012, Nicolas Adenis-Lamarre
2013, Fedir Zinchuk
2013, Oleh Petrivk
2013, Vassilii Khachaturov
2013, Zissis Papadopoulos
License: GPL-2+
It was downloaded from http://gramps-project.org
Files: data/javascript/jquery-1.3.2.min.js
Copyright: 2009, John Resig
License: MIT and GPL
Upstream Authors:
Donald N. Allingham, Alexander Roitman, Martin Hawlisch, Richard Taylor,
Brian Matherly, Tim Waugh, Donald A. Peterson, David Hampton
Files: data/javascript/jquery-1.7.1.js
Copyright: 2011, John Resig
2011, The Dojo Foundation
License: BSD and MIT and GPL-2
========================================================
Copyright: 2001-2006 Donald N. Allingham
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Files: data/javascript/jquery-ui-1.7.2.custom.min.js
Copyright: 2009, jQuery UI Team (http://jqueryui.com/about/)
License: MIT and GPL-2
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Files: data/javascript/jquery.flexbox*
Copyright: 2008-2010, Noah Heldman and Fairway Technologies
License: Ms-PL
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
if not, write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA 02111-1307 USA
Files: data/jhtmlarea/Readme.txt
Copyright: 2009, Chris Pietschmann
License: Ms-RL
On Debian systems, the complete text of the GNU General Public
License can be found in /usr/share/common-licenses/GPL
Files: data/jhtmlarea/scripts/jHtmlArea*
Copyright: 2009, Chris Pietschmann
License: Ms-RL
========================================================
The files in help/C directory are Copyright 2006 Alexander Roitman
This documentation is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Files: data/jhtmlarea/scripts/jquery-1.3.2*
Copyright: 2009, John Resig
2009, The Dojo Foundation
License: MIT
This documentation is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Files: data/jhtmlarea/scripts/jquery-ui-*
Copyright: 2009, jQuery UI Team (http://jqueryui.com/about)
License: MIT and GPL
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
if not, write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA 02111-1307 USA
Files: debian/*
Copyright: 2001-2002, Brandon L. Griffith
2002, Alex Roitman
2002-2012, James A. Treacy
2013, Ross Gammon
License: GPL-2+
========================================================
The files in help/fr directory are Copyright 2003-2006 Jerome Rapinat
This documentation is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Files: gramps/webapp/grampsdb/view/png.py
Copyright: 2006, Johann C. Rocholl
2009, David Jones
2006, Nicko van Someren
License: MIT
This documentation is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
License: BSD
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the <organization> nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY John Resig ''AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <copyright holder> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
if not, write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA 02111-1307 USA
License: GPL
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 1 only of the License.
.
On Debian systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.
========================================================
The data/grampsxml.dtd file is Copyright 2001 Graham J. William
and Copyright 2000-2006 Donald N. Allingham
License: GPL-2
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 only of the License.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this package; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
.
On Debian systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL-2'.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this package; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
.
On Debian systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL-2'.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
License: MIT
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
if not, write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA 02111-1307 USA
License: Ms-PL
This license governs use of the accompanying software. If you use the
software, you accept this license. If you do not accept the license, do not
use the software.
.
1. Definitions
.
The terms "reproduce," "reproduction," "derivative works," and "distribution"
have the same meaning here as under U.S. copyright law.
.
A "contribution" is the original software, or any additions or changes to the
software.
.
A "contributor" is any person that distributes its contribution under this
license.
.
"Licensed patents" are a contributor's patent claims that read directly on its
contribution.
.
2. Grant of Rights
.
(A) Copyright Grant- Subject to the terms of this license, including the
license conditions and limitations in section 3, each contributor grants you a
non-exclusive, worldwide, royalty-free copyright license to reproduce its
contribution, prepare derivative works of its contribution, and distribute its
contribution or any derivative works that you create.
.
(B) Patent Grant- Subject to the terms of this license, including the license
conditions and limitations in section 3, each contributor grants you a
non-exclusive, worldwide, royalty-free license under its licensed patents to
make, have made, use, sell, offer for sale, import, and/or otherwise dispose of
its contribution in the software or derivative works of the contribution in the
software.
.
3. Conditions and Limitations
.
(A) No Trademark License- This license does not grant you rights to use any
contributors' name, logo, or trademarks.
.
(B) If you bring a patent claim against any contributor over patents that you
claim are infringed by the software, your patent license from such contributor
to the software ends automatically.
.
(C) If you distribute any portion of the software, you must retain all copyright,
patent, trademark, and attribution notices that are present in the software.
.
(D) If you distribute any portion of the software in source code form, you may do
so only under this license by including a complete copy of this license with your
distribution. If you distribute any portion of the software in compiled or object
code form, you may only do so under a license that complies with this license.
.
(E) The software is licensed "as-is." You bear the risk of using it. The
contributors give no express warranties, guarantees or conditions. You may have
additional consumer rights under your local laws which this license cannot change.
To the extent permitted under your local laws, the contributors exclude the
implied warranties of merchantability, fitness for a particular purpose and
non-infringement.
========================================================
The src/TreeTips.py file is Copyright 2004 Toshio Kuratomi
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
if not, write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA 02111-1307 USA
========================================================
The src/data/fdl.txt file is Copyright 2000,2001,2002
Free Software Foundation, Inc.
59 Temple Place, Suite 330,
Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
========================================================
The file src/docgen/ODFDoc.py file is Copyright 2005-2006 Serge Noiraud
and Copyright 2005-2006 Donald N. Allingham
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
if not, write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA 02111-1307 USA
========================================================
The file src/Mime/_WinMime.py file is Copyright 2006 Brian Matherly
and Copyright 2006 Donald N. Allingham
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
if not, write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA 02111-1307 USA
========================================================
The src/plugins/Ancestors.py file is Copyright 2003 Tim Waugh
and Copyright 2003-2006 Donald N. Allingham
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
if not, write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA 02111-1307 USA
========================================================
The src/plugins/CountAncestors.py file is Copyright 2001 Jesper Zedlitz
and Copyright 2001-2006 Donald N. Allingham
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
if not, write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA 02111-1307 USA
========================================================
The files:
src/plugins/DetAncestralReport.py
src/plugins/DetDescendantReport.py
are Copyright 2000-2002 Bruce J. DeGrasse
and Copyright 2002-2006 Donald N. Allingham
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
if not, write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA 02111-1307 USA
========================================================
The files:
src/date_test.py
src/DataViews/_PedigreeView.py
src/plugins/DumpGenderStats.py
src/plugins/ExportVCalendar.py
src/plugins/ExportVCard.py
src/plugins/ImportGeneWeb.py
src/plugins/ImportvCard.py
src/plugins/TestcaseGenerator.py
src/plugins/WriteGeneWeb.py
are Copyright 2001-2006 Martin Hawlisch, Donald N. Allingham
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
if not, write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA 02111-1307 USA
========================================================
The files:
src/ReportBase/__init__.py
src/ReportBase/_Report.py
are Copyright 2001 David R. Hampton
and Copyright 2001-2006 Donald N. Allingham
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
if not, write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA 02111-1307 USA
License: Ms-RL
This license governs use of the accompanying software. If you use the software,
you accept this license. If you do not accept the license, do not use the software.
.
1. Definitions
The terms "reproduce," "reproduction," "derivative works," and "distribution" have
the same meaning here as under U.S. copyright law.
A "contribution" is the original software, or any additions or changes to the
software.
A "contributor" is any person that distributes its contribution under this license.
"Licensed patents" are a contributor's patent claims that read directly on its
contribution.
.
2. Grant of Rights
(A) Copyright Grant- Subject to the terms of this license, including the license
conditions and limitations in section 3, each contributor grants you a
non-exclusive, worldwide, royalty-free copyright license to reproduce its
contribution, prepare derivative works of its contribution, and distribute its
contribution or any derivative works that you create.
(B) Patent Grant- Subject to the terms of this license, including the license
conditions and limitations in section 3, each contributor grants you a
non-exclusive, worldwide, royalty-free license under its licensed patents to make,
have made, use, sell, offer for sale, import, and/or otherwise dispose of its
contribution in the software or derivative works of the contribution in the software.
.
3. Conditions and Limitations
(A) Reciprocal Grants- For any file you distribute that contains code from the
software (in source code or binary format), you must provide recipients the source
code to that file along with a copy of this license, which license will govern that
file. You may license other files that are entirely your own work and do not contain
code from the software under any terms you choose.
(B) No Trademark License- This license does not grant you rights to use any
contributors' name, logo, or trademarks.
(C) If you bring a patent claim against any contributor over patents that you claim
are infringed by the software, your patent license from such contributor to the
software ends automatically.
(D) If you distribute any portion of the software, you must retain all copyright,
patent, trademark, and attribution notices that are present in the software.
(E) If you distribute any portion of the software in source code form, you may do so
only under this license by including a complete copy of this license with your
distribution. If you distribute any portion of the software in compiled or object code
form, you may only do so under a license that complies with this license.
(F) The software is licensed "as-is." You bear the risk of using it. The contributors
give no express warranties, guarantees or conditions. You may have additional consumer
rights under your local laws which this license cannot change. To the extent permitted
under your local laws, the contributors exclude the implied warranties of
merchantability, fitness for a particular purpose and non-infringement.
-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
+2
View File
@@ -0,0 +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"
-3
View File
@@ -1,3 +0,0 @@
#!/bin/sh -e
#DEBHELPER#
-3
View File
@@ -1,3 +0,0 @@
#!/bin/sh -e
#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
+31 -3
View File
@@ -1,9 +1,37 @@
#!/usr/bin/make -f
# This file was automatically generated by stdeb 0.6.0+git at
# Sun, 31 Mar 2013 16:54:38 +0200
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DH_OPTIONS=-v
%:
dh $@ --with python2 --buildsystem=python_distutils
dh $@ --with python2
# Override auto test because upstream do not use the standard unittest discover
override_dh_auto_test:
# Override of auto_build
override_dh_auto_build:
python setup.py build
# Override of auto_install to remove information from package
override_dh_auto_install:
#dh_auto_install
# Remove duplicate copyright information
#rm $(CURDIR)/debian/python-gramps/usr/share/doc/gramps/COPYING
# Remove install file as it is not needed by package users
#rm $(CURDIR)/debian/python-gramps/usr/share/doc/gramps/INSTALL
# Remove duplicate license information
#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)
+4
View File
@@ -0,0 +1,4 @@
version=3
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()
+2 -2
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$
#
@@ -29,7 +29,7 @@ The User class provides basic interaction with the user.
# Python Modules
#
#------------------------------------------------------------------------
from __future__ import print_function
from __future__ import print_function, unicode_literals
import sys
#------------------------------------------------------------------------
+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)
+22 -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$
@@ -43,8 +43,8 @@ import uuid
# Gramps modules
#
#-------------------------------------------------------------------------
from .svn_revision import get_svn_revision
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,18 +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_svn_revision(ROOT_DIR)
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
@@ -202,7 +194,7 @@ GTK_GETTEXT_DOMAIN = 'gtk30'
#
#-------------------------------------------------------------------------
COPYRIGHT_MSG = "© 2001-2006 Donald N. Allingham\n" \
"© 2007-2013 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.
+3 -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$
@@ -51,6 +51,7 @@ class DateParserRU(DateParser):
modifier_to_int = {
'перед' : Date.MOD_BEFORE,
'до' : Date.MOD_BEFORE,
'по' : Date.MOD_BEFORE,
'после' : Date.MOD_AFTER,
'п.' : Date.MOD_AFTER,
@@ -257,7 +258,7 @@ class DateDisplayRU(DateDisplay):
_mod_str = (
"",
"перед ",
"до ",
"после ",
"около ",
"", "", "")
+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$
+24 -13
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$
@@ -34,8 +34,16 @@ Based on the Check Localized Date Displayer and Parser tool.
# standard python modules
#
#-------------------------------------------------------------------------
from __future__ import unicode_literals, division
import unittest
import sys
if '-v' in sys.argv or '--verbose' in sys.argv:
import logging
logging.getLogger('').addHandler(logging.StreamHandler())
log = logging.getLogger(".Date")
log.setLevel(logging.DEBUG)
#-------------------------------------------------------------------------
#
# GRAMPS modules
@@ -69,18 +77,21 @@ class DateHandlerTest(unittest.TestCase):
def test_simple(self):
dates = []
calendar = Date.CAL_GREGORIAN
for quality in (Date.QUAL_NONE, Date.QUAL_ESTIMATED,
Date.QUAL_CALCULATED):
for modifier in (Date.MOD_NONE, Date.MOD_BEFORE,
Date.MOD_AFTER, Date.MOD_ABOUT):
for slash1 in (False,True):
for month in range(1, 13):
for day in (5, 27):
d = Date()
d.set(quality, modifier, calendar,
(day, month, 1789, slash1), "Text comment")
dates.append(d)
for calendar in (Date.CAL_GREGORIAN, Date.CAL_JULIAN):
for newyear in (Date.NEWYEAR_JAN1, Date.NEWYEAR_MAR25, (5,5)):
for quality in (Date.QUAL_NONE, Date.QUAL_ESTIMATED,
Date.QUAL_CALCULATED):
for modifier in (Date.MOD_NONE, Date.MOD_BEFORE,
Date.MOD_AFTER, Date.MOD_ABOUT):
for slash1 in (False,True):
for month in range(1, 13):
for day in (5, 27):
d = Date()
d.set(quality, modifier, calendar,
(day, month, 1789, slash1),
"Text comment",
newyear)
dates.append(d)
for test_date in dates:
self.base_test(test_date)
+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.

Some files were not shown because too many files have changed in this diff Show More