Added bnf when adding a new concept + Started logging filtering
This commit is contained in:
@@ -18,13 +18,12 @@ class ConceptEvaluator(OneReturnValueEvaluator):
|
||||
|
||||
def matches(self, context, return_value):
|
||||
return return_value.status and \
|
||||
return_value.who.startswith(BaseParser.PREFIX) and \
|
||||
isinstance(return_value.value, Concept) and \
|
||||
not isinstance(return_value.value, ParserResultConcept) # because there are specific evaluators
|
||||
isinstance(return_value.value, ParserResultConcept) and \
|
||||
isinstance(return_value.value.value, Concept)
|
||||
|
||||
def eval(self, context, return_value):
|
||||
sheerka = context.sheerka
|
||||
concept = return_value.value
|
||||
concept = return_value.value.value
|
||||
|
||||
# pre condition should already be validated by the parser.
|
||||
# It's a mandatory condition for the concept before it can be recognized
|
||||
|
||||
Reference in New Issue
Block a user