Commit Graph

40 Commits

Author SHA1 Message Date
Benny Malengier
5700f6ab66 2863: Wrong row when dropping on embedded list
This patch makes sure open of old database shows correct columns, and 
adds ... if several main participants


svn: r13085
2009-08-20 09:31:10 +00:00
Benny Malengier
5f0c935256 2773: Primary participant(s) in Events View
svn: r13083
2009-08-19 22:27:06 +00:00
Raphael Ackermann
b33a53e487 fixed typos
svn: r12937
2009-08-09 22:43:43 +00:00
Raphael Ackermann
65f72560d1 pep8 fixes
fixing typos


svn: r12934
2009-08-09 17:09:32 +00:00
Benny Malengier
ee69317b62 Fix for: 1277: database corroption on delete outside of DisplayTabs while tab open
Introduces the concept of callman.py as one single way to follow handles an
interface is interested in. 
dbguielement.py contains a small base class using that, usable for all windows/
guielements that need to track database changes to handles


svn: r12881
2009-08-05 10:32:05 +00:00
Gary Burton
215aeb4667 Fix incorrect method name
svn: r12786
2009-07-11 15:32:37 +00:00
Gerald Britton
f680992d04 Tweaks
svn: r12775
2009-07-08 16:10:13 +00:00
Gerald Britton
b0a6f7c854 replace refs to locale.strcoll with refs to locale.strxfrm
svn: r12712
2009-06-25 21:09:49 +00:00
Gerald Britton
70a0c50fca Use GrampsCursor as a context manager using "with" statement
svn: r12672
2009-06-16 15:49:17 +00:00
Gerald Britton
035096e5b2 Add iterator and context manager methods to GrampsCursor object and use them in GrampsDbBase and GrampsDBDir.
svn: r12660
2009-06-12 16:17:07 +00:00
Gerald Britton
220873d92e Bug 3030: ID formats not properly verified
svn: r12587
2009-05-29 17:09:09 +00:00
Gerald Britton
021b754939 Bug 3011: change old-style classes to new-style classes
svn: r12559
2009-05-21 17:19:50 +00:00
Doug Blank
983f6d3e71 Added new signal to database: home-person-changed, which is emitted when the default person is set
svn: r11534
2008-12-29 14:13:44 +00:00
Peter Landgren
2876068bdf Fix of issue 2504, sorting in WinXP.
svn: r11332
2008-11-21 15:26:26 +00:00
Gary Burton
e68981fb69 Crash caused by change made in bug #2289. Reversing change.
svn: r10929
2008-07-26 20:58:43 +00:00
Gerald Britton
437bde6e5c Revert 10874 changes to base.py and _FilterParser.py
svn: r10877
2008-07-18 13:15:15 +00:00
Gerald Britton
882199f1c2 Replace dict.has_key(x) with x in dict for performance gain
svn: r10874
2008-07-17 18:10:32 +00:00
Gerald Britton
6037e9fdd4 Replace lambdas with list comprehensions
svn: r10843
2008-07-04 17:27:51 +00:00
Gerald Britton
4982292774 Code optimizations wrt handling of None - bug 2212
svn: r10811
2008-06-16 15:01:46 +00:00
Benny Malengier
957239950d 2008-03-09 Benny Malengier <benny.malengier@gramps-project.org>
* src/gen/db/base.py: add docstring to find functions, #1866
	* src/gen/db/dbdir.py: add docstring to find functions, #1866



