Commit Graph

83 Commits

Author SHA1 Message Date
Alex Roitman
36413653f9 * src/GrampsDb/_WriteGedcom.py: Multiple improvements.
* various: Replace get/set_base_handle with get/set_reference_handle.
	* src/RelLib/_SourceRef.py (get_base_handle,set_base_handle):
	Remove redundant methods.


svn: r6750
2006-05-22 23:56:57 +00:00
Don Allingham
2c91f75fad 2006-05-19 Don Allingham <don@gramps-project.org>
* src/RelLib/_SecondaryObject.py: added, provide is_equal
	* src/RelLib/_Url.py: inherit from SecondaryObject
	* src/RelLib/_MediaRef.py: inherit from SecondaryObject
	* src/RelLib/_ChildRef.py: inherit from SecondaryObject
	* src/RelLib/_Name.py: inherit from SecondaryObject
	* src/RelLib/_Address.py: inherit from SecondaryObject
	* src/RelLib/_SourceRef.py: inherit from SecondaryObject
	* src/RelLib/_RepoRef.py: inherit from SecondaryObject
	* src/RelLib/_PersonRef.py: inherit from SecondaryObject
	* src/RelLib/_Attribute.py: inherit from SecondaryObject
	* src/RelLib/_Note.py: inherit from SecondaryObject
	* src/RelLib/_Location.py: inherit from SecondaryObject
	* src/RelLib/_EventRef.py: inherit from SecondaryObject
	* src/RelLib/_Event.py: inherit from SecondaryObject
	* src/RelLib/_LdsOrd.py: inherit from SecondaryObject



svn: r6720
2006-05-19 15:01:12 +00:00
Don Allingham
46068b01c1 fix marker type, search bar tuple problem
svn: r6622
2006-05-11 23:05:12 +00:00
Don Allingham
7c9539ca4c * src/PluginUtils/_ReportUtils.py: fix set_nick_name
* src/RelLib/_MediaRef.py: handle initialization of Ref object


svn: r6568
2006-05-07 04:24:23 +00:00
Don Allingham
e6b7375948 nickname/call name changes
svn: r6555
2006-05-05 21:16:24 +00:00
Alex Roitman
77f43f971e * src/RelLib/_BaseObject.py (PrivacyBase): Remove class, as it
already has its own module.


svn: r6519
2006-05-02 19:06:27 +00:00
Alex Roitman
3b3197d702 * src/GrampsDb/_GrampsDbBase.py (find_backlink_handles): Correctly
loop over all primary classes looking for a given handle.
	* src/RelLib/_Source.py (serialize, unserialize): properly save
	and restore marker.
	* src/RelLib/_MediaObject.py (serialize, unserialize): properly
	save and restore marker.
	* src/RelLib/_Place.py (serialize, unserialize): properly save and
	restore marker.
	* src/RelLib/_Repository.py (serialize, unserialize): properly
	save and restore marker.
	* src/RelLib/_Event.py (serialize, unserialize): properly save and
	restore marker.


svn: r6507
2006-05-01 23:08:09 +00:00
Alex Roitman
f9942e1e10 In .:
2006-05-01  Alex Roitman  <shura@gramps-project.org>
	* various: merge changes from gramps20.

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



svn: r6504
2006-05-01 21:11:26 +00:00
Don Allingham
fd356770ce 2006-04-30 Don Allingham <don@gramps-project.org>
* src/RelLib/_Person.py: prevent duplicate entries in family lists



svn: r6500
2006-04-30 20:45:49 +00:00
Don Allingham
291173dc52 * src/GrampsDb/_GrampsDbBase.py: pychecker
* src/GrampsDb/_GrampsBSDDB.py: pychecker
	* src/RelLib/_CalSdn.py: pychecker
	* src/RelLib/_PrivateSourceNote.py: pychecker
	* src/RelLib/_GenderStats.py: pychecker
	* src/MergePeople.py: pychecker
	* src/SelectObject.py: pychecker
	* src/ScratchPad.py: pychecker
	* src/ImgManip.py: pychecker
	* src/docgen/ODFDoc.py: pychecker
	* src/docgen/OpenOfficeDoc.py: pychecker
	* src/docgen/LPRDoc.py: pychecker
	* src/SelectEvent.py: pychecker


