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
Peter Landgren
581b33524e
Fix of issue 3007.
...
svn: r12622
2009-06-03 18:40:10 +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
cf03cf4b23
2792: Dates in sourcereferences in person_ref_list not upgraded; this fixes the missing conversion in child-ref-list
...
svn: r12286
2009-03-09 19:49:51 +00:00
Doug Blank
a858c2a9b0
2792: Dates in sourcereferences in person_ref_list not upgraded
...
svn: r12265
2009-03-09 11:39:58 +00:00
Doug Blank
6d50c002fe
Upgrade of source, place, and media tables.
...
svn: r11710
2009-01-25 02:29:05 +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
Doug Blank
9aa7bc6030
Fixed some missed dates in conversion from 13 to 14
...
svn: r11447
2008-12-08 13:15:40 +00:00
Doug Blank
8a690810fc
Continued attempted fix for BSDDB new methods and attributes
...
svn: r11360
2008-11-29 12:53:00 +00:00
Doug Blank
f067bf6e2c
Changes with Python 2.5.2 and BSDDB are more subtle---seems to require checking both Python and BSDDB versions. This involves a method name change, and a flag name change.
...
svn: r11354
2008-11-28 04:28:10 +00:00
Peter Landgren
2876068bdf
Fix of issue 2504, sorting in WinXP.
...
svn: r11332
2008-11-21 15:26:26 +00:00
Benny Malengier
7424433a69
0002483: Gramps crashes while loading database, always.
...
Patch of Josip, support bsddb >= 4.7
svn: r11297
2008-11-13 08:28:32 +00:00
Brian Matherly
dfd426e5ca
Move the contents of "_GrampsBSDDB.py" into "ReadGrdb.py" because that is the only place it is used. Then, rename "ReadGrdb.py" to "plugins/ImportGrdb.py" for consistency. Also clean up misc import related code.
...
svn: r11173
2008-10-21 04:22:45 +00:00
Brian Matherly
8e8f37d5d3
Create a new plugin class for Import plugins.
...
svn: r11142
2008-10-14 02:34:28 +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
49316e07e8
Revert 10874 changes to dbdir.py and _GrampsBSDDB.py
...
svn: r10875
2008-07-17 21:03:26 +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
Doug Blank
2098a01f8d
refactored SimpleTable; QuickReports can return values; date diffs return Span
...
svn: r10578
2008-04-18 01:09:32 +00:00
Doug Blank
e410f04c7a
Removed extra line from a previous aborted refactor
...
svn: r10539
2008-04-10 02:01:47 +00:00
Doug Blank
dbf925c63e
0002041: show dialog if db version too high; ask question to upgrade the db version
...
svn: r10535
2008-04-10 01:15:12 +00:00
Doug Blank
d4311078f0
Added an integer newyear code to all dates, db version 14
...
svn: r10521
2008-04-08 04:24:18 +00:00
Doug Blank
2ac01bfcc7
Undo db update... missed many dates; reworking upgrade
...
svn: r10499
2008-04-06 12:20:33 +00:00
Doug Blank
1644727587
Upgrade the database some more for version 14: new int on dates for newyear
...
svn: r10495
2008-04-06 03:43:24 +00:00
Zsolt Foldvari
abbd6781c1
Reverting change from r10429, because metadata is now always set after DB creation.
...
svn: r10486
2008-04-05 22:02:59 +00:00
Zsolt Foldvari
311278e6a8
Method 'write_version' is created instead of loading the db after creation.
...
svn: r10484
2008-04-05 21:47:49 +00:00
Zsolt Foldvari
0cc320ac90
When new db was created metadata still contained no information, thus in
...
dbdir.GrampsDBDir.__load the version check failed.
svn: r10429
2008-03-31 16:46:00 +00:00
Doug Blank
02b110a2b0
Missing space in db error
...
svn: r10419
2008-03-29 20:54:04 +00:00
Zsolt Foldvari
1c2ec7559b
Fix #0001991 : supported database versions checked properly.
...
svn: r10417
2008-03-29 19:59:33 +00:00
Zsolt Foldvari
0542a9b78c
Introducing StyledText in Notes.
...
svn: r10410
2008-03-28 23:22: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
Gary Burton
34cf711351
2008-03-02 Gary Burton <gary.burton@zen.co.uk>
...
* src/GrampsCfg.py:
* src/Config/_GrampsConfigKeys.py:
* src/gen/db/dbdir.py:
* src/DbManager.py:
* src/DbLoader.py: Gramps databases run with transactions enabled. The
option to switch off transactions is now removed. The "transactions" and
"port_warn" settings are ignored in the config file.
svn: r10169
2008-03-02 21:34:51 +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
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
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
e67991ebeb
2008-01-22 Raphael Ackermann <raphael.ackermann@gmail.com>
...
* src/ReportBase/_Bibliography.py
* src/ReportBase/_Endnotes.py
* src/GrampsLocale/__init__.py
* src/gen/db/dbconst.py
* src/gen/lib/test/date_test.py
* src/plugins/CalculateEstimatedDates.py
* src/BasicUtils/__init__.py
* src/test/utils_test.py
* src/GrampsDbUtils/importdbdir.py
* po/test/po_test.py
add filename to $Id: $ to allow automatic filling in of svn properties
svn: r9914
2008-01-22 10:17:42 +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
Raphael Ackermann
493c790703
2008-01-18 Raphael Ackermann <raphael.ackermann@gmail.com>
...
* src/gen/db/dbdir.py
* src/plugins/ChangeNames.py
* src/DisplayModels/_NoteModel.py
* src/GrampsDbUtils/_GrampsBSDDB.py
* src/Filters/SideBar/_MediaSidebarFilter.py
* src/Filters/SideBar/_SidebarFilter.py
* src/Filters/SideBar/_SourceSidebarFilter.py
* src/Filters/SideBar/_EventSidebarFilter.py
* src/Filters/SideBar/_FamilySidebarFilter.py
* src/Filters/SideBar/_PlaceSidebarFilter.py
* src/Filters/SideBar/_NoteSidebarFilter.py
* src/Filters/SideBar/_RepoSidebarFilter.py
* src/Filters/SideBar/_PersonSidebarFilter.py
* src/Filters/Rules/Family/_HasNoteRegexp.py
* src/Filters/Rules/Event/_MatchesSourceFilter.py
* src/Filters/Rules/Event/_HasNoteRegexp.py
* src/Filters/Rules/Event/_MatchesPersonFilter.py
* src/Filters/Rules/_HasTextMatchingRegexpOf.py
* src/Filters/Rules/Place/_MatchesEventFilter.py
* src/Filters/Rules/Person/_HasTextMatchingRegexpOf.py
* src/Filters/Rules/Person/_MatchesEventFilter.py
Pylint fixes.
svn: r9885
2008-01-18 15:51:15 +00:00
Benny Malengier
ccb0b85b15
* src/gen/db/exceptions.py: wrong exception def, bug #1593
...
* src/GrampsDbUtils/_WriteXML.py: correctly catch the exception
* src/GrampsDbUtils/_GrampsDbWriteXML.py: remove double def of xml export
* src/GrampsDbUtils/_GrampsDbWRFactories.py: remove write backend factory
* src/ExportAssistant.py: on fail, do not set success = True
* src/GrampsDbUtils/__init__.py: don't export unused stuff
2008-01-15 Benny Malengier <benny.malengier@gramps-project.org>
svn: r9818
2008-01-15 10:47:25 +00:00
Raphael Ackermann
1abb8df85f
2008-01-10 Raphael Ackermann <raphael.ackermann@gmail.com>
...
* src/gen/db/dbdir.py: add doc, remove unused variable
* src/GrampsDbUtils/_GrampsBSDDB.py: : add doc, remove unused variable
* src/plugins/AncestorChart.py: cleanup unused vars
* src/plugins/Calendar.py: typo in doc
* src/plugins/ChangeNames.py: cleanup unused vars
* src/plugins/DescendChart.py: cleanup unused vars
* src/plugins/FamilyLines.py: cleanup unused vars
* src/ReportBase/_ReportUtils.py: fix typo in variable Name
svn: r9779
2008-01-11 06:50: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
Brian Matherly
85fd9a2d1b
src/Config/_GrampsConfigKeys.py: Better default for report output.
...
src/gen/db/dbconst.py: Remove constants that are duplicated in const.py.
src/GrampsDb/_GrampsBSDDB.py: Use ENV_DIR from const.py.
svn: r9601
2007-12-27 21:44:15 +00:00
Benny Malengier
30e224ff35
* src/gen/db/dbdir.py: always use db.DB_RECOVER
...
2007-12-09 Benny Malengier <benny.malengier@gramps-project.org>
svn: r9475
2007-12-09 22:27:24 +00:00
Benny Malengier
c4bf352d49
* src/gen/db/dbdir.py: rebuild ref map correctly, bug #1421
...
2007-12-09 Benny Malengier <benny.malengier@gramps-project.org>
svn: r9466
2007-12-09 15:56:01 +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
Martin Hawlisch
aa0a835330
* src/gen/lib/Makefile.am, src/gen/db/Makefile.am, src/gen/proxy/Makefile.am, src/gen/utils/Makefile.am: Fix path structure
...
svn: r9295
2007-11-04 20:41:12 +00:00
James G Sack
3ce249d923
CLI fixup: bugs 1331,2,3,4
...
svn: r9286
2007-10-31 21:47:58 +00:00
Benny Malengier
1add2aa37b
2007-10-12 Benny Malengier <benny.malengier@gramps-project.org>
...
* src/gen/db/dbdir.py: do name group change from GrampsBSDDB to dbdir.
svn: r9159
2007-10-12 10:37:19 +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
Don Allingham
5c5022e2cd
2007-10-09 Don Allingham <don@gramps-project.org>
...
* src/GrampsDb/Makefile.am: update
* src/gen/db/Makefile.am: update
* src/gen/lib/primaryobj.py: remove MarkupText dependency
* src/Makefile.am: remove RelLib
* po/POTFILES.in: update
svn: r9121
2007-10-10 03:41:44 +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
9083803e21
2007-10-07 Don Allingham <don@gramps-project.org>
...
* src/gen/db/__init__.py: commit
svn: r9092
2007-10-07 14:25:45 +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