We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kevi doesn't handle escaping of single quotes correctly. Escaping double quotes seems to work.
kevi
>>> from kevi.predicates import Predicate >>> p3 = Predicate.predicateWithFormat("FUNCTION(funcs, 'papl_is_in_orga', event.entity_id, 'Dean\\'s Office - Medicine') == True") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/kchuang/Activities/Research_Management_System/repos/ucalgary/inference-rules/kevi/predicates.py", line 81, in predicateWithFormat return scanner.parsePredicate() File "/Users/kchuang/Activities/Research_Management_System/repos/ucalgary/inference-rules/kevi/scanners.py", line 408, in parsePredicate return self.parseConjunction() File "/Users/kchuang/Activities/Research_Management_System/repos/ucalgary/inference-rules/kevi/scanners.py", line 411, in parseConjunction l = self.parseNot() File "/Users/kchuang/Activities/Research_Management_System/repos/ucalgary/inference-rules/kevi/scanners.py", line 463, in parseNot return self.parseComparison() File "/Users/kchuang/Activities/Research_Management_System/repos/ucalgary/inference-rules/kevi/scanners.py", line 476, in parseComparison left = self.parseExpression() File "/Users/kchuang/Activities/Research_Management_System/repos/ucalgary/inference-rules/kevi/scanners.py", line 208, in parseExpression return self.parseBinaryExpression() File "/Users/kchuang/Activities/Research_Management_System/repos/ucalgary/inference-rules/kevi/scanners.py", line 378, in parseBinaryExpression left = self.parseAdditionExpression() File "/Users/kchuang/Activities/Research_Management_System/repos/ucalgary/inference-rules/kevi/scanners.py", line 365, in parseAdditionExpression left = self.parseMultiplicationExpression() File "/Users/kchuang/Activities/Research_Management_System/repos/ucalgary/inference-rules/kevi/scanners.py", line 352, in parseMultiplicationExpression left = self.parsePowerExpression() File "/Users/kchuang/Activities/Research_Management_System/repos/ucalgary/inference-rules/kevi/scanners.py", line 342, in parsePowerExpression left = self.parseFunctionalExpression() File "/Users/kchuang/Activities/Research_Management_System/repos/ucalgary/inference-rules/kevi/scanners.py", line 316, in parseFunctionalExpression raise ValueError('Missing ) in function arguments') ValueError: Missing ) in function arguments
OS X Playground (Swift)
let p3 = NSPredicate(format: "FUNCTION(funcs, \"papl_is_in_orga\", event.entity_id, \"Dean's Office - Medicine\") == True") // Console: FUNCTION(funcs, "papl_is_in_orga" , event.entity_id, "Dean's Office - Medicine") == 1
The text was updated successfully, but these errors were encountered:
kinghuang
No branches or pull requests
kevi doesn't handle escaping of single quotes correctly. Escaping double quotes seems to work.
kevi
OS X Playground (Swift)
The text was updated successfully, but these errors were encountered: