Doug Blank
de7430eeb8
8614: addresses pickleupgrade.txt issue, by kulath
2015-06-17 06:28:29 -04:00
Nick Hall
cc6820f80c
GEPS 036: Add date and language to place names
2015-05-26 21:12:36 +01:00
Nick Hall
5da10c5a80
Replace cuni with str
2015-03-14 23:48:32 +00:00
Nick Hall
c9fd339289
Replace UNITYPE with str
2015-03-14 22:33:55 +00:00
Nick Hall
e0608f0ec4
Remove python2 specific code
2015-03-14 19:29:16 +00:00
Nick Hall
3b5efdf7ae
Remove imports from __future__ module
2015-03-14 16:10:36 +00:00
kulath
9444cbe388
0007824: Regression: running gramps from crontab fails
2015-03-01 16:53:45 +00:00
Tim G L Lyons
0778a6f706
Missing import statement
2015-02-25 01:13:20 +00:00
kulath
fab7afd2a3
8134: Fix pickle upgrade of python2 strings to python3 str
...
Move load of metadata (which can also have pickle upgrade errors) and
make zip backup for pickle or schema upgrade.
2015-02-24 22:44:19 +00:00
Nick Hall
a01722d35f
8134: Fix pickle upgrade of python2 strings to python3 str
2015-02-22 15:24:47 +00:00
Nick Hall
71ae1fbca3
8344: Ensure key is correct type when updating reference map
2015-02-09 15:44:51 +00:00
Nick Hall
93a26b26d2
8020: Ensure that reference map has string keys
2014-10-28 17:47:34 +00:00
Nick Hall
aea848de23
7868: Rebuild secondary indexes after database upgrade
2014-09-26 19:38:15 +01:00
Malcom Lewis
86303f6116
Update FSF address to current location.
2014-08-08 19:39:45 -07:00
Nick Hall
6950679504
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:22:57 +01:00
Nick Hall
842379e6db
Revert [27453a] and [9d6049]
...
Fix broken proxies and make proxies read-only.
2014-05-21 21:59:36 +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