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