better fix for rev19169, 19184 (was IndentationErrors)
svn: r19192
This commit is contained in:
parent
675aeb8e21
commit
6c7f3d65bc
@ -40,8 +40,8 @@ class HasAttributeBase(Rule):
|
|||||||
|
|
||||||
labels = [ 'Attribute:', 'Value:' ]
|
labels = [ 'Attribute:', 'Value:' ]
|
||||||
name = 'Objects with the <attribute>'
|
name = 'Objects with the <attribute>'
|
||||||
description = ["Matches objects with the given attribute ",
|
description = "Matches objects with the given attribute " \
|
||||||
"of a particular value"]
|
"of a particular value"
|
||||||
category = 'General filters'
|
category = 'General filters'
|
||||||
|
|
||||||
def apply(self, db, obj):
|
def apply(self, db, obj):
|
||||||
|
@ -38,8 +38,8 @@ class HasSourceCountBase(Rule):
|
|||||||
|
|
||||||
labels = [ 'Number of instances:', 'Number must be:']
|
labels = [ 'Number of instances:', 'Number must be:']
|
||||||
name = 'Objects with <count> sources'
|
name = 'Objects with <count> sources'
|
||||||
description = ["Matches objects that have a certain number of sources ",
|
description = "Matches objects that have a certain number of sources " \
|
||||||
"connected to it (actually citations are counted)"]
|
"connected to it (actually citations are counted)"
|
||||||
category = 'Citation/source filters'
|
category = 'Citation/source filters'
|
||||||
|
|
||||||
def prepare(self, db):
|
def prepare(self, db):
|
||||||
|
@ -37,8 +37,8 @@ class HasTextMatchingSubstringOf(Rule):
|
|||||||
'Case sensitive:',
|
'Case sensitive:',
|
||||||
'Regular-Expression matching:']
|
'Regular-Expression matching:']
|
||||||
name = 'Objects with records containing <substring>'
|
name = 'Objects with records containing <substring>'
|
||||||
description = ["Matches objects whose records contain text ",
|
description = "Matches objects whose records contain text " \
|
||||||
"matching a substring"]
|
"matching a substring"
|
||||||
category = 'General filters'
|
category = 'General filters'
|
||||||
|
|
||||||
# FIXME: This needs to be written for an arbitrary object
|
# FIXME: This needs to be written for an arbitrary object
|
||||||
|
@ -43,8 +43,8 @@ class MatchesEventFilterBase(MatchesFilterBase):
|
|||||||
|
|
||||||
labels = ['Event filter name:']
|
labels = ['Event filter name:']
|
||||||
name = 'Objects with events matching the <event filter>'
|
name = 'Objects with events matching the <event filter>'
|
||||||
description = ["Matches objects who have events that match a certain",
|
description = "Matches objects who have events that match a certain" \
|
||||||
" event filter"]
|
" event filter"
|
||||||
category = 'General filters'
|
category = 'General filters'
|
||||||
|
|
||||||
# we want to have this filter show event filters
|
# we want to have this filter show event filters
|
||||||
|
@ -40,8 +40,8 @@ class MatchesSourceFilterBase(MatchesFilterBase):
|
|||||||
|
|
||||||
labels = ['Source filter name:']
|
labels = ['Source filter name:']
|
||||||
name = 'Objects with source matching the <source filter>'
|
name = 'Objects with source matching the <source filter>'
|
||||||
description = ["Matches objects with sources that match the ",
|
description = "Matches objects with sources that match the " \
|
||||||
"specified source filter name"]
|
"specified source filter name"
|
||||||
category = 'Citation/source filters'
|
category = 'Citation/source filters'
|
||||||
|
|
||||||
# we want to have this filter show source filters
|
# we want to have this filter show source filters
|
||||||
|
@ -46,8 +46,8 @@ class RegExpIdBase(Rule):
|
|||||||
|
|
||||||
labels = [ 'Regular expression:' ]
|
labels = [ 'Regular expression:' ]
|
||||||
name = 'Objects with <Id>'
|
name = 'Objects with <Id>'
|
||||||
description = ["Matches objects whose Gramps ID matches ",
|
description = "Matches objects whose Gramps ID matches " \
|
||||||
"the regular expression"]
|
"the regular expression"
|
||||||
category = 'General filters'
|
category = 'General filters'
|
||||||
|
|
||||||
def __init__(self, list):
|
def __init__(self, list):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user