* src/Config/_GrampsConfigKeys.py: add config keys for fuzzy date match

* src/RelLib/_CalSdn.py: correct type in comment
	* src/RelLib/_Date.py: add new match function to match two dates with 
	fuzzy date support (about 2000 matches about 2005).
	* src/Filters/Rules/_HasEventBase.py: use new match
	* src/Filters/Rules/MediaObject/_HasMedia.py: use new match
	* src/Filters/Rules/Person/_HasBirth.py: use new match
	* src/Filters/Rules/Person/_HasDeath.py: use new match
	* src/Filters/Rules/Person/_HasFamilyEvent.py: use new match
	* src/Filters/Rules/_RuleUtils.py: delete, contained old match date routines
	* src/Filters/Rules/Makefile.am: remove RuleUtils
	* po/POTFILES.in: remove RuleUtils
	Based on patch of Douglas S. Blank <dblank@cs.brynmawr.edu>, ticket #1219



svn: r8995
This commit is contained in:
Benny Malengier
2007-09-20 19:59:46 +00:00
parent 0d186e8c5b
commit f97b98c2cb
12 changed files with 300 additions and 87 deletions

View File

@@ -148,6 +148,9 @@ PERSON_REF_WIDTH = ('interface', 'person-ref-width', 1)
REPO_REF_HEIGHT = ('interface', 'repo-ref-height', 1)
REPO_REF_WIDTH = ('interface', 'repo-ref-width', 1)
OWNER_WARN = ('behavior', 'owner-warn', 0)
DATE_BEFORE_RANGE = ('behavior', 'date-before-range', 1)
DATE_AFTER_RANGE = ('behavior', 'date-after-range', 1)
DATE_ABOUT_RANGE = ('behavior', 'date-about-range', 1)
default_value = {
@@ -253,4 +256,7 @@ default_value = {
OWNER_WARN : False,
EXPORT_NO_PRIVATE : True,
EXPORT_RESTRICT : True,
DATE_BEFORE_RANGE : 9999,
DATE_AFTER_RANGE : 9999,
DATE_ABOUT_RANGE : 10,
}