Commit Graph

347 Commits

Author SHA1 Message Date
Alex Roitman
d02a945b7a 2006-08-24 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsInMemDB.py (undo_data): Add method to take
	care of secondary indices on undo/redo;
	(_commit_inmem_base): Replace _clean_up and add more routine tasks.



svn: r7261
2006-08-25 05:00:40 +00:00
Don Allingham
ea88653704 2006-08-24 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsInMemDB.py: update maps properly on commit



svn: r7258
2006-08-25 03:35:31 +00:00
Don Allingham
7cd2ceb7cb * src/GrampsDb/_ReadGedcom.py: RESN support
* src/GrampsDb/_WriteGedcom.py: RESN support
	* src/GrampsDb/_GedTokens.py: RESN support


svn: r7243
2006-08-23 03:53:17 +00:00
Don Allingham
92f35aff02 2006-08-22 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_WriteGedcom.py: apply event type string conversion 
	fix to family types



svn: r7242
2006-08-23 03:14:06 +00:00
Don Allingham
041e762a91 * src/GrampsDb/_ReadGedcom.py: handle inline repositories better
svn: r7228
2006-08-22 04:27:59 +00:00
Don Allingham
b30874dc60 2006-08-21 Don Allingham <don@gramps-project.org>
* src/DisplayModels/_PeopleModel.py: fix handle column after removal
	of cause of death
	* src/GrampsDb/_WriteGedcom.py: handle custome events for people (bug
	# 368)



svn: r7226
2006-08-22 03:19:37 +00:00
Alex Roitman
b64e1f0eb2 * src/DataViews/_PersonView.py (column_names): Remove cause of death.
* src/DisplayModels/_PeopleModel.py (__init__): Update the order
	of marker and tooltip columns;
	(column_cause_of_death): remove method;
	(COLUMN_DEFS): Remove 'cause of death' column.
	* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_10): Reset event
	and person view columns to the default.
	* src/GrampsDb/_GrampsDbBase.py (get_event_column_order): Remove
	cause column from the default list.
	(get_person_column_order): Remove cause of death column.



svn: r7224
2006-08-21 06:32:31 +00:00
Alex Roitman
74ec4d41f5 * src/GrampsDb/_ReadGedcom.py (GedcomParser.__init__): Use config
setting to determine whether to set default source.


svn: r7223
2006-08-21 05:42:56 +00:00
Alex Roitman
cd50843624 2006-08-20 Alex Roitman <shura@gramps-project.org>
* src/Config/_GrampsConfigKeys.py: Regenerate file.
	* src/GrampsCfg.py (add_behavior_panel): Use new key.
	* data/gramps.schemas.in: Add default-source key.



svn: r7222
2006-08-21 05:32:07 +00:00
Alex Roitman
5c59929c66 Update
svn: r7221
2006-08-21 03:48:54 +00:00
Don Allingham
d82e015c51 2006-08-20 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py: fix CHAN parsing for family



svn: r7220
2006-08-21 03:39:13 +00:00
Alex Roitman
a5a8303768 * src/GrampsDb/_GrampsDbBase.py (GrampsDbBase._sortbyname): Remove
obsolete method.


svn: r7201
2006-08-18 05:59:44 +00:00
Alex Roitman
655dc48a92 2006-08-17 Alex Roitman <shura@gramps-project.org>
* src/NameDisplay.py: Correct constants to accomodate Name change.
	* src/GrampsDb/_GrampsBSDDB.py: Upgrade the names.
	* src/RelLib/_Name.py: Remove sname attribute.



svn: r7200
2006-08-18 05:49:25 +00:00
Don Allingham
523de01614 * src/GrampsDb/_WriteGedcom.py: support for AGE, CAUSE, and AGENCY
svn: r7185
2006-08-16 02:31:29 +00:00
Don Allingham
bf2c6e6e08 2006-08-15 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py: support for AGE, CAUSE, and AGENCY
	* src/GrampsDb/_GedTokens.py: support for AGE and AGENCY



svn: r7184
2006-08-16 00:30:37 +00:00
Alex Roitman
774d9300e2 Update
svn: r7183
2006-08-15 21:03:49 +00:00
Alex Roitman
8f188fee5e * src/GrampsDb/_ReadXML.py (start_attribute): Support attributes
in event and eventref;
	(stop_cause): Create attribute on cause tag.
	* src/Editors/_EditEventRef.py (_create_tabbed_pages): Typos.
	* src/Editors/_EditEvent.py (_create_tabbed_pages): Typo.
	* data/grampsxml.rng: Document XML changes (xml 1.1.2).
	* data/grampsxml.dtd: Document XML changes (xml 1.1.2).
	* src/GrampsDb/_WriteXML.py (dump_event_ref): Write attributes;
	(write_event): write attributes, remove cause.


svn: r7182
2006-08-15 20:59:12 +00:00
Alex Roitman
bd18b2f976 2006-08-15 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py: Cleanup on upgrades.



svn: r7181
2006-08-15 15:33:28 +00:00
Alex Roitman
45d0d40c2b 2006-08-14 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_10): Add an upgrade
	path from 2.1.91.
	* src/RelLib/_AttributeType.py: Add new attribute types for events
	and event references.
	* src/RelLib/_EventRef.py: Add attribute list.
	* src/RelLib/_Event.py: Add attribute list.



svn: r7180
2006-08-15 05:24:38 +00:00
Alex Roitman
4f94f6a639 (close): Close metadata after the checkpoint.
svn: r7165
2006-08-13 00:23:06 +00:00
Alex Roitman
0107f7871a * src/GrampsDb/_GrampsBSDDB.py: Fix new db creation; make metadata
work with UseTXN set either way.


svn: r7162
2006-08-12 21:55:52 +00:00
Alex Roitman
58cc43816c * src/GrampsDb/_GrampsBSDDB.py: Use txn-capable metadata.
svn: r7154
2006-08-11 23:46:24 +00:00
Alex Roitman
096c7dde80 * src/GrampsDb/_GrampsBSDDB.py (GrampsBSDDB.close): Try to reset
the log sequence numbers to make grdb file portable.


svn: r7141
2006-08-07 02:00:14 +00:00
Alex Roitman
13edf04889 2006-08-01 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (set_name_group_mapping): Use
	transaction.



svn: r7108
2006-08-01 16:24:27 +00:00
Zsolt Foldvari
a16b488d1d 2006-07-31 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/NameDisplay.py: Rewrite in more object oriented way; Interface
	change.
	* src/ViewManager.py (post_load_newdb): Change of NameDisplay interface.
	* src/GrampsDb/_ReadXML.py (parse): Change of NameDisplay interface.
	* src/GrampsDb/_ReadGrdb.py (importData): Change of NameDisplay
	interface.
	* src/GrampsCfg.py: Change of NameDisplay interface; Name format Edit
	and Add callbacks divided.
	* src/RelLib/_Name.py: Default/standard name format definitions moved to
	NameDisplay.
	* src/Editors/_EditName.py (_setup_fields): Change of NameDisplay
	interface.
	* src/plugins/Check.py (cleanup_deleted_name_formats): Change of
	NameDisplay interface.



svn: r7099
2006-07-31 11:08:44 +00:00
Don Allingham
e9cf818b7c * src/GrampsDb/_ReadGedcom.py: handle missing event type
svn: r7098
2006-07-31 00:38:31 +00:00
Alex Roitman
7cf2dc0785 (find_backlink_handles): Work around readonly db problems;
(_get_obj_from_gramps_id): Work around readonly db problems.


svn: r7087
2006-07-28 04:10:43 +00:00
Alex Roitman
e7cc55ddc2 Update
svn: r7086
2006-07-27 20:11:56 +00:00
Alex Roitman
787fe452e1 2006-07-27 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (_load_metadata): Upgrade custom
	name formats.
	* src/GrampsDb/_ReadXML.py (start_format): Attempt parsing the
	active state for the custom name format.
	* src/GrampsDb/_WriteXML.py (write_name_formats): Write 4-tuple
	custom name formats; 
	(_xml_version): Output as version 1.1.1.
	* data/grampsxml.rng: Update XML description for 1.1.1.
	* data/grampsxml.dtd: Update XML description for 1.1.1.
	* src/ViewManager.py (post_load_newdb): Revert changes (done on
	the lower level).
	* src/NameDisplay.py (register_custom_formats): Revert changes (done on
	the lower level).



svn: r7085
2006-07-27 17:44:02 +00:00
Alex Roitman
b5940487eb 2006-07-24 Alex Roitman <shura@gramps-project.org>
* configure.in: Bump up the version number.
	* src/GrampsDb/_GrampsBSDDB.py (find_fidmap): Remove unused method.



svn: r7072
2006-07-25 06:11:27 +00:00
Alex Roitman
871180a272 Update
svn: r7071
2006-07-25 00:24:15 +00:00
Alex Roitman
51c468f672 * src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Map Other from
gramps2.0.x to Unknown.
	* src/GrampsDb/_ReadXML.py (start_name): Map Other from
	gramps2.0.x to Unknown.
	(start_database): Add method to extract the XML version.


