Commit Graph

636 Commits

Author SHA1 Message Date
Nick Hall
72b96c96f9 Fix tree cursor for read-only databases 2014-05-25 00:01:14 +01:00
Nick Hall
6af8fe607f Match alternative names in HasPlace filter 2014-05-24 20:43:32 +01:00
Jérôme Rapinat
084e56d1aa merge back some french modules from gramps41 2014-05-22 08:43:27 +02:00
Nick Hall
842379e6db Revert [27453a] and [9d6049]
Fix broken proxies and make proxies read-only.
2014-05-21 21:59:36 +01:00
Paul Franklin
9d6049d1af 7693: Broken proxies 2014-05-19 11:33:09 -07:00
Nick Hall
b5ad672ace 7027: Update merge_test to use SrcAttribute 2014-05-17 21:54:36 +01:00
Nick Hall
dce7a6d7f7 Fix bug in latitude/longitude conversion
Fixed unit test for python3.  int('+ 1') works in python2 but not python3.
Also corrected a unit test.
2014-05-15 19:06:30 +01:00
Nick Hall
98aaf8feab Fix unit tests after XML format change 2014-05-15 01:17:42 +01:00
Nick Hall
afd154a19e 7650: New unit tests for merging places 2014-05-15 00:10:53 +01:00
Nick Hall
5468dd31d0 7692: Add alternative place names to Gramps XML 2014-05-14 19:28:00 +01:00
Nick Hall
643e742556 7960: Store custom event attribute types in the metadata 2014-05-13 20:52:27 +01:00
Nick Hall
737e8eb74b 7571: Fix custom event types 2014-05-13 18:34:50 +01:00
Jérôme Rapinat
09244d037d 7659: SyntaxError with python3 on 'gramps.gen.db.test.grampsdbtestbase' 2014-05-13 18:02:42 +02:00
Jérôme Rapinat
5dc84c83a9 7649: [Unit test] gramps type, encoding and to_struct(); specific to python2 2014-05-07 17:15:26 +02:00
Jérôme Rapinat
c45167c170 7663: readonly/readwrite and 'create_id' method into 'gen/db/test/db_test.py', no more 'create_id' in the DB code, see [2a6081] for more details 2014-05-04 17:46:05 +02:00
Paul Franklin
2a608151c2 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:16:41 -07:00
John Ralls
4327f6952b 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.
2014-04-30 07:33:00 -07:00
Paul Franklin
e8bfbc9050 fix (Arabic) comma in some other translated-output reports 2014-04-27 16:19:28 -07:00
Paul Franklin
4927422d7e enable name displayer to show a locale-specific (Arabic) comma 2014-04-27 16:14:15 -07:00
Jérôme Rapinat
057fbf66c1 7258: incomplete commit; https://gramps-project.org/bugs/view.php?id=7258#c35856 2014-04-24 11:41:44 +02:00
John Ralls
b3edd2fa5f Make recentfiles.do_save exception safe. 2014-04-21 14:12:36 -07:00
John Ralls
5f3f280ea0 Fix None type exception when there's no localedir. 2014-04-21 14:08:57 -07:00
John Ralls
f0ffd6e9b9 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.
2014-04-20 17:05:53 -07:00
John Ralls
55610b6f0a Remove get_unicode_path_from_env_var(), get_unicode_path_from_file_chooser()
Two very cumbersome ways of saying conv_to_unicode().
2014-04-20 17:05:53 -07:00
John Ralls
ecfad157a8 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.
2014-04-20 17:05:52 -07:00
John Ralls
10921cee29 GrampsLocale: Don't try to set self.localedir to _first.localedir if the latter path doesn't exist. 2014-04-20 17:05:52 -07:00
John Ralls
c1dcd6f59e 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.
2014-04-20 17:05:51 -07:00
John Ralls
efa3741579 7258: Ensure that resource paths are set correctly when they include Unicode characters. 2014-04-20 17:05:51 -07:00
John Ralls
8f4aebe4c6 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:13:00 -07:00
Nick Hall
20c9d949ac Fix python2 bug when creating backup filename 2014-04-18 22:06:30 +01:00
John Ralls
73fed7385a 7258: Fix a path encoding issue when upgrading the database. 2014-04-15 17:05:13 -07:00
Nick Hall
f6be31eb39 Remove subversion substitution variables 2014-04-15 14:10:18 +01:00
Paul Franklin
f3e378a76a 7596: Translation of plurals does not allow the translator to omit the number 2014-04-14 19:17:26 -07:00
Paul Franklin
99cfe782da make "update_po -p" happier about unnamed strings 2014-04-14 17:07:32 -07:00
Nick Hall
4a7ae64dd3 Fix unicode error when saving filters 2014-04-13 14:03:43 +01:00
Nick Hall
0901528ddf GEPS 6: Add extra place types 2014-04-13 14:03:43 +01:00
Josip
aedfc3a673 7258: transcode os.path.join args from the fs enc to prevent a crash
fix plugin registration
fix textual, html report etc (except cairo based report)
fix web calendar report for python3
2014-04-13 10:11:22 +02:00
Paul Franklin
9c4aa37b8c 7276: translate some punctuation marks -- partial 2014-04-09 18:40:42 -07:00
Josip
6836dbd5bd git revision in windows 2014-04-09 23:09:33 +02:00
Paul Franklin
d238ad9044 make gramps XML the initial default export type 2014-04-08 19:25:13 -07:00
Josip
7fdf0f9225 7258: transcode os.path.join args from the fs enc to prevent a crash
Fix 3rd party plugin loading for Py2/Py3 in Windows when sys.path
is in Unicode or/and is not encodable in 'mbcs' encodings
2014-04-08 22:39:11 +02:00
Nick Hall
2155ae381f Remove GEPS 018 related code 2014-04-07 22:04:44 +01:00
John Ralls
43c37a603c 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-07 13:24:11 -07:00
John Ralls
5972a3a16f 7258: Avoid dumb encoding error when compiling gpr files 2014-04-07 12:44:39 -07:00
John Ralls
dc292037e4 7588: Can not start [in Chinese on OSX]
Force UTF-8 locale on Mac
2014-04-07 11:51:02 -07:00
Josip
930a2f9819 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:17:40 +02:00
John Ralls
f201deabbc Fix up some failing tests 2014-04-06 12:56:41 -07:00
John Ralls
28505a5d8d Delete a bunch of superflous re-encodings of path names 2014-04-06 12:56:41 -07:00
Josip
fa3645bf15 7582: [Python2] Cannot remove a person having an event reference 2014-04-06 19:07:41 +02:00
Josip
f7e144f853 Change use of GetEnvironmentVariableW (#7582) 2014-04-06 00:22:32 +02:00