Doug Blank
2170b850ee
Bring date_test up to date with new Span format; passes 100%
...
svn: r11643
2009-01-17 14:24:57 +00:00
Doug Blank
2ed7f7becb
Translation clauses: about, less than, greater than, etc.
...
svn: r11567
2009-01-04 18:17:33 +00:00
Doug Blank
8658f5a074
Added a __getitem__ method to date Spans which should eventually be removed. I belive that only the Det*Reports.py use them.
...
svn: r11566
2009-01-04 18:05:26 +00:00
Doug Blank
61ca9201b5
Changes in the manner that date differences are represented and compared
...
svn: r11565
2009-01-04 17:44:33 +00:00
Doug Blank
dc2c438231
Refinements to give more feedback on probably alive; use CAUSE_DEATH as additional evidence for death; date span shows (unknown) for invalid differences.
...
svn: r11556
2009-01-01 00:58:18 +00:00
Doug Blank
6d2cc418e4
Fix for #2303 : plugins/Det*Report.py use an outdated method of computing ages. This fix brings it up to date, but needs some additional work once date spans can fully repr themselves.
...
svn: r11549
2008-12-31 14:49:24 +00:00
Doug Blank
a156156394
Fixed a bug in negative date differences; enhanced Span repr (shows days, if short enough)
...
svn: r11532
2008-12-28 05:44:01 +00:00
Doug Blank
323ac9257f
Added len to Span class, and added an is_valid method to date. is_valid similar to is_regular, but allows partial dates
...
svn: r11528
2008-12-27 21:31:16 +00:00
Doug Blank
fadeb3744e
Added lt and gt for date span comparisons
...
svn: r11523
2008-12-27 16:40:25 +00:00
Doug Blank
42b00f04f4
Added a test for negative date differences
...
svn: r11522
2008-12-27 16:29:46 +00:00
Doug Blank
a11d819296
Date spans that are negative show with negative year, month, and day
...
svn: r11521
2008-12-27 16:07:36 +00:00
Doug Blank
246f76621a
Added to display age at death if dead, or current age if alive
...
svn: r11471
2008-12-14 14:52:54 +00:00
Peter Landgren
475da86de2
Fix of issue 2505. Also fix of string and unicode problems in matching
...
svn: r11336
2008-11-22 15:35:14 +00:00
Gary Burton
d682a1dcde
Fix for bug when deleting birth and death events. Bug #2456
...
svn: r11191
2008-10-25 11:36:56 +00:00
Gerald Britton
8cb51d4392
fix typo in property call
...
svn: r11068
2008-09-16 14:07:29 +00:00
Gerald Britton
5e290c4329
Remove __slots__, __getstate__ and __setstate__
...
svn: r11049
2008-09-09 19:54:27 +00:00
Gary Burton
b6ed9d389d
Stop media editor prompting to save changes on cancellation when none made. Bug #2364
...
svn: r11029
2008-09-06 09:18:57 +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
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