Commit Graph

186 Commits

Author SHA1 Message Date
Don Allingham
32d7968365 2007-10-06 Don Allingham <don@gramps-project.org>
* various: creation of gen.db package



svn: r9091
2007-10-07 03:19:35 +00:00
Don Allingham
a65a73d1d7 * various: const.py changes
2007-09-07  Don Allingham  <don@gramps-project.org>
	* src/DateHandler/_Date_fr.py: fix indentation errors

2007-09-07  Don Allingham  <don@gramps-project.org>


svn: r8948
2007-09-08 05:54:02 +00:00
Alex Roitman
301348a0df 2007-07-17 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (convert_notes_13): Add reporef
	privacy on upgrade.
	* src/GrampsDbUtils/_ReadXML.py (start_note): Set privacy for
	reporef's notes;
	(start_reporef): Parse prvacy attribute for reporefs.
	* src/GrampsDb/_GrampsDbWriteXML.py (write_reporef_list): Write
	privacy attribitue.
	* src/RelLib/_RepoRef.py: Add privacy.



svn: r8730
2007-07-17 22:44:24 +00:00
Alex Roitman
fb6bc0493c 2007-07-17 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (convert_notes_13): Only create a
	note if source text was non-empty.



svn: r8727
2007-07-17 16:45:17 +00:00
Alex Roitman
96629eeb81 Update
svn: r8724
2007-07-17 05:35:17 +00:00
Alex Roitman
2a41dbfd03 2007-07-16 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (convert_notes_13): Convert text
field into a note on upgrade.
* src/RelLib/_SourceRef.py (__init__): Remove text attribute;
(set_text,get_text): Remove methods.
* src/RelLib/_NoteType.py (SOURCE_TEXT): Add new type.

svn: r8721
2007-07-17 01:59:25 +00:00
Alex Roitman
39b58dd8fb * src/GrampsDb/_GrampsBSDDB.py (convert_notes_13): Add privacy to
LdsOrd on upgrade.
* src/RelLib/_LdsOrd.py (serialize,unserialize): Add privacy.

svn: r8714
2007-07-13 01:47:25 +00:00
Alex Roitman
aee6772c66 2007-06-26 Alex Roitman <shura@gramps-project.org>
* src/plugins/ReadGrdb.py (importData): Only copy environment if
	it exists.
	* src/GrampsDb/_GrampsBSDDB.py (load): Restore env_flags
	definition for TXN-less database.



svn: r8674
2007-06-26 17:40:03 +00:00
Alex Roitman
1e8a8be782 2007-06-25 Alex Roitman <shura@gramps-project.org>
* src/plugins/RemoveUnused.py (init_gui): Add missing argument.
	* src/GrampsDb/_GrampsInMemDB.py: Rename overridden methods.
	* src/GrampsDb/_GrampsDbBase.py: Rename overridden methods.
	* src/GrampsDb/_GrampsBSDDB.py: Rename overridden methods.
	* src/GrampsDb/_GrampsDBDir.py: Rename overridden methods.



svn: r8671
2007-06-26 06:02:17 +00:00
Alex Roitman
2b16d0f35d * src/GrampsDb/_GrampsBSDDB.py (commit_base): Rename method.
svn: r8667
2007-06-25 16:22:38 +00:00
Alex Roitman
863a701d63 2007-06-24 Alex Roitman <shura@gramps-project.org>
* src/plugins/ReadGrdb.py (importData): Rework to upgrade and
	import a copy of grdb file, leaving the original file untouched.
	* src/GrampsDb/_GrampsBSDDB.py (make_env_name): Add method to
	determine the environment name.



svn: r8660
2007-06-25 03:35:48 +00:00
Alex Roitman
d5f5b3a602 (version_supported): Default to the current version.
svn: r8656
2007-06-25 01:46:37 +00:00
Alex Roitman
f93fef3422 2007-06-24 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (load): Typo.
	* src/DbLoader.py (read_file): Fix error reporting.



svn: r8650
2007-06-24 20:03:40 +00:00
Don Allingham
c730a8f5c4 2007-06-12 Don Allingham <don@gramps-project.org>
* src/ViewManager.py: detection and recovery from db errors
	* src/GrampsDb/_GrampsDBDir.py: detection and recovery from db errors
	* src/GrampsDb/_GrampsBSDDB.py: detection and recovery from db errors
	* src/DbManager.py: detection and recovery from db errors
	* src/DbState.py: detection and recovery from db errors
	* src/ArgHandler.py: detection and recovery from db errors



svn: r8539
2007-06-12 23:31:40 +00:00
Don Allingham
033df090d3 * src/GrampsDb/_GrampsBSDDB.py: fix __ issue
svn: r8533
2007-06-04 02:59:36 +00:00
Don Allingham
2615728437 2007-06-03 Don Allingham <don@gramps-project.org>
* src/Simple/__init__.py: add



svn: r8531
2007-06-04 02:49:31 +00:00
Benny Malengier
c5916814e8 * src/GrampsDb/_GrampsBSDDB.py: upgrade of grdb now sets correct notetype, and
inherits the public/private setting of the parent object it is created from, 
          instead of defaulting to public.

2007-05-07 Benny Malengier <bm@cage.ugent.be>


svn: r8442
2007-05-07 23:02:03 +00:00
Don Allingham
9fd30ff3f9 2007-05-01 Don Allingham <don@gramps-project.org>
* src/ReportBase/_SimpleAccess.py: simplifed database access routines



svn: r8433
2007-05-02 04:05:41 +00:00
Zsolt Foldvari
a7083cf69c * src/GrampsDb/_DbUtils.py (db_copy): include missing Note table;
handling Note bookmarks.
	* src/GrampsDb/_GrampsDbWriteXML.py:
	* src/GrampsDb/_GrampsDBDir.py:
	* src/GrampsDb/_GrampsBSDDB.py:
	* src/Bookmarks.py:
	* src/GrampsDbUtils/_ReadXML.py:
	Handling Note bookmarks.

2007-03-27  Zsolt Foldvari  <zfoldvar@users.sourceforge.net>


svn: r8328
2007-03-27 21:47:18 +00:00
Alex Roitman
85f5facb3f 2007-02-23 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (convert_notes_13): Typo preventing
	address upgrade.
	* src/GrampsDb/_GrampsDbWriteXML.py (write_address_list): Minor
	alignment corrections.
	* src/GrampsDb/_GrampsInMemDB.py (__init__): Define nid_trans.



svn: r8221
2007-02-24 00:24:57 +00:00
Alex Roitman
9385c98706 2007-02-23 Alex Roitman <shura@phy.ucsf.edu>
* src/GrampsDb/_GrampsBSDDB.py (convert_notes_13): Skip empty notes.



svn: r8218
2007-02-23 21:17:41 +00:00
Alex Roitman
29776e25b8 2007-02-22 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (reindex_reference_map): Typo.
	* src/GrampsDb/_GrampsDbWriteXML.py (write_media_list): Typo.



svn: r8210
2007-02-22 20:42:51 +00:00
Alex Roitman
9bb2f90e0d 2007-02-21 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_13): Add upgrade
	path for 2.2.x data;
	(commit_13): A low-level commit hack to aid in upgrade_13;
	(convert_notes_13): Recursive converter for the notes in each
	object and its note-capable child objects.



svn: r8209
2007-02-22 07:52:54 +00:00
Alex Roitman
961a543cda Merge multiple notes branch
svn: r8182
2007-02-20 00:39:10 +00:00
Richard Taylor
625fbee200 More work on progress monitor.
svn: r8142
2007-02-17 19:59:21 +00:00
Don Allingham
ddccd7e7bc 2007-02-12 Don Allingham <don@gramps-project.org>
* src/plugins/FindDupes.py: backport from 2.2.6



svn: r8095
2007-02-12 23:52:59 +00:00
Zsolt Foldvari
e54cbc8c51 2007-02-11 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/MarkupText.py: added
	* src/DisplayTabs/_NoteTab.py: handling 'rich text' notes
	* src/RelLib/_NoteBase.py: handling 'rich text' notes
	* src/RelLib/_Note.py: handling 'rich text' notes
	* src/GrampsDb/_GrampsBSDDB.py: handling 'rich text' notes
	* src/GrampsDbUtils/_ReadXML.py: handling 'rich text' notes
	* src/GrampsDbUtils/_WriteXML.py: handling 'rich text' notes
	* src/Merge/_MergeSource.py: handling 'rich text' notes
	* src/Merge/_MergePlace.py: handling 'rich text' notes
	* src/Merge/_MergePerson.py: handling 'rich text' notes
	* src/ReportBase/_ReportUtils.py: handling 'rich text' notes
	* src/ViewManager.py: cleanup



svn: r8081
2007-02-10 23:40:48 +00:00
Zsolt Foldvari
fbe04615f5 2007-02-05 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/GrampsDb/_GrampsBSDDB.py: load/save db owner info
	* src/GrampsDb/_DbUtils.py (db_copy): copy also db owner



svn: r8057
2007-02-04 23:59:03 +00:00
Richard Taylor
f96b6f5dc2 refactor GrampsDb and clean RelLib deps.
svn: r8032
2007-02-03 17:11:05 +00:00
Don Allingham
b2860d222e * src/DisplayModels/_BaseModel.py: Refactor out node/path maps
* various: remove sets import


svn: r8011
2007-01-29 19:13:15 +00:00
Don Allingham
217a8be23b 2007-01-23 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py: initialize the next gramps_id
	indexes to the length of the tables to prevent a walk of the db 
	entries.
	* src/DisplayModels/_BaseModel.py: handle row-insert properly
	* src/PageView.py: handle row adding properly



svn: r7963
2007-01-23 17:02:55 +00:00
Don Allingham
2406378435 * src/GrampsDb/_GrampsDBCallback.py: sys.getfilesystemencoding()
* src/GrampsDb/_GrampsBSDDB.py: sys.getfilesystemencoding()
	* src/Exporter.py: sys.getfilesystemencoding()
	* src/ReportBase/_FileEntry.py: sys.getfilesystemencoding()
	* src/Editors/_EditMedia.py: sys.getfilesystemencoding()
	* src/DisplayTabs/_SourceEmbedList.py: sys.getfilesystemencoding()
	* src/plugins/WriteCD.py: sys.getfilesystemencoding()
	* src/plugins/WritePkg.py: sys.getfilesystemencoding()
	* src/plugins/Check.py: sys.getfilesystemencoding()
	* src/plugins/EventCmp.py: sys.getfilesystemencoding()
	* src/AddMedia.py: sys.getfilesystemencoding()
	* src/DisplayModels/_BaseModel.py: sys.getfilesystemencoding()
	* src/DateEdit.py: sys.getfilesystemencoding()
	* src/ArgHandler.py: sys.getfilesystemencoding()
	* src/DbLoader.py: sys.getfilesystemencoding()


svn: r7951
2007-01-22 03:56:23 +00:00
Don Allingham
b656e879fe svn: r7948 2007-01-21 21:32:53 +00:00
Alex Roitman
581989107b * src/GrampsDb/_GrampsDbBase.py (transaction_commit): Remove
backend-specific call.
	* src/GrampsDb/_GrampsBSDDB.py (transaction_commit): Move surname
	list build to work for any batch transaction.
	* src/GrampsDb/_GrampsInMemDB.py (transaction_commit): Add method.


svn: r7939
2007-01-20 16:55:08 +00:00
Alex Roitman
a6b17dc87c Update
svn: r7933
2007-01-19 17:09:38 +00:00
Alex Roitman
6d776c2f94 2007-01-19 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsInMemDB.py: Support the cached surname list.
	* src/GrampsDb/_GrampsBSDDB.py: Support the cached surname list.
	* src/GrampsDb/_GrampsDbBase.py: Support the cached surname list.



svn: r7932
2007-01-19 16:53:49 +00:00
Alex Roitman
752530bc24 * src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Upgrade media
refs for the sources.


svn: r7876
2007-01-07 07:22:35 +00:00
Don Allingham
f2a4002d5e * src/DataViews/_PersonView.py: use a container for bookmarks to prevent
lost of data (bug #777)
	* src/GrampsDb/_GrampsDbBase.py: use a container for bookmarks to prevent
	lost of data (bug #777)
	* src/GrampsDb/_GrampsBSDDB.py: use a container for bookmarks to prevent
	lost of data (bug #777)
	* src/Bookmarks.py: use a container for bookmarks to prevent
	lost of data (bug #777)


svn: r7830
2006-12-21 03:28:44 +00:00
Alex Roitman
b32028bea6 2006-12-05 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (GrampsBSDDB.load): Revert
	incorrect commit.



svn: r7764
2006-12-06 04:06:26 +00:00
Zsolt Foldvari
6245f9a62f 2006-12-05 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/GrampsDb/_GrampsBSDDB.py (load): typo (const.bsddbenv_dir)



svn: r7763
2006-12-05 19:08:21 +00:00
Brian Matherly
11335bc6bc * src/GrampsDb/_GrampsBSDDB.py: comment out lsn_reset - it causes crashes.
svn: r7747
2006-12-02 04:20:48 +00:00
Alex Roitman
4fff3e494a * src/plugins/Rebuild.py (__init__): Proper progress indication.
svn: r7743
2006-12-01 16:26:34 +00:00
Alex Roitman
685c655b80 In .:
2006-12-01  Alex Roitman  <shura@gramps-project.org>
	* src/plugins/Makefile.am (pkgdata_PYTHON): Ship new file.
	* src/plugins/RebuildRefMap.py: Add new plugin.
	* src/GrampsDb/_GrampsBSDDB.py (reindex_reference_map): Fix reindexing.
	* src/GrampsDb/_GrampsDbBase.py (reindex_reference_map): Add a
	placeholder method for anything other than BSDDB.

In po:
2006-12-01  Alex Roitman  <shura@gramps-project.org>
	* POTFILES.in: List new file.



svn: r7740
2006-12-01 08:23:51 +00:00
Zsolt Foldvari
1d1fc2eec5 2006-11-30 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Correctly convert
	alt_loc in Place upgrade.



svn: r7738
2006-11-30 21:45:20 +00:00
Brian Matherly
c47460e89e * src/GrampsDb/_GrampsBSDDB.py: fix path for bsddb env in Windows.
svn: r7727
2006-11-29 03:40:35 +00:00
Alex Roitman
4021105d52 2006-11-26 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (load): Clean env for a new grdb
	file; do not attempt recovery for a new grdb file.
	* NEWS: Typo.



svn: r7707
2006-11-26 19:47:34 +00:00
Alex Roitman
a973524664 Update
svn: r7700
2006-11-26 04:29:46 +00:00
Alex Roitman
e2a6b4085a Update
svn: r7699
2006-11-26 04:26:06 +00:00
Alex Roitman
c95dac5a29 2006-11-25 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (GrampsBSDDB.load): Use
	per-database environment dirs, under ~/.gramps/env dir.
	* src/const.py.in (env_dir): Add new variable.



svn: r7697
2006-11-26 03:00:44 +00:00
Alex Roitman
708cb96d8f 2006-11-02 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Typo.



svn: r7540
2006-11-03 03:11:40 +00:00