Commit Graph

215 Commits

Author SHA1 Message Date
Brian Matherly
17c3ef4e9b Save and load books properly.
svn: r10172
2008-03-02 23:03:52 +00:00
Raphael Ackermann
c962d5e6e1 2008-02-22 Raphael Ackermann <raphael.ackermann@gmail.com>
* various (294 files)
	pep8 doc fixes & pylint fixes

svn: r10103
2008-02-24 13:55:55 +00:00
Raphael Ackermann
90f883e46d 2008-02-18 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/* 143 files
    * test/try_tree_model.py
    * windows/nsis/gcheck.py
    imports cleanup

svn: r10055
2008-02-18 20:07:09 +00:00
Benny Malengier
a1897e68d9 * src/plugins/MediaManager.py: conversion functions of path
* src/Utils.py: general methods to convert abs to rel
	* src/Editors/AddMedia.py: show existing descr and select file if pos
	* src/Editors/_EditPerson.py: view photo needs db for media path
	* src/Editors/_EditMedia.py: better path/mime handling
	* src/DataViews/MediaView.py: use full path to view
	Start of issue #1208

2008-02-11 Benny Malengier <benny.malengier@gramps-project.org>


svn: r10017
2008-02-11 22:27:24 +00:00
Raphael Ackermann
eac853ccb7 2008-01-17 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/ScratchPad.py: remove tooltip for events as it crashes.
    * src/Utils.py: cleanup

svn: r9869
2008-01-17 20:24:44 +00:00
Doug Blank
671726bf60 * src/DbManager.py: typo %{}s -> %()s; fixed rcs -q issue
* src/Utils.py: typo %{}s -> %()s 

2007-12-16  Douglas S. Blank  <dblank@cs.brynmawr.edu>


svn: r9521
2007-12-16 17:35:16 +00:00
Doug Blank
9871fcf645 2007-12-12 Douglas S. Blank <dblank@doraemon.brynmawr.edu>
* src/GrampsCfg.py: added Translation -> Pattern -> Translation
	so that one can see fully translated text, even if they type in
	English, or %codes
	* src/Utils.py: Fixed two bugs in translations of keywords
	* src/test/utils_test.py: unit tests for keywords/translations



svn: r9493
2007-12-12 16:24:40 +00:00
Doug Blank
f141905e0b 2007-12-11 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/GrampsCfg.py: added keyword and translation functions
	* src/Utils.py: Name Display Editor should work in locale



svn: r9491
2007-12-12 03:59:18 +00:00
James G Sack
63a3f8479b switch CLI import to TEMP_DIR location; see new Utils functs
svn: r9409
2007-11-26 05:41:04 +00:00
Doug Blank
d6deb0c95b * src/gen/lib/date.py: added comparison operator for match()
* src/Utils.py: uses new match comparison

2007-11-21  Douglas S. Blank  <dblank@cs.brynmawr.edu>


svn: r9382
2007-11-21 20:05:18 +00:00
Doug Blank
9ee75010b6 2007-11-21 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/Utils.py: probably_alive now takes date rather than year
	* src/gen/proxy/living.py: create date from year
	* src/gen/lib/date.py: added methods to do date math
	  and return Date object (set_yr_mon_day_offset, copy_offset_ymd)
	* src/plugins/Calendar.py: updated to use probably alive date
	* src/Filters/Rules/Person/_ProbablyAlive.py: parse entry as date



svn: r9379
2007-11-21 14:49:50 +00:00
Martin Hawlisch
802f0eb33f Trying to fix unicode filename handling on Windows. Patch ported from 2.2.
svn: r9354
2007-11-16 16:45:45 +00:00
Doug Blank
b444a96dbe * src/Utils.py: uses MAX_AGE_PROB_ALIVE, MAX_SIB_AGE_DIFF, MIN_GENERATION_YEARS, AVG_GENERATION_GAP from Config (Bug #1217)
* src/Config/_GrampsConfigKeys.py: added MAX_AGE_PROB_ALIVE, MAX_SIB_AGE_DIFF, MIN_GENERATION_YEARS, AVG_GENERATION_GAP

2007-10-13  Douglas S. Blank  <dblank@cs.brynmawr.edu>


svn: r9177
2007-10-14 03:29:12 +00:00
Don Allingham
d58641415d 2007-10-08 Don Allingham <don@gramps-project.org>
* various: gen.lib integration. probably touches almost every file

	* various: gen.utils integration


svn: r9101
2007-10-08 16:41:39 +00:00
Don Allingham
2fdae3eff8 * src/Reorder.py: cleanup
* src/TransUtils.py: cleanup
	* src/TipOfDay.py: cleanup
	* src/SubstKeywords.py: cleanup
	* src/Utils.py: cleanup
	* src/soundex.py: cleanup
	* src/Sort.py: cleanup

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


svn: r8955
2007-09-10 03:03:46 +00:00
Brian Matherly
febd6e9ed5 Add MenuOptions class for report options.
svn: r8926
2007-09-05 03:02:50 +00:00
Don Allingham
5588a61f03 2007-08-29 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsDBDir.py: fast unserialize()
	* src/Editors/_EditPerson.py: fast unserialize()
	* src/RelLib/_SourceBase.py: fast unserialize()
	* src/RelLib/_Source.py: fast unserialize()
	* src/RelLib/_MediaObject.py: fast unserialize()
	* src/RelLib/_Person.py: fast unserialize()
	* src/RelLib/_DateBase.py: fast unserialize()
	* src/RelLib/_ChildRef.py: fast unserialize()
	* src/RelLib/_Name.py: fast unserialize()
	* src/RelLib/_Family.py: fast unserialize()
	* src/RelLib/_Place.py: fast unserialize()
	* src/RelLib/_RepoRef.py: fast unserialize()
	* src/RelLib/_Note.py: fast unserialize()
	* src/RelLib/_EventRef.py: fast unserialize()
	* src/RelLib/_Repository.py: fast unserialize()
	* src/RelLib/_Event.py: fast unserialize()
	* src/Utils.py: all callgraph to profile
	


svn: r8890
2007-08-29 23:01:16 +00:00
Don Allingham
f3d39e5f33 2007-07-18 Don Allingham <don@gramps-project.org>
* src/ReportBase/_StyleEditor.py: get rid of Utils.destroy_passed_object
	* src/Utils.py: Remove unused functions
	* src/ScratchPad.py: get_note removal



svn: r8741
2007-07-19 03:48:38 +00:00
Alex Roitman
74ad7b95a4 * src/TreeViews/_PersonTreeView.py: Use name_displayer.
* src/ReportBase/_ReportUtils.py: Use name_displayer.
	* src/ReportBase/_CommandLineReport.py: Use name_displayer.
	* src/ReportBase/_BareReportDialog.py: Use name_displayer.
	* src/PluginUtils/_Tool.py: Use name_displayer.
	* src/plugins/TimeLine.py: Use name_displayer.
	* src/plugins/RelCalc.py: Use name_displayer.
	* src/plugins/ReadGrdb.py: Use name_displayer.
	* src/plugins/NarrativeWeb.py: Use name_displayer.
	* src/plugins/IndivComplete.py: Use name_displayer.
	* src/plugins/GraphViz.py: Use name_displayer.
	* src/plugins/FindDupes.py: Use name_displayer.
	* src/plugins/FamilyGroup.py: Use name_displayer.
	* src/plugins/DetDescendantReport.py: Use name_displayer.
	* src/plugins/DetAncestralReport.py: Use name_displayer.
	* src/plugins/DesGraph.py: Use name_displayer.
	* src/plugins/DescendReport.py: Use name_displayer.
	* src/plugins/DescendChart.py: Use name_displayer.
	* src/plugins/Check.py: Use name_displayer.
	* src/plugins/Ancestors.py: Use name_displayer.
	* src/plugins/AncestorReport.py: Use name_displayer.
	* src/plugins/AncestorChart2.py: Use name_displayer.
	* src/ObjectSelector/_PersonTreeFrame.py: Use name_displayer.
	* src/ObjectSelector/_PersonFrame.py: Use name_displayer.
	* src/Merge/_MergePerson.py: Use name_displayer.
	* src/GrampsDbUtils/_WriteGedcom.py: Use name_displayer.
	* src/GrampsDbUtils/_ReadXML.py: Use name_displayer.
	* src/GrampsDbUtils/_GedcomParse.py: Use name_displayer.
	* src/FilterEditor/_ShowResults.py: Use name_displayer.
	* src/FilterEditor/_EditRule.py: Use name_displayer.
	* src/Editors/_EditPrimary.py: Use name_displayer.
	* src/Editors/_EditPersonRef.py: Use name_displayer.
	* src/Editors/_EditPerson.py: Use name_displayer.
	* src/Editors/_EditName.py: Use name_displayer.
	* src/Editors/_EditLdsOrd.py: Use name_displayer.
	* src/Editors/_EditFamily.py: Use name_displayer.
	* src/DisplayTabs/_PersonRefModel.py: Use name_displayer.
	* src/DisplayTabs/_NameModel.py: Use name_displayer.
	* src/DisplayTabs/_ChildModel.py: Use name_displayer.
	* src/DisplayTabs/_BackRefModel.py: Use name_displayer.
	* src/DisplayModels/_PeopleModel.py: Use name_displayer.
	* src/DisplayModels/_FamilyModel.py: Use name_displayer.
	* src/DataViews/_PersonView.py: Use name_displayer.
	* src/DataViews/_RelationView.py: Use name_displayer.
	* src/DataViews/_PedigreeView.py: Use name_displayer.
	* src/Utils.py: Use name_displayer.
	* src/SubstKeywords.py: Use name_displayer.
	* src/Sort.py: Use name_displayer.
	* src/Reorder.py: Use name_displayer.
	* src/PageView.py (BookMarkView.add_bookmark): Use name_displayer.
	* src/Navigation.py: Use name_displayer.
	* src/DisplayState.py: Use name_displayer.
	* src/GrampsCfg.py: Use name_displayer.
	* src/Bookmarks.py (Bookmarks.make_label): Use name_displayer.
	* src/GrampsDb/Makefile.am (pkgdata_PYTHON): Ship new files.
	* src/Makefile.am (gdir_PYTHON): Ship ProgressDialog.py


svn: r8680
2007-06-28 05:41:40 +00:00
Don Allingham
c0737ebfe3 2007-06-24 Don Allingham <don@gramps-project.org>
* configure.in: add files
	* src/DataViews/_RelationView.py: fix translation argument
	* src/RelLib/Makefile.am: Add missing files
	* src/plugins/Makefile.am: Add missing files
	* src/DbManager.py: fix translation argument
	* src/Utils.py: fix translation argument
	* src/Filters/Rules/Person/Makefile.am: Add missing files
	* src/Makefile.am: Add missing files



svn: r8661
2007-06-25 04:57:53 +00:00
Don Allingham
30ce0c5291 2007-04-01 Don Allingham <don@gramps-project.org>
* src/DataViews/_PedigreeView.py: display matches in statusbar
	* src/DataViews/_PersonView.py: display matches in statusbar
	* src/DataViews/_RelationView.py: display matches in statusbar
	* src/DisplayState.py: display matches in statusbar
	* src/DisplayModels/_BaseModel.py: display matches in statusbar
	* src/DisplayModels/_PeopleModel.py: display matches in statusbar
	* src/GrampsDbUtils/_GedcomParse.py: display matches in statusbar
	* src/PageView.py: display matches in statusbar
	* src/Filters/_SearchBar.py: display matches in statusbar
	* src/DbManager.py: fix default file name



svn: r8346
2007-04-01 22:37:10 +00:00
Zsolt Foldvari
cbd230e24b 2007-03-27 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/GrampsDb/_GrampsDbBase.py: add note_bookmarks.
	* src/DataViews/_NoteView.py: 'add' and 'remove' functionalities added.
	* src/Editors/_EditNote.py: DeleteNoteQuery added.
	* src/DisplayTabs/_NoteModel.pya: unnecessary delete_tags call removed.
	* src/Utils.py: get_referents() and get_note_referents added();
	get_source_referents() and get_media_referents() rewritten.



svn: r8326
2007-03-27 18:28:26 +00:00
Richard Taylor
70e12c490e Moved NameDisplay into BasicUtils.
svn: r8197
2007-02-20 20:56:48 +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
b5aa6154b3 * src/Utils.py: handle missing/invalid encoding
* src/DisplayModels/_BaseModel.py: handle None vs. 0


svn: r7997
2007-01-27 23:08:08 +00:00
Alex Roitman
58b1a424bb 2007-01-22 Alex Roitman <shura@gramps-project.org>
* src/Editors/_EditSource.py (query_response): Remove sourcerefs
	from repos (indirectly, through secondary objects).
	* src/Editors/_EditPlace.py (query_response): Avoid db walk.
	* src/DataViews/_FamilyList.py (remove): Set busy cursor.
	* src/DataViews/_PlaceView.py (remove): Set busy cursor.
	* src/DataViews/_SourceView.py (remove): Set busy cursor.
	* src/DataViews/_MediaView.py (remove): Set busy cursor.
	* src/DataViews/_EventView.py (remove): Set busy cursor.
	* src/DataViews/_RepositoryView.py (remove): Set busy cursor.
	* src/Editors/_EditEventRef.py (DelEventQuery): Remove unneeded class.
	* src/Filters/Rules/_HasTextMatchingSubstringOf.py: Remove
	unneeded import.
	* src/Filters/Rules/Person/_HasTextMatchingSubstringOf.py
	(cache_sources): Adapt to changes in get_source_referents.
	* src/Utils.py (get_source_referents): Use reference map, add
	repositories to the search results;
	(get_media_referents): Use reference map.



svn: r7958
2007-01-23 03:37:13 +00:00
Alex Roitman
d6f654a0e0 2007-01-20 Alex Roitman <shura@gramps-project.org>
* src/Utils.py (profile): Accept and pass additional arguments.
	* src/DataViews/_PersonView.py (delete_person_response): Busy cursor.



svn: r7937
2007-01-20 09:35:40 +00:00
Don Allingham
1a674f00be 2007-01-18 Don Allingham <don@gramps-project.org>
* src/DataViews/Utils.py: add profile function



svn: r7931
2007-01-19 05:16:41 +00:00
Don Allingham
d5ff16800a 2007-01-07 Don Allingham <don@gramps-project.org>
* src/RelLib/*.py: pylint fixes

2007-01-07  Douglas S. Blank <dblank@cs.brynmawr.edu>
	* src/Utils.py: probably_alive patch



svn: r7878
2007-01-08 01:49:33 +00:00
Don Allingham
231f9a1277 2006-11-21 Don Allingham <don@gramps-project.org>
* src/Utils.py (probably_alive): use get_primary_event_ref_list()
	* src/RelLib/_Person.py: Add get_primary_event_ref_list()



svn: r7663
2006-11-21 16:20:35 +00:00
Don Allingham
07e95ca171 * src/Utils.py: probably_alive should onlyuse primary events
svn: r7655
2006-11-20 04:50:59 +00:00
Don Allingham
433710c483 2006-10-01 Don Allingham <don@gramps-project.org>
* src/Utils.py: catch divide by zero case
	* src/ViewManager.py: change change to same page (#410)



svn: r7339
2006-10-02 02:10:12 +00:00
Brian Matherly
75fe94b45a * src/plugins/GraphViz.py: launch image viewer in Windows.
* src/Mime/_WinMime.py: handle rundll32.exe applications.
* src/Utils.py: search path in Windows when looking for applications.

svn: r7055
2006-07-22 05:52:16 +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
Brian Matherly
3f9adb3771 Add mime support for Windows platform
svn: r6911
2006-06-18 20:58:25 +00:00
Alex Roitman
54e3f6908d * src/Utils.py: move event/attr constants to GedcomInfo.
* src/plugins/TestcaseGenerator.py: Use new methods.
	* src/DisplayTabs/_LdsModel.py: Use new methods.
	* src/Editors/_EditLdsOrd.py: Use new methods.
	* src/RelLib/_LdsOrd.py: Add new methods.
	* src/GrampsDb/_WriteGedcom.py: Do not import unused module.
	* src/GrampsDb/_ReadXML.py: Use methods from LdsOrd.
	* src/lds.py: Rename to LdsUtils.py
	* src/GrampsDb/_ReadGedcom.py: Use new module name.
	* src/Makefile.am (gdir_PYTHON): Ship new file.



svn: r6770
2006-05-24 05:28:33 +00:00
Alex Roitman
d1d1c2fb5b 2006-05-23 Alex Roitman <shura@gramps-project.org>
* src/Utils.py (probably_alive): Adapt to new birth/death refs.



svn: r6763
2006-05-23 20:31:39 +00:00
Don Allingham
ed6e277141 svn: r6703 2006-05-18 03:14:55 +00:00
Alex Roitman
8a8d5342ce * src/Exporter.py (Exporter.native_export): Use callback.
* src/Utils.py (get_new_filename): Add path separator.
	* src/GrampsDb/_WriteGrdb.py: Proper export of tables with and
	without transaction support, add callback.


svn: r6600
2006-05-09 23:15:38 +00:00
Alex Roitman
3fe3482efb 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
Alex Roitman
cd4ee9ca0b 2006-04-23 Alex Roitman <shura@gramps-project.org>
* src/Utils.py: Make set_titles call ManagedWindow.set_titles
	with warning.
	* src/ManagedWindow.py: move set_titles here.
	* src/plugins/FilterEditor.py: Use new set_window method.
	* src/Editors/_Edit*.py: new set_window method.
	



svn: r6425
2006-04-23 22:18:01 +00:00
Don Allingham
32f6564a01 Attribute Types
svn: r6392
2006-04-21 18:15:23 +00:00
Alex Roitman
2e60bbe16e svn: r6378 2006-04-20 04:59:04 +00:00
Don Allingham
a71ac389b2 type changes
svn: r6375
2006-04-20 03:34:07 +00:00
Don Allingham
bd7b3136e8 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
cd5518015b 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
41a9e9205c GrampsType support for FamilyRelations, Events
svn: r6371
2006-04-19 22:59:33 +00:00
Alex Roitman
90832a683e 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
Don Allingham
b82376fb66 * 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
Don Allingham
e99a795581 Start of new type classes
svn: r6340
2006-04-14 04:36:25 +00:00
Martin Hawlisch
b2d59995e3 Adapt to changes in RelLib
svn: r6336
2006-04-13 19:29:36 +00:00
Alex Roitman
7a61396025 Add ChildRef class, reorganize RelLib.
svn: r6320
2006-04-13 03:15:22 +00:00
Alex Roitman
57d6df04c9 * 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
0335638bf4 command handling
svn: r6233
2006-03-30 16:04:20 +00:00
Don Allingham
eb76d53d9e fix launch routine
svn: r6230
2006-03-30 03:24:04 +00:00
Don Allingham
071ae0ac9a dialog fixes, replace fork with spawn
svn: r6226
2006-03-29 22:51:27 +00:00
Don Allingham
389fa7263e scratchpad/drag-n-drop fixes
svn: r6194
2006-03-22 23:03:57 +00:00
Martin Hawlisch
d6a44469e0 Add wrappers for displaying the tuple types to unify their usage.
svn: r6193
2006-03-22 21:19:32 +00:00
Don Allingham
32bfafecc9 speed improvements until object selector is functional
svn: r6175
2006-03-19 03:25:31 +00:00
Alex Roitman
93add4967a * various: Use TransUtils.sgettext instead of gettext.gettext to work out stripping the context.
svn: r6155
2006-03-16 20:24:27 +00:00
Don Allingham
71b3c72d70 relocate glade files
svn: r6075
2006-03-04 22:53:46 +00:00
Alex Roitman
7286845b75 Add Mime package
svn: r6047
2006-03-03 00:23:04 +00:00
Don Allingham
26092c071a * src/AddrEdit.py: remove already_exist check in favor of exception
* src/AttrEdit.py: remove already_exist check in favor of exception
* src/DisplayState.py: remove already_exist variable
* src/DisplayTabs.py: handle exception
* src/EditEventRef.py: remove already_exist check in favor of exception
* src/EditFamily.py: update to derive from EditPrimary
* src/EditMedia.py: update to derive from EditPrimary
* src/EditMediaRef.py: remove already_exist check in favor of exception
* src/EditPerson.py: update to derive from EditPrimary
* src/EditPlace.py: update to derive from EditPrimary
* src/EditRepository.py:update to derive from EditPrimary
* src/EditSource.py: update to derive from EditPrimary
* src/EditSourceRef.py: remove already_exist check in favor of exception
* src/Errors.py: new exception
* src/EventEdit.py: update to derive from EditPrimary
* src/EventView.py: catch exception of window already exists
* src/FamilyList.py: catch exception of window already exists
* src/FamilyView.py: catch exception of window already exists
* src/GrampsWidgets.py: typos
* src/NameEdit.py: remove already_exist check in favor of exception
* src/PedView.py: catch exception of window already exists
* src/PersonView.py: catch exception of window already exists
* src/PlaceView.py: catch exception of window already exists
* src/Plugins.py: catch exception of window already exists
* src/UrlEdit.py: remove already_exist check in favor of exception
* src/const.py.in: dynamically determine path
* src/gramps.glade: name changes
* src/gramps.py: set path


svn: r6014
2006-03-01 05:08:11 +00:00
Alex Roitman
2b96e371e1 * various: merge changes made in gramps20 up until R2_0_10_real tag.
* configure.in: Bump up release number.
* Release: Version 2.0.10 "Holy Hand Grenade of Antioch" released.


svn: r6011
2006-02-28 19:54:35 +00:00
Don Allingham
388b3bad33 * src/AddMedia.py: relative path support
* src/AddrEdit.py: add DisplayTab support
* src/DdTargets.py: repository references support
* src/DisplayTabs.py: repository reference support
* src/EditMedia.py: save support
* src/EditSource.py: save support
* src/ImageSelect.py: remove unused stuff
* src/Sources.py: use object instead of gobject.TYPE_PYOBJECT
* src/Utils.py: relative path calculator
* src/ViewManager.py: change cwd to directory of the file so that
relative paths work
* src/edit_person.glade: fix size
* src/gramps.glade: add relative path indicator
* src/GrampsDb/_ReadGedcom.py: remove useless compare


svn: r5883
2006-02-04 23:29:44 +00:00
Alex Roitman
de0559e32c * RelLib/_*.py: Make objects serialize all the way down to built-in
python objects, so that Gramps classes are never pickled.
* Date.py, CalSdn.py: Move to RelLib.
* src/dates/Date_*.py: Use new Date.
* src/plugins/*.py: Use new Date.
* src/GrampsDb/_*.py: Use new Date, new unserialize.
* src/*.py: Use new Date.


svn: r5875
2006-02-03 22:03:53 +00:00
Don Allingham
15bc78db47 * src/DisplayTabs.py: Hook up editors
* src/EditFamily.py: Add _DND_TYPE
* src/UrlEdit.py: Add type selector
* src/Utils.py: add type/string maps for url types
* src/gramps.glade: add type selector comboboxentry
* src/ObjectSelector/_ObjectSelectorWindow.py: fix window management
so that the system is closed properly


svn: r5863
2006-02-01 21:57:11 +00:00
Don Allingham
195a285edd update
svn: r5818
2006-01-22 03:05:48 +00:00
Don Allingham
57b4c9dbc2 * src/PeopleModel.py: fix sorting of subnames
* src/Utils.py: fix GEDCOM mappings
* src/GrampsDb/_ReadGedcom.py:  More updates, bring up to the new RelLib


svn: r5816
2006-01-22 02:06:46 +00:00
Don Allingham
34435d8711 * src/GnomeMime.py: GNOME based mime handling
* src/PythonMime.py: Python based mime handling
* src/AddMedia.py: gnome code isolation
* src/DisplayState.py: gnome code isolation
* src/EditPerson.py: gnome code isolation
* src/EditRepository.py: gnome code isolation
* src/GnomeMime.py: gnome code isolation
* src/GrampsDisplay.py: gnome code isolation
* src/GrampsMime.py: gnome code isolation
* src/ImageSelect.py: gnome code isolation
* src/ImgManip.py: gnome code isolation
* src/PluginMgr.py: toolbar/menu support
* src/Plugins.py: toolbar/menu support
* src/RepositoryRefEdit.py: gnome code isolation
* src/SelectObject.py: gnome code isolation
* src/Utils.py: gnome code isolation
* src/ViewManager.py: toolbar/menu support, gnome code isolation
* src/GrampsDb/_GrampsBSDDB.py: unified messaging
* src/GrampsDb/_ReadGedcom.py: unified messaging
* src/plugins/WriteFtree.py: gnome code isolation


svn: r5636
2005-12-28 22:58:26 +00:00
Richard Taylor
4d36b334bc * src/ImageSelect.py: changed display_refs to use find_backlink_handles and updated
GlobalMediaProperties to use new UI model.
	* src/MediaView.py: changed call to GlobalMediaProperties to use new UI params.
	* src/Utils.py: added support for Gtk.labels to bold/unbold/temp label util funcs.


svn: r5617
2005-12-22 13:35:37 +00:00
Alex Roitman
3a323a757a * src/RelLib.py (RepoRef): Typos.
* src/Utils.py: Typos.


svn: r5562
2005-12-16 06:03:15 +00:00
Alex Roitman
b08882b5b2 * various: merge changes made in gramps20 up until R2_0_9 tag.
svn: r5544
2005-12-13 02:07:16 +00:00
Alex Roitman
2f962b5f96 merge changes from gramps20
svn: r5482
2005-12-06 06:38:09 +00:00
Martin Hawlisch
4b8208ead1 * src/PageView.py (button_press): Catch problem with no loaded database
* src/PersonView.py (button_press): Catch problem with no loaded database
* src/GrampsDbBase.py (_get_from_handle): Catch problem with no loaded database
* src/MapView.py: Updates
* src/EditPerson.py: Change complete flag into marker combo
* src/GrampsDbBase.py: Add map for custom marker values
* src/PeopleModel.py: Add support for colored markers
* src/PersonView.py: Add support for colored markers
* src/RelLib.py: Change complete flag into marker combo
* src/Utils.py: Add marker types
* src/edit_person.glade: Change complete flag into marker combo


svn: r5198
2005-09-16 15:25:27 +00:00
Alex Roitman
704e0c4787 Merge changes from gramps20 made since 2.0.5
svn: r5105
2005-08-18 05:58:28 +00:00
Alex Roitman
895d7e1a53 Merge changes made between 2.0.3 and 2.0.5
svn: r4911
2005-07-08 20:24:54 +00:00
Don Allingham
9e39e88d2b Filter improvements
svn: r4852
2005-06-20 22:18:22 +00:00
Alex Roitman
16c1b632e4 * src/EditPerson.py: Commit events, since there may be changes
made no in the editor.
* src/EventEdit.py: Use combined mapping for all events.
* src/FamilyView.py: Proper display of child relations.
* src/Marriage.py: Commit events; properly call common event/ref
editor.
* src/Utils.py: Minor.


svn: r4813
2005-06-08 21:17:18 +00:00
Alex Roitman
d7ba30cacc * src/gramps.glade (Marriage): Re-work dialog similar to EditPerson.
* src/Utils.py (family_event_roles): Add mapping.
* src/RelLib.py (EventRef): Add FAMILY role.
* src/Marriage.py: Start using Listbox, so far for Events only.
* src/ListBox.py: Support both person and family primaries.
* src/EventEdit.py: Support both person and family primaries.
* src/EditPerson.py (on_apply_person_clicked): Do not commit
event, as this is done in the editor.


svn: r4809
2005-06-08 18:47:55 +00:00
Alex Roitman
11eb15ec52 Update
svn: r4755
2005-06-02 04:30:04 +00:00
Alex Roitman
455a723b7b * src/AutoComp.py (StandardCustomSelector): Provide an option to
use an existing ComboBoxEntry instance; add set_values method.
* src/RelLib.py (Family.__init__): Use tuple for type.
* src/Utils.py: Add event_roles mapping.
* src/AddSpouse.py, src/EditPerson.py, src/FamilyView.py,
src/ListBox.py, src/Marriage.py, src/NameEdit.py: Support tuple
types.
* src/gramps.glade: Replace ComboBox with ComboBoxEntry; add icons.


svn: r4748
2005-06-01 13:14:29 +00:00
Alex Roitman
3771ee4ff9 * src/RelLib.py: Move constants back to RelLib, as class attributes.
* src/Utils.py: Move constant mappings from const.py.in
* src/const.py.in: Move constants and mappings elsewhere.
* various: Use constants from RelLib, not const.


svn: r4736
2005-05-30 20:41:43 +00:00
Alex Roitman
fed2cd87e6 Merge SOUR_REPO branch with main trunk
svn: r4712
2005-05-27 17:43:04 +00:00
Alex Roitman
25c9f77a18 * src/EditPlace.py: WATCH cursor and temp label for References tab.
* src/EditSource.py: Improve manipulating notebook tab labels.
* src/Utils.py (temp_label): Add function;
(bold_label,unbold_label): Properly set cursor to default.
* src/gramps.glade (event editor, source editor, place editor):
Add icons to notebook tabs.


svn: r4683
2005-05-26 05:04:36 +00:00
Alex Roitman
f57b31016f * src/EditSource.py (__init__): set cursor to WATCH before displaying
references; call display_references when idle;
(display_references): set cursor to LEFT_PTR when done.
* src/ListModel.py (__init__): Typo.
* src/Utils.py (bold_label,unbold_label): make work with both
labels and their parent containers.


svn: r4669
2005-05-25 05:09:11 +00:00
Don Allingham
45bd976f69 fix some eventlist handling errors
svn: r4442
2005-04-28 22:21:20 +00:00
Don Allingham
5c137d199c * src/AddrEdit.py: use new label scheme for tabs that uses an
icon to indicate used tabs
* src/AttrEdit.py: use new label scheme for tabs that uses an
icon to indicate used tabs
* src/NameEdit.py: use new label scheme for tabs
* src/Date.py: incorporate instance check form gramps20 branch
* src/EditPerson.py: add additional fields for name edit, handle
lds page better, adapt to new label scheme
* src/GrampsDbBase.py: fix typos
* src/GrampsGEDDB.py: fix undo handling
* src/GrampsInMemDB.py: fix undo handling
* src/GrampsXMLDB.py: fix undo handling
* src/PeopleView.py: don't reselect an already selected person
* src/Utils.py: new tab scheme
* src/edit_person.glade new tab scheme
* src/gramps_main.py: 1->True, 0->False replacements
* src/DbPrompter.py: bring up to date with gramps20 branch
* src/DisplayModels.py: bring up to date with gramps20 branch
* src/ReadGedcom.py: bring up to date with gramps20 branch
* src/Relationship.py: bring up to date with gramps20 branch


svn: r4406
2005-04-23 15:53:30 +00:00
Martin Hawlisch
985d1f5dc7 * src/Utils.py (probably_alive): Added two more checks for birth and death year
svn: r4322
2005-04-08 09:40:15 +00:00
Richard Taylor
62f20cb7b9 2005-04-08 Richard Taylor <rjt-gramps@thegrindstone.me.uk>
* src/Utils.py (probably_alive): fix some bugs and added checking of ancestors.


svn: r4321
2005-04-08 08:09:18 +00:00
Martin Hawlisch
61f8c4b6bc * src/Utils.py (probably_alive): Add some checks to make current year parameter work.
svn: r4315
2005-04-06 20:56:24 +00:00
Richard Taylor
6fc3fc5ce5 2005-04-06 Richard Taylor <rjt-gramps@thegrindstone.me.uk>
* src/GenericFilter.py: added a current year parameter to probably alive rule.
	* src/Utils.py: added a current year parameter to probably alive function.


svn: r4312
2005-04-06 15:52:52 +00:00
Alex Roitman
35bc979e8e * src/DateEdit.py (update_after_editor): Add method.
* src/EditPerson.py: Always have birth/death events (never None);
Use new update method for dates; Only commit death/birth if changed;
Only add new birth/death if non-empty.
* src/EventEdit.py: Translate stored event names before including in
menu; Exclude birth/death from menu; Do not add birth/death to the
custom event types; Only detect type change for non-birth/death.
* src/GrampsDbBase.py: Do not commit objects with empty handles.
* src/GrampsInMemDB.py: Do not commit objects with empty handles.
* src/Utils.py (family_name): Add clause for unknown parents.


svn: r4172
2005-03-13 22:10:40 +00:00
Alex Roitman
5a55d247df * src/Utils.py (get_media_referents): Add function;
Add generic data recovery message.
* src/gramps_main.py (delete_person_clicked): Use generic data recovery
message.
* src/SourceView.py (on_delete_clicked): Use generic data recovery
message.
* src/EditSource.py (display_references): Change list headings.
* src/MediaView.py (on_delete_clicked): Use new mediaref detector;
Use generic data recovery message; (delete_objectmis-object_used):
Remove functions.
* src/ImageSelect.py (GlobalMediaProperties.display_ref): Use new
sourceref detection; (DeleteMediaQuery__init__): Accept object handle
and lists; (DeleteMediaQuery.query_response): Use new mediaref removal.


svn: r4161
2005-03-12 00:44:11 +00:00
Alex Roitman
70514fbb3a * src/RelLib.py (SourceNote): Add methods for detection and removal
source references in itself and child objects; (SourceNote,Person,
Family,Event,Place,Source,MediaRef): Add method for determining child
sourceref-capable objects.
* src/Utils.py (get_source_referents): Add function.
* src/EditSource.py (display_references): Use new sourceref detection;
(DelSrcQuery.__init__): Accept object lists; (DelSrcQuery.query_response):
Use new sourceref removal.
* src/SourceView.py (on_delete_clicked): Use new sourceref detection;
(delete_source,is_used): Remove functions.


svn: r4160
2005-03-11 21:05:46 +00:00
Don Allingham
55a416f422 * src/AddMedia.py: use new find_mime_type_pixbuf instead of
find_icon
* src/ImageSelect.py: remove internal media widgets, use new
find_mime_type_pixbuf instead of find_icon
* src/ImgManip.py: catch pixbuf_new_from_file exception
* src/MediaView.py: use new find_mime_type_pixbuf instead of
find_icon
* src/SelectObject.py: use new find_mime_type_pixbuf instead of
find_icon
* various: replace the deprecated gtk.TRUE/gtk.FALSE with
True/False


svn: r4085
2005-02-24 00:25:34 +00:00
Don Allingham
43bcff24ed * src/DbPrompter.py: gnome.vfs vs. gnomevfs, tolerence
* src/GrampsMime.py: gnome.vfs vs. gnomevfs tolerence
* src/ImageSelect.py: gnome.canvas vs. gnomecanvas tolerence
* src/NameDisplay.py: gnome.vfs vs. gnomevfs tolerence
* src/PedView.py: gnome.canvas vs. gnomecanvas tolerence
* src/Utils.py: remove mime handling, use GrampsMime
* src/plugins/WriteCD.py: gnome.vfs vs. gnomevfs tolerence


svn: r3971
2005-01-27 03:18:21 +00:00
Alex Roitman
660028889a * src/Utils.py (roman, pt2cm, cm2pt): Remove functions.
* src/ReportUtils.py (roman): Add function.
* src/docgen/OpenOfficeDoc.py (pt2cm): Remove function.
* src/docgen/PSDrawDoc.py (pt2cm): Remove function.
* src/plugins/AncestorChart2.py: Use ReportUtils.
* src/plugins/AncestorChart.py: Use ReportUtils.
* src/plugins/DesGraph.py: Use ReportUtils.
* src/plugins/FanChart.py: Use ReportUtils.
* src/plugins/StatisticsChart.py: Use ReportUtils.
* src/plugins/TimeLine.py: Use ReportUtils.


svn: r3937
2005-01-19 04:47:36 +00:00
Don Allingham
347ac96279 * src/EditPerson.py: don't use quote date
* src/PeopleModel.py: remove BOLD
* src/PeopleView.py: start of sorting support
* src/WriteXML.py: use hlink for Witness
* various: pychecker fixes
* configure.in: bump up to 1.1.3, the "Splunge: this is a
greate idea, but possibly lousy, and I'm not being indecisive"
release


svn: r3915
2005-01-16 04:00:35 +00:00
Alex Roitman
edfb524597 * src/Utils.py (for_each_ancestor): Switch from Person to handle.
* src/GenericFilter.py (for_each_ancestor): Pass db instance.


svn: r3902
2005-01-11 22:41:15 +00:00