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
Kees Bakker
f3ed8061a2
Added the new styled text modules.
...
* src/gen/lib/Makefile.am
* src/Editors/Makefile.am
svn: r10460
2008-04-03 18:32:29 +00:00
Zsolt Foldvari
0087d69fab
Implement a few string methods in StyledText, and documentation.
...
svn: r10445
2008-04-01 16:57:55 +00:00
Zsolt Foldvari
42e91346ed
StyledTextTag.ranges is rather initialized as [] than None
...
in case it is not specifically set.
svn: r10444
2008-04-01 16:55:14 +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
James G Sack
e21d552013
Added support for blacklisted (eg, obsolete/retired) type values.
...
Updated unittest to verify changes. No effect on existing code.
Basic pieces are ready for fixing #1680 , but now awaiting a translation
strategy and code for reading a database with blacklisted values.
At that point #1680 fix will simply require adding a line like
_BLACKLIST=[CAUSEDEATH]
to eventtype.py.
svn: r10405
2008-03-27 07:24:06 +00:00
James G Sack
bca1d41204
Some cleanup prior to an upcoming change for bug #1680 .
...
Minor optimization in _init_map (replace loop w/ list-comprehension
Remove unused variables VALUE_POS, STRING_POS,
At call to self.set, remove unnecessary logic that duplicates
else-clause within the set() function itself
svn: r10404
2008-03-27 03:11:48 +00:00
James G Sack
76ee14989f
Avert potential exception when initializing with a tuple of length 1 or 0
...
This fixes a side-effect of revision 10398.
Also add unittest for grampstype.py, to test this fix
svn: r10403
2008-03-27 02:36:55 +00:00
Zsolt Foldvari
6bb0c17384
Removing InstanceType calls from gen.lib modules. Required by the
...
GrampsTypeMeta changes.
svn: r10402
2008-03-26 18:45:58 +00:00
Zsolt Foldvari
93998976ff
Removing InstanceType calls from gen.lib modules. Required by the
...
GrampsTypeMeta changes.
svn: r10399
2008-03-25 23:38:24 +00:00
Zsolt Foldvari
8e5591ee16
Fixing: none of the types subclassed from GrampsType can be initialized with
...
value 0.
svn: r10398
2008-03-25 22:59:59 +00:00
Zsolt Foldvari
3f23e4b899
Introducing GrampsTypeMeta in gen.lib.grampstype.GrampsType.
...
This way the subclassed type classes don't have to import and call init_map().
svn: r10397
2008-03-25 22:55:58 +00:00
James G Sack
5f5e83f512
removed duplicate NUM_CHILD entry in _DATAMAP list
...
svn: r10379
2008-03-23 18:49:12 +00:00
Zsolt Foldvari
2642641b84
Changing the way of how formatted Notes are stored:
...
remove 'Markup' optional parameter from gen.lib.note.Note.get() method.
svn: r10288
2008-03-13 10:44:22 +00:00
Raphael Ackermann
9868432522
2008-03-09 Raphael Ackermann <raphael.ackermann@gmail.com>
...
* src/gen/lib/data.py (Date.get_sort_value):Add updated description to
what a sortval is. Also add reference to Julian Day on Wikipedia.
svn: r10242
2008-03-09 19:51:36 +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
Brian Matherly
fa0b508924
0001863: <gramps> tags in notes, consistency. This should be in all notes or only in the ones that have markup
...
Markup has been disabled for notes. A new strategy is being worked on to allow styles for notes.
svn: r10230
2008-03-08 21:20:42 +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
James G Sack
54faf32fee
fix r10099 oversight, also improve callback_test.py
...
svn: r10140
2008-02-29 05:15:00 +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
Doug Blank
7aed9fc1bf
2008-02-25 Douglas S. Blank <dblank@cs.brynmawr.edu>
...
* src/DateHandler/_DateParser.py: set year += 1
* src/gen/lib/date.py: removed slash-date fix
* src/gen/lib/test/date_test.py: slash dates sort correctly
svn: r10121
2008-02-26 00:14:36 +00:00
Doug Blank
6103ed9539
2008-02-25 Douglas S. Blank <dblank@cs.brynmawr.edu>
...
* src/gen/lib/test/date_test.py: new slash date tests
* src/gen/lib/date.py: new get_slash(), fix slash conversions
* src/DateHandler/_DateParser.py: parser sets slash date to Julian
svn: r10114
2008-02-25 05:46:45 +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
Doug Blank
2180fa02cb
2008-02-23 Douglas S. Blank <dblank@cs.brynmawr.edu>
...
* src/gen/lib/date.py (Date.get_stop_date):
added new method Date.to_calendar; dates return None if error
svn: r10102
2008-02-24 00:58:33 +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
Doug Blank
c0fd2f8b39
2008-02-23 Douglas S. Blank <dblank@cs.brynmawr.edu>
...
* src/date_test.py: removed file; moved tests to:
* src/gen/lib/test/date_test.py (suite3): new tests
moved tests from src/date_test.py into unit-test framework
svn: r10098
2008-02-23 05:56:38 +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
Doug Blank
ac8b31151b
Fixes for date math and different calendars
...
svn: r10060
2008-02-19 06:00:51 +00:00
Doug Blank
bb11347869
2008-02-19 Douglas S. Blank <dblank@cs.brynmawr.edu>
...
* src/gen/lib/date.py (Date.__init__):
added Date("Jan 1, 2000") string constructor and
calendar, quality, and modifier keywords to Date()
svn: r10059
2008-02-19 05:22:50 +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
Doug Blank
76d1f660f0
Removed __eq__ on dates
...
svn: r10044
2008-02-17 18:04:36 +00:00
Doug Blank
6ad3a48d64
2008-02-17 Douglas S. Blank <dblank@cs.brynmawr.edu>
...
* src/gen/lib/date.py (Date.__sub__): fixed some date math (#1649 )
* src/gen/lib/test/date_test.py: added some unit tests for date math
svn: r10043
2008-02-17 17:53:43 +00:00
Raphael Ackermann
534a306579
2008-02-02 Raphael Ackermann <raphael.ackermann@gmail.com>
...
* src/DataViews/GrampletView.py
* src/ReportBase/_ReportUtils.py
* src/gen/proxy/private.py
* src/plugins/WebCal.py
* src/plugins/CmdRef.py
* src/Models/_ListCursor.py
* src/Models/_PathCursor.py
PEP 8 fixes. Change
if var == True --> if var
if var is True --> if var
if var == False --> if not var
if var == None --> if var is None
svn: r9994
2008-02-05 00:31:57 +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