svn: r7070
2006-07-25 00:01:08 +00:00
Don Allingham
d267e48ccf 2006-07-23 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py (GedcomParser.func_person_even): set
	default type for an event to CUSTOM



svn: r7061
2006-07-23 17:46:58 +00:00
Alex Roitman
54a6eeb818 * src/ArgHandler.py (ArgHandler.cl_export): Properly expand filename.
* src/GrampsDb/_WriteGrdb.py (exportData): Use placeholder if
	callback is None.


svn: r7042
2006-07-19 04:56:41 +00:00
Alex Roitman
26d491b230 2006-07-18 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py
	(GrampsBSDDB._delete_primary_from_reference_map): defer deleting
	until the cursor is closed.



svn: r7040
2006-07-19 04:29:04 +00:00
Don Allingham
913d4f4772 * src/GrampsDb/_GrampsBSDDB.py: disable TXN for readonly dbs
svn: r7028
2006-07-15 05:14:39 +00:00
Alex Roitman
154787c06c 2006-07-06 Alex Roitman <shura@gramps-project.org>
* src/ViewManager.py (ViewManager.post_load_newdb): Register
	custom formats after loading the db.
	* src/GrampsCfg.py: Switch to use new formats (still in progress).
	* src/GrampsDb/_GrampsDbBase.py (GrampsDbBase.__init__): Set up
	custom name formats list.
	* src/GrampsDb/_DbUtils.py (db_copy): Copy custom name formats.
	* src/GrampsDb/_ReadXML.py (start_format): Parse custom formats.
	* src/GrampsDb/_WriteXML.py (write_name_formats): Add method.
	* src/GrampsDb/_GrampsBSDDB.py (GrampsBSDDB._load_metadata) 
	(GrampsBSDDB._close_metadata): load and save name_formats.
	* src/Editors/_EditName.py (EditName._setup_fields): Use proper
	format lists.
	* src/NameDisplay.py: Support new name formats scheme.
	* src/RelLib/_Name.py (Name.DEFAULT_FORMATS): Add list of formats.



svn: r6999
2006-07-06 17:46:46 +00:00
Don Allingham
051f992afb 2006-07-04 Don Allingham <don@gramps-project.org>
* various: pyflakes fixes



svn: r6992
2006-07-04 23:38:51 +00:00
Alex Roitman
39cd47357d Test
svn: r6988
2006-07-04 05:50:24 +00:00
Alex Roitman
cf302f8a39 Test
svn: r6987
2006-07-04 05:46:48 +00:00
Alex Roitman
b0dfc2a0cc Test
svn: r6986
2006-07-04 05:43:22 +00:00
Don Allingham
1353edcca9 * src/GrampsDb/_DbUtils.py (remove_parent_from_family): adjust the
transaction message for appropriate father/mother indicator


svn: r6976
2006-07-01 03:58:45 +00:00
Alex Roitman
f44c52289b * src/GrampsDb/_WriteGedcom.py: Prevent writing empty value tags.
svn: r6957
2006-06-24 04:28:43 +00:00
Don Allingham
acca9a14bd 2006-06-23 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_ReadXML.py: fix syntax error with old ref formats



svn: r6951
2006-06-23 17:10:05 +00:00
Don Allingham
dc4b7dab9d 2006-06-22 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsDbBase.py: remove unused variable
	* src/Editors/_EditPlace.py: Allow duplicate names
	* src/Editors/_EditFamily.py: improve error message



svn: r6950
2006-06-23 04:13:06 +00:00
Don Allingham
d9f1827ddb 2006-06-21 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_ReadXML.py: handle witness ref properly



svn: r6949
2006-06-22 21:23:00 +00:00
Alex Roitman
b3a8324b78 2006-06-22 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_WriteGedcom.py (GedcomWriter.__init__): Typo.



svn: r6946
2006-06-22 18:32:16 +00:00
Don Allingham
fcf5cfbc48 * src/GrampsDb/_WriteGedcom.py: export QUAY
svn: r6901
2006-06-16 18:38:06 +00:00
Don Allingham
4cf930d039 * src/GrampsDb/_GrampsDbBase.py: prevent null event types and
attribute types from being added
	* src/Editors/_EditAttribute.py: prevent null attribute types
	* src/Editors/_EditEvent.py: prevent null attribute types
	* src/AutoComp.py: filter out empty strings
	* src/ImgManip.py: check for file before attempting thumbnailer


svn: r6898
2006-06-16 03:32:51 +00:00
Alex Roitman
23cd9319f6 * src/GrampsDb/_WriteGedcom.py (write_photo): Typo.
svn: r6893
2006-06-15 16:46:12 +00:00