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

dot notation for keys #6

Open
JohnAD opened this issue Jul 3, 2014 · 1 comment
Open

dot notation for keys #6

JohnAD opened this issue Jul 3, 2014 · 1 comment

Comments

@JohnAD
Copy link
Contributor

JohnAD commented Jul 3, 2014

Add a 'dot notation' flag to the init procedure. If set to True, then an attempt will be made on 'key' parameters in any method to parse a string to a key list if a '.' is found. So, "Address.PostalCode" becomes ["Address", "PostalCode"] automatically.

@JohnAD
Copy link
Contributor Author

JohnAD commented Jul 3, 2014

example:

new_list = PLOD(old_list, dot=True).eq("Address.State", "MO").sort("Address.PostalCode").returnList()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant