Nick Hall
27648255c0
8134: Fix pickle upgrade of python2 strings to python3 str
2015-02-22 15:23:49 +00:00
Nick Hall
71e2077805
8344: Ensure key is correct type when updating reference map
2015-02-09 15:44:32 +00:00
Nick Hall
54fdf3ef8a
8020: Ensure that reference map has string keys
2014-10-28 17:40:29 +00:00
Nick Hall
5a98e1a9b0
7868: Rebuild secondary indexes after database upgrade
2014-09-26 19:34:58 +01:00
Malcom Lewis
9eacd472da
Update FSF address to current location.
2014-08-08 19:36:49 -07:00
Nick Hall
2706bfb552
7842: Fix custom place types in the place editor
...
Allow place type combobox to receive focus.
Store custom place types in the metadata table.
2014-06-21 17:34:22 +01:00
Nick Hall
7bbbafe377
Revert [27453a] and [9d6049]
...
Fix broken proxies and make proxies read-only.
2014-05-21 22:01:18 +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
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
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
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
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
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
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
Josip
fa3645bf15
7582: [Python2] Cannot remove a person having an event reference
2014-04-06 19:07:41 +02:00
John Ralls
9550dda584
Correctly encode the contents of the lock file.
2014-04-03 15:15:19 -07:00
John Ralls
7dfb2e016f
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 14:17:36 -07:00
Nick Hall
7eb68e0c2f
7559: Fix bug in abandon changes and quit
2014-03-29 19:56:58 +00:00
John Ralls
53c878aa08
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.
2014-03-27 11:34:49 -07:00
John Ralls
71650917bf
7258: Replace some os.environ['foo'] lookups missed earlier.
2014-03-27 11:32:37 -07:00
John Ralls
2a81c76e69
Prevent range error crash when loading a defective database.
2014-03-25 15:44:50 -07:00
John Ralls
97d3ab49c4
7258: Fix filesystem encoding in get_dbdir_summary and DbUndoBSDDB.close.
2014-03-25 15:44:23 -07:00
John Ralls
85a1c39092
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-23 15:09:51 -07:00
Nick Hall
c364bcd7ad
7482: Fix python3 problems with new place structure
...
Based on patches by Marc Hulsman.
2014-02-25 22:31:03 +00:00
Doug Blank
a72c6eac96
Don't go through loop if not Python 3; fixed typo
2013-12-23 15:19:18 -05:00
Doug Blank
27453a7587
Added remove_func to _tables; added remove_from_database(item)
2013-12-23 13:56:25 -05:00
Nick Hall
c665b8d262
Improve gen.db documentation
...
Convert old markup to reStructuredText.
Use warning and todo directives where appropriate.
Add some new links to classes and methods.
Use consistent case for "Gramps".
2013-11-10 23:34:10 +00:00
Doug Blank
b0517d0ee4
Added db.get_transaction_class to connect db and txn; refactored _tables metadata
2013-11-10 15:07:14 -05:00
Nick Hall
d6ae8cffb4
GEPS 6: Implement place hierarchy
...
svn: r23444
2013-11-01 19:13:16 +00:00
Doug Blank
e06051fa7c
Allow to be used without bsddb installed, for uses where it is not needed (webapp and other uses)
...
svn: r23371
2013-10-23 02:00:38 +00:00
Benny Malengier
bf29e57039
2332: Allow reorder of Data in the Data tab of Source: make Data SourceAttribute, which have sourcetype,
...
link with GEPS 018: Evidence
This is step 1 needed for GEPS 018. All types are defined needed to evidence style references
This commit also contains fix for 6777: Crash on export to GEDCOM when there are addresses
svn: r22423
2013-05-26 19:28:57 +00:00
Tim G L Lyons
9a9f47dc28
0006746: Problem in Portable version immediately after upgrading to 3.4.4-1 from 3.3.1.1
...
svn: r22345
2013-05-17 11:30:06 +00:00
Tim G L Lyons
98bfecc918
0006713: Databases written with pickle protocol 3 (Python3) should not be opened with pickle protocol 2 (Python2). Also give warning when about to upgrade a Python2 database to Python3.
...
svn: r22243
2013-05-10 14:38:51 +00:00
Tim G L Lyons
735adfb0c1
0006529: Cancelling database upgrade can corrupt the database. Ensure database is unlocked when cancelling upgrade. Make links in dialogues into clickable hyper-links. Ensure dialogue windows stays on top. Reword warning and error messages to use Bsddb version, schema version and Family Tree consistently, to be clearer about the choice the user is being offered, and to provide hyper-links to more information.
...
svn: r22219
2013-05-09 17:24:40 +00:00
John Ralls
00aa00fbf5
GrampsLocale: Remove get_translation()
...
Only one base translation per locale. To set up a different locale
on any axis (locale, domain, directory, or languages) instantiate a
secondary locale by calling GrampsLocale() with the appropriate
arguments.
svn: r21968
2013-04-12 22:32:11 +00:00
Tim G L Lyons
445f10396a
Put maxsize back
...
svn: r21896
2013-04-05 17:14:32 +00:00
Tim G L Lyons
60b57a996e
write.py: After the bsddb version has been upgraded, if the schema versions also needs to be upgraded, output a separate dialog asking the user whether he wants to upgrade the schema. (As requested by Benny).
...
svn: r21888
2013-04-05 10:54:35 +00:00
Benny Malengier
0c2c56ec4c
fix python3 error and improve upgrade text
...
svn: r21867
2013-04-04 09:26:53 +00:00
Tim G L Lyons
f2809f4249
0006529: Cancelling database upgrade can corrupt the database. Check whether the bsddb version has changed (or was originally unknown). If it is an upgrade, ask the user whether he has made a backup, and is ready to upgrade. If so, made a zip backup and open the database with the new bsddb version. Make messages on the dialogues more explicit with the version numbers mentioned.
...
svn: r21852
2013-04-02 16:06:36 +00:00
Benny Malengier
95e86802c7
6460: Crash during Extract Event Description
...
svn: r21807
2013-03-29 15:56:54 +00:00
Benny Malengier
c64f64657f
Python3 UnicodeDecodeError in python3 on unpickling data saved in python2
...
svn: r21777
2013-03-28 10:47:48 +00:00
Serge Noiraud
58a2be3264
Bug #06459 : change the lock strategy and split transactions in Merge citation.
...
svn: r21503
2013-02-28 19:52:24 +00:00
John Ralls
fd61b21a2d
GrampsLocale: Replace locale.strcoll, locale.strxfrm, and conv*_tosrtkey
...
With GrampsLocale.sort_key (for strxfrm and conv*_tosrtkey) and
GrampsLocale.strcoll.
If ICU is available will use the correct ICU::Collator for the locale,
otherwise falls back to locale.strxfrm -- for which it temporarily
changes the LC_COLLATE locale.
svn: r21275
2013-02-01 22:49:14 +00:00
Nick Hall
9c66c62d5c
Add tagging to all primary objects
...
svn: r21194
2013-01-22 16:12:15 +00:00
John Ralls
ef6892abbd
GrampsLocale: Remove ggettext
...
svn: r21144
2013-01-17 19:46:55 +00:00
Benny Malengier
926dbca98f
6329: Crazy citations after XML import of bacuo from Gramps 3.4.3
...
svn: r21123
2013-01-15 08:42:50 +00:00
Benny Malengier
620446303f
fix error from fix encoding issue for python 3
...
svn: r21070
2013-01-11 17:20:16 +00:00