Gerald Britton
2e4d57ea28
Fix isinstance error and replace lambdas with list comprehensions
...
svn: r10838
2008-07-03 18:30:00 +00:00
Gerald Britton
4e73de8987
add instance attribute ref to __slots__ in eventref -- bug 2210
...
svn: r10816
2008-06-17 15:03:12 +00:00
Gerald Britton
5e6e48cdb1
Fix typepo in eventref from commit 10814 -- bug 2210
...
svn: r10815
2008-06-17 14:46:06 +00:00
Gerald Britton
63f6b44481
Fix pickle.dumps problem in grampstype and eventref -- bug 2210
...
svn: r10814
2008-06-17 14:40:44 +00:00
Gerald Britton
4982292774
Code optimizations wrt handling of None - bug 2212
...
svn: r10811
2008-06-16 15:01:46 +00:00
Brian Matherly
3a98ddd4fd
0002122: Detailed Ancestor Report reports people as buried who have no birth events (contributed by Gerald Britton <gerald.britton@gmail.com>)
...
svn: r10781
2008-06-02 00:59:14 +00:00
Zsolt Foldvari
998908175f
Issue #0002175 : Change type() expressions to isinstance() expressions.
...
Patch from Gerald Britton <gerald.britton@gmail.com>
svn: r10762
2008-05-25 19:55:47 +00:00
Zsolt Foldvari
f0b1808c71
Classmethod definition using the decorator syntax.
...
svn: r10740
2008-05-18 17:57:02 +00:00
Zsolt Foldvari
05b39c5c15
Reorganize custom widgets into a new 'widgets' package.
...
1. moving existing widget modules under src/widgets/
svn: r10694
2008-05-08 19:40:56 +00:00
Zsolt Foldvari
9bf1c718f6
Move STYLE_TYPE and STYLE_DEFAULT constants from StyledTextBuffer to StyledTextTagType.
...
svn: r10629
2008-04-23 13:34:13 +00:00
Zsolt Foldvari
d003d5e61b
Refactoring:
...
- better functionality devision between buffer and editor;
- better integration with StyledTextTagType;
- font family and font size tags are separated;
- new font family and font size toolbar widgets;
svn: r10626
2008-04-23 09:07:02 +00:00
Doug Blank
81bc827030
Bug in computing date differences
...
svn: r10598
2008-04-20 02:02:44 +00:00
Doug Blank
f637730a87
General polish of some date handling code; fixed a bug in date comparisons involving 'ABT' dates
...
svn: r10592
2008-04-19 16:48:46 +00:00
Doug Blank
465e950888
further fixes for slash dates and updates to unit tests
...
svn: r10588
2008-04-19 04:51:12 +00:00
Doug Blank
3373062274
0002045: Julian date: year incremented each time event is modified; removed earlier hack, and fixed properly. Other date parsers or displayers may have to change
...
svn: r10587
2008-04-19 03:39:58 +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
02cceb2e8b
Use sophisticated Date.match() for lt and gt; don't match invalid dates
...
svn: r10574
2008-04-17 12:15:48 +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
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
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
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
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
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
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
Doug Blank
e226c06de6
2008-01-04 Douglas S. Blank <dblank@cs.brynmawr.edu>
...
* src/gen/lib/date.py (Date.__sub__): fixed date differences
* src/Simple/_SimpleTable.py: removed frame around textview
svn: r9709
2008-01-05 03:02:56 +00:00
Doug Blank
1e3ce27007
2008-01-03 Douglas S. Blank <dblank@cs.brynmawr.edu>
...
* src/ReportBase/_Constants.py: added QR_NOTE, QR_DATE
* src/gen/lib/date.py: working on date math
* src/plugins/AgeOnDate.py: new Quick View for age on date
* src/plugins/DefaultGadgets.py: added Age on Date gadget
* src/QuickReports.py: new constants
* src/Simple/_SimpleTable.py: handle sort columns
svn: r9698
2008-01-03 14:18:18 +00:00
Doug Blank
3295364aa2
Date arithmetic typo
...
svn: r9668
2007-12-31 23:26:50 +00:00
Doug Blank
a066962d6a
Date arithmetic typo
...
svn: r9667
2007-12-31 23:26:12 +00:00
Doug Blank
0cd7a685d6
Fixed date arithmetic
...
svn: r9662
2007-12-31 21:23:48 +00:00
Doug Blank
70a02003ba
Date arithmetic
...
svn: r9658
2007-12-31 16:43:58 +00:00
Benny Malengier
886e3299e4
2007-12-19 Benny Malengier <benny.malengier@gramps-project.org>
...
* src/gen/lib/person.py: sources in attributes of eventref are not seen
in ref tables
* src/gen/lib/eventref.py: can contain sources, add methods for that
* src/gen/lib/notebase.py: whitespace
* src/plugins/Check.py: low level check of repo table, add check to
clean up referenced but not existing repos
svn: r9532
2007-12-19 09:47:17 +00:00
Benny Malengier
00511a133f
2007-12-14 Benny Malengier <benny.malengier@gramps-project.org>
...
* src/Editors/_EditEvent.py: first attribute tab THEN backref
* src/DisplayTabs/_BackRefList.py: whitespace change
* src/gen/lib/repo.py: correct error with source backref too
* src/gen/lib/personref.py:
* src/gen/lib/mediaref.py:
* src/gen/lib/childref.py:
* src/gen/lib/place.py:
* src/gen/lib/address.py:
* src/gen/lib/src.py:
* src/gen/lib/person.py:
* src/gen/lib/mediaobj.py:
* src/gen/lib/eventref.py:
* src/gen/lib/name.py:
* src/gen/lib/family.py:
* src/gen/lib/event.py:
* src/gen/lib/ldsord.py:
Add get_note_child_list method to allow recursive deletion of notes in
child objects
* src/gen/lib/notebase.py: add remove_note that recursively searches
in the child secondary objects
* src/plugins/Check.py: fix broken note links, fix broken repo-source link
svn: r9507
2007-12-14 22:18:19 +00:00
Benny Malengier
283678e47e
2007-12-10 Benny Malengier <benny.malengier@gramps-project.org>
...
* src/gen/lib/notebase.py: change comment string
* src/gen/lib/person.py: change comment string
* src/gen/lib/event.py: add attr to list of sec objects, bug #1318
svn: r9481
2007-12-10 21:44:09 +00:00
Doug Blank
ea61a85402
2007-12-02 Douglas S.Blank <dblank@cs.brynmawr.edu>
...
* src/gen/lib/date.py: added new method copy_ymd()
* src/plugins/CalculateEstimatedDates.py: new tool based on
MenuOptions: calculates estimated dates
* src/PluginUtils/_PluginWindows.py: refactoring, cleanup
* po/POTFILES.in: renamed PluginStatus.py -> PluginWindows.py
svn: r9438
2007-12-02 18:41:21 +00:00
James G Sack
db81451083
make date_test regrtest-compatible, minor tweak to regrtest
...
svn: r9404
2007-11-26 01:15:56 +00:00
Benny Malengier
ac82ef8754
2007-11-25 Benny Malengier <benny.malengier@gramps-project.org>
...
* src/gen/lib/notetype.py: type report, citation
* src/plugins/NarrativeWeb.py: new selection of home note & home media
* src/GrampsWidgets.py: NoteEntry, MediaEntry
I intend to change the other note selectors likewise next.
svn: r9403
2007-11-25 19:07:50 +00:00
Doug Blank
5fdffbe292
* src/gen/lib/date.py: refer to Config values via Config.get()
...
* src/gen/lib/test/date_test.py: set Config values before testing
2007-11-25 Douglas S. Blank <dblank@cs.brynmawr.edu>
svn: r9402
2007-11-25 18:13:19 +00:00
Doug Blank
36c73d38b3
2007-11-25 Douglas S.Blank <dblank@cs.brynmawr.edu>
...
* src/gen/lib/test/date_test.py: turned each test into a case
svn: r9400
2007-11-25 05:16:12 +00:00
Doug Blank
3d2b06a66a
2007-11-24 Douglas S. Blank <dblank@cs.brynmawr.edu>
...
* src/gen/lib/date.py: had to import calendar by path.name
(so that the import of date_test would work)
* src/gen/lib/test: new test directory
* src/gen/lib/test/date_test.py: unittests for date.py
svn: r9397
2007-11-24 16:35:57 +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
d692868ce0
Fixed error in setting None values
...
svn: r9381
2007-11-21 15:11:14 +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
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
Gary Burton
5023c4a84f
2007-10-30 Gary Burton <gary.burton@zen.co.uk>
...
* src/gen/lib/person.py: setting the death index wrongly.
svn: r9277
2007-10-30 15:07:46 +00:00
Gary Burton
29b974160f
2007-10-29 Gary Burton <gary.burton@zen.co.uk>
...
* src/gen/lib/person.py: reset birth and death indexes after deleting
an event. Fixes #1327
svn: r9269
2007-10-29 22:35:52 +00:00
Doug Blank
5d276ee146
2007-10-17 Douglas S. Blank <dblank@cs.brynmawr.edu>
...
* src/gen/lib/date.py: added method Date.offset(value) -> (y,m,d)
svn: r9200
2007-10-17 04:07:26 +00:00
Don Allingham
4c2e57cb2e
2007-10-12 Don Allingham <don@gramps-project.org>
...
* src/gen/lib/note.py (Note.get): fix typo
svn: r9161
2007-10-12 11:48:28 +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
f01ae999c3
2007-10-09 Benny Malengier <benny.malengier@gramps-project.org>
...
* src/GrampsDb/_GrampsInMemDB.py: correctly store global name grouping
* src/GrampsDb/_GrampsBSDDB.py: correctly store global name grouping
* src/gen/lib/name.py: allow grouping equal to surname
* src/Editors/_EditName.py: correct handling of name grouping, issue #647
svn: r9116
2007-10-09 13:05:56 +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
Don Allingham
c8d45e8b89
2007-10-08 Don Allingham <don@gramps-project.org>
...
* src/gen/lib/note.py: make independent of MarkupText.py
svn: r9106
2007-10-08 19:45:06 +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
Alex Roitman
5d94a0d690
2007-10-08 Alex Roitman <shura@gramps-project.org>
...
* src/gen/lib/researcher.py (serialize, unserialize): Add methods;
(set, get): Remove methods.
svn: r9103
2007-10-08 18:07:25 +00:00
Don Allingham
c86ca135a5
* src/gen/lib/attrbase.py: renamed from attributeBase.py
...
2007-10-08 Don Allingham <don@gramps-project.org>
svn: r9102
2007-10-08 16:45:37 +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