Doug Blank
7047015603
3756: Cannot set new year value different than default (first January)
...
svn: r15010
2010-04-03 23:33:17 +00:00
Benny Malengier
9ab5decb47
3667: Addings a new person and changing the name grouping results in frozen window
...
svn: r14662
2010-03-07 15:33:38 +00:00
Doug Blank
993a5c2fcd
Unoptimized to work
...
svn: r14407
2010-02-17 11:53:19 +00:00
Gerald Britton
7975d5c3c4
Revert some map calls to list comps to correct bug introduced in rev. 14104
...
svn: r14191
2010-02-02 13:56:15 +00:00
Doug Blank
30c5030ebe
A method for comparing person == person
...
svn: r14146
2010-01-27 06:05:24 +00:00
Brian Matherly
ac820cb8df
PEP8 Improvements. Remove dependency on DateHandler.
...
svn: r14145
2010-01-27 03:38:30 +00:00
Gerald Britton
8f0582df8a
Use built-in functions to replace for loops:
...
Old code:
for x in y:
f(x)
New Code:
map(f, y)
Also use defaultdict instead of simple dict when advantageous and use list comprehensions
instead of for loops where map() could be used but requires lambdas.
svn: r14135
2010-01-25 17:45:21 +00:00
Brian Matherly
c9cb7e60c9
Move GEDCOM date functions into libgedcom.
...
svn: r14125
2010-01-25 04:54:22 +00:00
Gerald Britton
1f2469b09f
Simplify with built-in functions where possible. e.g.
...
change [x for x in y if x] to filter(None, y)
change [f(x) for x in y] to map(f, x)
change [x for x in y] to list(y)
These changes reduce source code size and complexity and produce some minor performance gains
svn: r14104
2010-01-21 18:42:53 +00:00
Doug Blank
c689013025
Added two additional cases for date matches: <=, >=
...
svn: r14101
2010-01-20 13:37:24 +00:00
Brian Matherly
f04880ec09
Move gettext, ngettext and sgettext calls into the new ggettext module. All of them return unicode all of the time.
...
svn: r14091
2010-01-18 04:42:17 +00:00
Peter Landgren
e4dfdb9190
Fix of issue 3480.
...
svn: r13996
2010-01-08 15:57:54 +00:00
Doug Blank
68e9b27265
Added method to make dates non-specific
...
svn: r13990
2010-01-07 21:41:07 +00:00
Doug Blank
4f3d8f3675
Added missing 'return self' at end of unserialize to match the rest of the classes in lib.gen
...
svn: r13935
2009-12-29 03:24:38 +00:00
Doug Blank
302781a6b3
Event types know how to abbreviate themselves
...
svn: r13898
2009-12-23 19:35:18 +00:00
Doug Blank
872e971fd3
gen.lib and gen.utils are independent; removed gen.utils.dbutils --- moved db methods to gen.db.base
...
svn: r13872
2009-12-21 04:18:31 +00:00
Doug Blank
dcb926bf87
Cleaning up Utils and refactoring common functionality
...
svn: r13860
2009-12-20 22:12:29 +00:00
Doug Blank
7f55894f26
Added is_primary method to EventRoleType
...
svn: r13859
2009-12-20 19:59:21 +00:00
Rob G. Healey
224c8c1ffc
Fixed error causing crash as per Nick Hall. Corrected tags on libhtmlconst and WebCal.
...
svn: r13805
2009-12-15 02:50:46 +00:00
Rob G. Healey
426691a2ac
Not ready yet and I am out of time for now.
...
svn: r13801
2009-12-14 12:31:34 +00:00
Rob G. Healey
057e8504c0
Finished exiftype.py Will add it to POTFILES.IN in the afternoon.
...
svn: r13799
2009-12-14 12:22:17 +00:00
Rob G. Healey
8c5c6a428e
Continuation of exiftype. Variables have been completed.
...
svn: r13798
2009-12-14 10:52:57 +00:00
Rob G. Healey
42d45dfa5c
Beginning of extending the media exif tags section.
...
svn: r13797
2009-12-14 10:01:57 +00:00
Doug Blank
cc768b3d36
Proper default value for lookup_calendar
...
svn: r13769
2009-12-11 23:09:02 +00:00
Doug Blank
966ecbf20c
Convieniences: get_year_calendar(int) or get_year_calendar(name); date.to_calendar(int) or to_calendar(name)
...
svn: r13764
2009-12-11 15:17:39 +00:00
Doug Blank
b1e51013e6
Updated date_test to test swedish dates more
...
svn: r13763
2009-12-11 15:06:21 +00:00
Doug Blank
96737bf442
Refined calendar lookup
...
svn: r13762
2009-12-11 15:05:29 +00:00
Doug Blank
6d245db5fc
Fixed error in get_year_calendar
...
svn: r13761
2009-12-11 14:27:50 +00:00
Rob G. Healey
c544e79b22
Fixed event types not being translated in IndividualPages, Events section. Made some spacial alignment in eventtypes.py for better visual aid.
...
svn: r13748
2009-12-10 00:01:20 +00:00
Doug Blank
f271154b59
Fixes for get_year_calendar
...
svn: r13743
2009-12-08 12:32:10 +00:00
Doug Blank
4434fd6542
Added convienience method for getting year in the calendar of a date
...
svn: r13731
2009-12-06 17:34:27 +00:00
Doug Blank
0c10d47a90
Added a == to match to check more exact matches
...
svn: r13717
2009-12-05 20:07:53 +00:00
Doug Blank
d004430882
Fixed error in computing days of a date diff span
...
svn: r13661
2009-11-23 01:54:44 +00:00
Benny Malengier
1846c513cf
2799: in GEDCOM export, changed timestamp for every single record is 31 DEC 1969
...
svn: r13630
2009-11-18 22:45:54 +00:00
Benny Malengier
61130b11ef
03288: [XML import] Custom family event role type is ignored on Family Events
...
svn: r13447
2009-10-28 16:15:48 +00:00
Doug Blank
c8fc4d20dd
Added = and == to match for similar and exact text_only date matches
...
svn: r13417
2009-10-25 21:05:45 +00:00
Doug Blank
40b9c7a7ca
Fixed three errors in date conversions: set_slash didn't work; set_slash2 was missing; and convert_to calendar needed to clear NEWYEAR and SLASHES
...
svn: r13395
2009-10-23 00:06:14 +00:00
Doug Blank
c202f43e9b
Fixed two errors: simple str(date) now shows alternate newyear day; match with alt newyear day now works correctly
...
svn: r13390
2009-10-22 04:15:18 +00:00
Doug Blank
99282aa715
3272: Proposal for updating config settings
...
svn: r13346
2009-10-08 01:12:51 +00:00
Doug Blank
435aca1e95
Report format type of error
...
svn: r13307
2009-10-05 12:53:46 +00:00
Doug Blank
86e744cc19
One set of Swedish tests is ok
...
svn: r13305
2009-10-05 11:21:22 +00:00
Doug Blank
09497d5576
Fixed error in sorting date spans, and refined span comparisons
...
svn: r13303
2009-10-04 15:13:07 +00:00
Doug Blank
ae4c341777
Fixed error in assert, which revealed some errors in testing Swedish dates
...
svn: r13302
2009-10-04 15:11:30 +00:00
Doug Blank
0c856f59f5
Added get_gedcom_name formatter to Name to allow sharing
...
svn: r13251
2009-09-26 01:05:08 +00:00
Doug Blank
8883fe0f97
Moved gedcom date constants and functions to gen.lib.date so they can be shared
...
svn: r13249
2009-09-25 20:45:05 +00:00
Gerald Britton
941fff23ae
Tweaks to use inplace arithmetic
...
svn: r13191
2009-09-10 18:49:48 +00:00
Raphael Ackermann
cf5ee9d657
pep8 & typos
...
svn: r13001
2009-08-14 07:07:10 +00:00
Raphael Ackermann
c1be765f7a
fixed typos
...
svn: r12984
2009-08-13 08:52:05 +00:00
Raphael Ackermann
5ac76d658b
0002832: Somes modules still use Relib reference on docstring
...
patch by romjerome
fixed wrong doc string in srcref.py
svn: r12949
2009-08-10 19:46:24 +00:00
Raphael Ackermann
65f72560d1
pep8 fixes
...
fixing typos
svn: r12934
2009-08-09 17:09:32 +00:00