svn: r6418
2006-04-23 04:29:14 +00:00
Alex Roitman
335eb157fe Set properties.
svn: r6400
2006-04-21 20:13:13 +00:00
Alex Roitman
52ead8b15d * src/RelLib/_GrampsType.py (set_from_xml_str): Remove extra def.
svn: r6397
2006-04-21 19:59:16 +00:00
Don Allingham
e9f2d922f7 Attribute Types
svn: r6392
2006-04-21 18:15:23 +00:00
Don Allingham
6ed8949106 2006-04-20 Don Allingham <don@gramps-project.org>
* src/DataViews/_FamilyViews.py: clean up
	* src/DataViews/_PedigreeViews.py: clean up
	* src/RelLib/_Name.py: fix type on set_type



svn: r6387
2006-04-21 02:05:56 +00:00
Alex Roitman
dce92d31a3 * src/GrampsDb/_GrampsBSDDB.py: Upgrade to new types.
* src/GrampsDb/_ReadGedcom.py: Adapt to new types.
	* src/RelLib/_Event.py: Properly set type.
	* src/RelLib/_EventRef.py: Properly set type.
	* src/RelLib/_Family.py: Properly set type.
	* src/RelLib/_Name.py: Properly set type.
	* src/RelLib/_Person.py: Properly set type.
	* src/RelLib/_PrimaryObject.py: Properly set type.
	* src/RelLib/_RepoRef.py: Properly set type.
	* src/RelLib/_Repository.py: Properly set type.
	* src/RelLib/_Url.py: Properly set type.


svn: r6386
2006-04-21 00:03:27 +00:00
Alex Roitman
5b5cc6f6c7 Add keyword expansion
svn: r6383
2006-04-20 18:30:28 +00:00
Alex Roitman
d505dee76a 2006-04-20 Alex Roitman <shura@gramps-project.org>
* src/RelLib/_EventRef.py (unserialize): Avoid class constructor.
	* src/RelLib/_Person.py (unserialize): Avoid class constructor.
	* src/RelLib/_Name.py (unserialize): Avoid class constructor.
	* src/RelLib/_Repository.py (unserialize): Avoid class constructor.
	* src/RelLib/_RepoRef.py (unserialize): Avoid class constructor.
	* src/GrampsDb/_WriteXML.py: Update to export new types.



svn: r6382
2006-04-20 18:20:55 +00:00
Don Allingham
1d9dc8bda6 * src/RelLib/_Family.py: add remove_child_handle
svn: r6376
2006-04-20 03:44:11 +00:00
Don Allingham
f0fce6ae25 type changes
svn: r6375
2006-04-20 03:34:07 +00:00
Don Allingham
4b013db0bc Add missing file
svn: r6374
2006-04-20 03:23:12 +00:00
Don Allingham
4f1010bc65 2006-04-19 Don Allingham <don@gramps-project.org>
* src/DataViews/_EventView.py: more GrampsTypes changes
	* src/DataViews/_PedigreeView.py: more GrampsTypes changes
	* src/RelLib/_ChildRef.py: more GrampsTypes changes
	* src/RelLib/_Family.py: more GrampsTypes changes
	* src/RelLib/_Repository.py: more GrampsTypes changes
	* src/RelLib/_Event.py: more GrampsTypes changes
	* src/Editors/_EditPerson.py: more GrampsTypes changes
	* src/Editors/_EditEventRef.py: more GrampsTypes changes
	* src/Editors/_EditEvent.py: more GrampsTypes changes
	* src/PeopleModel.py: more GrampsTypes changes
	* src/DisplayTabs.py: more GrampsTypes changes
	* src/GrampsWidgets.py: more GrampsTypes changes
	* src/Utils.py: more GrampsTypes changes
	* src/PageView.py: more GrampsTypes changes



svn: r6373
2006-04-20 03:10:23 +00:00
Alex Roitman
a3a37a1712 2006-04-19 Alex Roitman <shura@gramps-project.org>
* src/Utils.py: Remove obsolete code.
	* src/DisplayTabs.py (EventRefModel.column_role): Adapt to new types.
	* src/PeopleModel.py: Adapt to new types.
	* src/plugins/TestcaseGenerator.py: Adapt to new types.
	* src/RelLib/Makefile.am: Ship new files.
	* src/RelLib/_EventRef.py: Adapt to new types.
	* src/RelLib/_PrimaryObject.py: Adapt to new types.
	* src/RelLib/_EventRoleType.py: Add new module.
	* src/RelLib/_RepoRef.py: Adapt to new types.
	* src/RelLib/_MarkerType.py: Add new module.
	* src/RelLib/_Family.py: Adapt to new types.
	* src/RelLib/_Person.py: Adapt to new types.
	* src/RelLib/_SourceMediaType.py: Add new module.
	* src/RelLib/__init__.py: Expose new modules.
	* src/Editors/_EditPerson.py: Use new type.
	* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Adapt to new types.
	* src/GrampsDb/_ConstXML.py: Comment out obsolete code.
	* src/GrampsDb/_ReadXML.py: Adapt to new types.
	* src/GrampsDb/_GrampsDbBase.py (commit_person): Properly use marker.
	* src/GrampsDb/_ReadGedcom.py: Adapt to new types.
	* src/DataViews/_FamilyView.py (write_relationship): Use new type.
	* src/DataViews/_PedigreeView.py (format_relation): Use new type.



svn: r6372
2006-04-20 00:44:44 +00:00
Don Allingham
86caffe6bd GrampsType support for FamilyRelations, Events
svn: r6371
2006-04-19 22:59:33 +00:00
Alex Roitman
38ea0a393b In .:
* src/RelLib/Makefile.am: Ship new file.
	* src/PluginUtils/_ReportUtils.py: Use fam relations from new module.
	* src/Relationship.py: Use family relations from new module.
	* src/Utils.py: Remove family relations.
	* src/RelLib/__init__.py: Expose new module.
	* src/RelLib/_Family.py: Adapt to new types.
	* src/GrampsDb/_ReadXML.py: Adapt to new types.
	* src/GrampsDb/_ConstXML.py: Remove family relations.
	* src/RelLib/_FamilyRelType.py: Add new class
In po:
2006-04-19  Alex Roitman  <shura@gramps-project.org>
	* POTFILES.in: Add new files.



svn: r6369
2006-04-19 18:27:51 +00:00
Alex Roitman
7d39f17460 * src/RelLib/_Event.py: Revert this change.
svn: r6368
2006-04-19 17:54:17 +00:00
Alex Roitman
4aee2a9898 2006-04-19 Alex Roitman <shura@gramps-project.org>
* src/RelLib/_Event.py: Add "personal" attribute to events.



svn: r6367
2006-04-19 17:31:20 +00:00
Don Allingham
a59f61a377 2006-04-18 Don Allingham <don@gramps-project.org>
* src/RelLib/__init__.py: added _EventType
	* src/RelLib/_EventType.py: added
	* src/RelLIb/Makefile.am: added _EventType.py



svn: r6363
2006-04-19 04:41:07 +00:00
Don Allingham
2fa0eabb07 * src/GrampsDb/_ReadXML.py: new types
* src/GrampsDb/_ConstXML.py: new types
	* src/GrampsDb/_WriteXML.py: new types
	* src/Editors/_EditUrl.py: new types
	* src/Editors/_EditPerson.py: new types
	* src/Editors/_EditRepository.py: new types
	* src/Editors/_EditName.py: new types
	* src/Editors/_EditChildRef.py: new types
	* src/RelLib/__init__.py: new types
	* src/RelLib/_Url.py: new types
	* src/RelLib/_RepositoryType.py: new types
	* src/RelLib/_GrampsType.py: new types
	* src/RelLib/_UrlType.py: new types
	* src/RelLib/_Repository.py: new types
	* src/RelLib/_NameType.py: new types
	* src/RelLib/_ChildRefType.py: new types
	* src/DisplayTabs.py: new types
	* src/GrampsWidgets.py: new types
	* src/Utils.py: new types


svn: r6360
2006-04-19 03:57:10 +00:00
Alex Roitman
e12c7b0de3 * src/GrampsDb/_ReadXML.py: Parse old and new XML.
* src/GrampsDb/_WriteXML.py (dump_child_ref, dump_person_ref): Add
	methods.
	* src/RelLib/_ChildRef.py (ChildRef.set_mother_relation): Adapt to
	new types;
	(ChildRef.set_father_relation): Adapt to new types.
	* src/RelLib/_GrampsType.py (GrampsType.get_custom): Add method.
	(GrampsType.set): Allow setting from the same class instance.
	(GrampsType.is_default): Add method.


svn: r6358
2006-04-19 02:23:08 +00:00
Don Allingham
3eda5ea7df fix missing file
svn: r6341
2006-04-14 04:42:45 +00:00
Don Allingham
2532be9de8 Start of new type classes
svn: r6340
2006-04-14 04:36:25 +00:00
Alex Roitman
7cd6ee2739 * src/RelLib/_PersonRef.py (serialize): Typo.
svn: r6334
2006-04-13 18:33:29 +00:00
Alex Roitman
6e6f9fbfba * src/GrampsDb/_GrampsBSDDB.py: Upgrade path to new RelLib.
* src/RelLib/_Family.py: Require non-empty child_ref.


svn: r6332
2006-04-13 18:25:52 +00:00
Alex Roitman
e01e3ee517 Updates
svn: r6330
2006-04-13 17:10:29 +00:00
Don Allingham
221259886f Start childref conversion
svn: r6327
2006-04-13 16:16:00 +00:00
Martin Hawlisch
9fdfd50bc4 * src/RelLib/*: fix different typos.
* src/DataViews/_FamilyView.py: adapt changes in RelLib
	



svn: r6326
2006-04-13 11:21:33 +00:00
Alex Roitman
064e200d0d Update
svn: r6325
2006-04-13 05:28:31 +00:00
Alex Roitman
58285333e8 Update
svn: r6323
2006-04-13 03:58:20 +00:00
Alex Roitman
cfb57b1be0 Update
svn: r6322
2006-04-13 03:37:41 +00:00
Alex Roitman
2fc20b47bf Update
svn: r6321
2006-04-13 03:34:41 +00:00
Alex Roitman
776ba17993 Add ChildRef class, reorganize RelLib.
svn: r6320
2006-04-13 03:15:22 +00:00
Alex Roitman
a7123580a7 * src/RelLib/_PersonRef.py: Add to repository.
* src/RelLib/Makefile.am: Ship new file.
	* src/RelLib/_Person.py: Add person_ref_list to store person-to-
	person references.


svn: r6317
2006-04-12 06:57:14 +00:00
Alex Roitman
b4b3ef0492 Update
svn: r6316
2006-04-12 06:54:21 +00:00
Alex Roitman
3360368431 * src/Makefile.am: Clean byte-compiled files.
* src/DataViews/Makefile.am: Clean byte-compiled files.
	* src/GrampsDb/Makefile.am: Clean byte-compiled files.
	* src/Config/Makefile.am: Clean byte-compiled files.
	* src/RelLib/Makefile.am: Clean byte-compiled files.
	* src/Editors/Makefile.am: Clean byte-compiled files.
	* src/plugins/Makefile.am: Clean byte-compiled files.
	* src/ObjectSelector/Makefile.am: Clean byte-compiled files.
	* src/TreeViews/Makefile.am: Clean byte-compiled files.
	* src/Models/Makefile.am: Clean byte-compiled files.
	* src/Mime/Makefile.am: Clean byte-compiled files.
	* src/GrampsLogger/Makefile.am: Clean byte-compiled files.
	* src/PluginUtils/Makefile.am: Clean byte-compiled files.
	* src/docgen/Makefile.am: Clean byte-compiled files.
	* src/DateHandler/Makefile.am: Clean byte-compiled files.


svn: r6295
2006-04-10 01:02:50 +00:00
Don Allingham
ffae52385f remove empty families
svn: r6293
2006-04-08 05:56:31 +00:00
Don Allingham
9261c050ea pylint fixes
svn: r6287
2006-04-07 04:54:51 +00:00
Alex Roitman
d39038c8f9 * various: Revert back to using gettext except for the modules that need context -- those will use TransUtils.sgettext
svn: r6282
2006-04-06 22:02:46 +00:00
Don Allingham
b2b8c284a9 gedcom import/export with new lds scheme
svn: r6275
2006-04-06 01:42:14 +00:00
Don Allingham
824e61b9d6 Fix place selecton on LDS ords
svn: r6274
2006-04-05 22:36:48 +00:00
Don Allingham
4f1d230de1 fix lds unserialize
svn: r6271
2006-04-05 17:15:44 +00:00