svn: r10236
2008-03-09 18:10:13 +00:00
Benny Malengier
b1561e5f78 2008-02-28 Benny Malengier <benny.malengier@gramps-project.org>
* src/ViewManager.py: allow for info dialog after import
	* src/gen/db/base.py: find returns if new object or not
	* src/gen/db/dbdir.py: find returns if new object or not
	* src/plugins/ImportGeneWeb.py: allow multiple mime types
	* src/plugins/ImportvCard.py: allow multiple mime types
	* src/plugins/ReadGrdb.py: allow multiple mime types
	* src/plugins/ReadPkg.py: allow multiple mime types
	* src/plugins/ImportCSV.py: allow multiple mime types
	* src/DbManager.py: use family tree string, not database
	* src/glade/gramps.glade: add info dialog
	* src/QuestionDialog.py: add info dialog, clean up set transient errors
	* src/GrampsDbUtils/_GrampsDbWriteXML.py: improve comment
	* src/GrampsDbUtils/_ReadXML.py: fix change dates problems, fix 
	 creation of empty objects in bookmarks, add info dialog, clean up
	 relative media import, remove unneeded parameters
	* src/GrampsDbUtils/_GrampsDbWRFactories.py: 
	* src/GrampsDbUtils/_GrampsBSDDB.py: allow multiple mime types
	* src/DbLoader.py: fix up import filters and some mime type issues



svn: r10138
2008-02-28 22:32:40 +00:00
Raphael Ackermann
5f375b106f 2008-02-22 Raphael Ackermann <raphael.ackermann@gmail.com>
* ViewManager.py
	* gen/db/iterator.py
	* gen/db/base.py
	* gen/db/dbconst.py
	* gen/db/cursor.py
	* gen/db/__init__.py
	* gen/db/exceptions.py
	* gen/db/dbdir.py
	* gen/lib/srcbase.py
	* gen/callback: deleted unused directory
	* plugins/ReorderIds.py:
	pylint and pep8 doc fixes

svn: r10099
2008-02-23 08:38:55 +00:00
Don Allingham
d45a676492 2008-02-20 Don Allingham <don@gramps-project.org>
* src/GrampsCfg.py: refactoring
	* src/gen/utils/test/callback_test.py: refactoring
	* src/gen/utils/callback.py: refactoring
	* src/gen/utils/longop.py: refactoring
	* src/gen/utils/__init__.py: refactoring
	* src/gen/db/base.py: refactoring
	* src/gen/Makefile.am: refactoring
	* src/DisplayState.py: refactoring
	* src/DbState.py: refactoring
	* src/PluginUtils/_MenuOptions.py: refactoring
	* src/ListModel.py: refactoring
	* src/BaseDoc.py: refactoring



svn: r10086
2008-02-21 04:58:56 +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
Gary Burton
2742e8d00b 2008-02-03 Gary Burton <gary.burton@zen.co.uk>
* src/gen/db/base.py: Functions using the pop function expect a return
	value. Bug #1632



svn: r9991
2008-02-03 21:55:03 +00:00
Raphael Ackermann
506eb32637 2008-01-24 Raphael Ackermann <raphael.ackermann@gmail.com>
Removed all the __author__, __revision__ and __version__ statements

svn: r9928
2008-01-24 20:38:10 +00:00
Raphael Ackermann
bbe2cc6d4e 2008-01-22 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/* Everything but src/images/* and src/data/* add correct svn 
	properties with the commands:
	svn propset -R svn:mime-type text/plain src/
	svn propset -R svn:eol-style native src/
	svn propset -R svn:keywords Id src/
	See below why the Id keyword is enough. From svn help propset
	svn:keywords   - Keywords to be expanded.  Valid keywords are:
      URL, HeadURL             - The URL for the head version of the object.
      Author, LastChangedBy    - The last person to modify the file.
      Date, LastChangedDate    - The date/time the object was last modified.
      Rev, Revision,           - The last revision the object changed.
      LastChangedRevision
      Id                       - A compressed summary of the previous
                                   4 keywords.

svn: r9912
2008-01-22 09:17:46 +00:00
Gary Burton
811f40b5da * src/DisplayModels/_NoteModel.py:
* src/Selectors/_SelectNote.py:
	* src/DisplayViews/NoteView.py:
	* src/gen/db/base.py:
	Change the order of columns on Note View and Select Note dialog. Also
	fixed a crash. Bug #1529

2008-01-09  Gary Burton <gary.burton@zen.co.uk>


svn: r9770
2008-01-09 21:15:28 +00:00
Gary Burton
cfbcdce095 * src/gen/db/base.py: added missing key for reference_key in mapbase and
_SIGBASE. Was preventing deleted notes being undone. Bug #1507.

2007-12-31 Gary Burton <gary.burton@zen.co.uk>


svn: r9664
2007-12-31 21:57:54 +00:00
Benny Malengier
027036a8c5 2007-12-09 Benny Malengier <benny.malengier@gramps-project.org>
Add support for name grouping import/export
	* src/GrampsDb/_GrampsDbWriteXML.py: write group table out
	* src/GrampsDb/_GrampsBSDDB.py: group table is no sec table, init it
		together with primary tables!
	* src/gen/db/base.py: obtain grouping keys
	* src/gen/db/dbdir.py: group table is no sec table, init it
		together with primary tables!
	* src/gen/utils/dbutils.py: grdb -> grdb copy of grouping table, 
		copy mediapath.
	* src/gen/proxy/proxybase.py: obtain grouping keys, add missing
		bookmark methods
	* src/gen/proxy/dbbase.py: add obtain grouping keys method
	* src/GrampsDbUtils/_ReadXML.py: read in group table
	* src/plugins/ReadGrdb.py: read in group table



svn: r9464
2007-12-09 10:18:59 +00:00
Benny Malengier
d1b65054a9 2007-11-30 Benny Malengier <benny.malengier@gramps-project.org>
* src/GrampsCfg.py: rel media path entry box
	* src/gen/db/base.py: methods for access
	* src/gen/db/dbdir.py: storage in BSDDB
	* src/GrampsDb/_GrampsDbWriteXML.py: write in header
	* src/GrampsDbUtils/_ReadXML.py: read relative path
	Start of adding relative media path to database



svn: r9435
2007-11-30 23:50:05 +00:00
Benny Malengier
8d64c728fc 2007-11-29 Benny Malengier <benny.malengier@gramps-project.org>
* src/DataViews/_RepositoryView.py:
	* src/gen/db/base.py:
	* src/DisplayModels/_RepositoryModel.py:
	Added a change column in repoview, model, database column storage



svn: r9432
2007-11-29 14:02:22 +00:00
Benny Malengier
e8f08492bc 2007-11-28 Benny Malengier <benny.malengier@gramps-project.org>
* example/gramps/example.gramps: correct 3.0 example.gramps, stext is
	no longer used, xml no longer sorted on id on ouput.
	* src/gen/db/base.py: remove test code from Don



svn: r9421
2007-11-28 09:24:00 +00:00
Benny Malengier
a0c9947dbd 2007-10-11 Benny Malengier <benny.malengier@gramps-project.org>
* src/gen/db/base.py: allow check without gid creation on all objects
	* src/GrampsDbUtils/_ReadXML.py: on reference read, don't create gid.
	This also patches a privacy setting error on placeobj in place tag section


svn: r9151
2007-10-11 22:41:03 +00:00
Don Allingham
a8b10d1092 2007-10-11 Don Allingham <don@gramps-project.org>
* src/gen/db/base.py:
	* src/GrampsDb_GrampsDbWriteXML.py:
	* src/gen/db/__init__.py: fix callback call



svn: r9140
2007-10-11 12:58:16 +00:00
Benny Malengier
967ef1c163 2007-10-09 Benny Malengier <benny.malengier@gramps-project.org>
* src/gen/db/base.py: allow not to create gramps_id on add
	* src/GrampsDbUtils/_ReadXML.py: on sourceref, don't create gramps_id
	* src/GrampsDb/_GrampsInMemDB.py: remove gid from memory map only if not None


svn: r9119
2007-10-09 20:02:02 +00:00
Don Allingham
99febc759f * various: cleanup
2007-10-08  Don Allingham  <don@gramps-project.org>


svn: r9109
2007-10-08 21:19:32 +00:00
Alex Roitman
7b6d8b5146 * src/gen/db/dbdir.py (__close_metadata): Store tuple;
(_load_metadata): Load from tuple;
	* src/gen/db/base.py (GrampsDbBase.set_researcher): Move details
	to the Researcher class.
	(set_from): Add method;
	(__init__): Copy from source if provided.


svn: r9104
2007-10-08 18:30:10 +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
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