-
Notifications
You must be signed in to change notification settings - Fork 44
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
Feature: RTResponse should be more pythonic #15
Comments
Hi Lasse, The basic idea can be found in let me know what do you think about it. |
Had a quick look at tracker.py ? How am I supposed to use it ? eg But it look like the kinda thing i want.. Pete |
Easy workaround. Use the documented method for creating a ticket along with a quick and dirty regular expression:
|
It should be possible to get a response in dictionary form. List of tuples is a good starting point, but you usually want to access just one field real quick.
Dates returned in an RTResponse should be pre-parsed to datetime objects, instead of returned as strings. (There might be some locale issues here)
This will simplify use of the library.
Implementation wise it should be an easy fix in rtkit/resource.py's RTResponse object, but I'm not sure how it best is made visible interface wise.
I'm happy to provide a patches if these changes sound acceptable.
The text was updated successfully, but these errors were encountered: