Skip to content
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

Added a query string building class called FilterBuilder. #9

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

dossjh
Copy link
Contributor

@dossjh dossjh commented Mar 31, 2016

I wrote a class to dynamically build query strings for use with your class. I do not know if anyone else will find it useful, but I found the syntax difficult to use when building queries dynamically.

dossjh added 13 commits March 30, 2016 19:47
Added FilterBuilder Class.

USAGE:

# make a FilterBuilder
myfilter = FilterBuilder(myClass)
myfilter.addAndFilter("id", "lt", "45")
queryString = myfilter.buildQuery()
Uploaded file to wrong directory.
Fixed a bug causing filter build to report invalid when both and & or filters are not used.
In python3 dick.keys() now returns a dict_key object, fixed this with list(dict) gives list of keys
Make python3 compatable
Added a note saying python3 compatible.
…be changed and removed or cleared entirely. As, no longer consumes itself, and buildquery can be called over and over. buildquery caches the query string and only rebuilds it when there are changes.
Delete line.  Not sure where that came from.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants