-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
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
add translator between a predefined grammar and django's filter lookups #95
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a minor explanation in the README?
@@ -0,0 +1,26 @@ | |||
start : query |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change "
by '
in this file?
operator_map = { | ||
">": "__gt", | ||
"<": "__lt", | ||
"==": "__eq", | ||
"is": "", | ||
"null": "__isnull", | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here: Can you change "
by '
in this file?
from .parser import translate_query | ||
|
||
|
||
class GrammarTest(TestCase): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same change here
%import common.WORD | ||
%import common.NUMBER | ||
%import common.ESCAPED_STRING | ||
%ignore " " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing blank line
Description
Allows django drips to write simpler Human readable queries to be applied to Drips
Examples
Usage
Changes include
Other comments
There is needed some work to include
OR
branching and stuff.