-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this allows for syntax like: OData.CSC.Intersects(area=geography'SRID=4326;Point(1 2)') -add NamedParam ast Node (with name, param attrs) -add '=' literal -add list_named_parameters grammar (similar to list_expr) -only check args for functions with namespace () or ('geo',) -in django_q visitor, passed NamedParams as keyword args externally, we can now use the following to support above query: class AstToDjangoQVisitorCSC(AstToDjangoQVisitor): def djangofunc_odata__csc__intersects(self, area): return super().djangofunc_geo__intersects(ast.Identifier('footprint'), area)
- Loading branch information
Showing
3 changed files
with
60 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters