Skip to content

Conversation

@graysonarts
Copy link
Contributor

No description provided.

shinchris and others added 30 commits September 16, 2016 15:44
#33 fixed publish mode enums and typos in samples
Added decorators for checking values of input to property setters (Issue-38)
* Cleaning up samples
* Wrap everything in a main function and ensure spaces for indentation
* Kill a few unused imports and a few minor idiomatic tweaks
Original PR by @shinchris #30 

* added ability to query and delete schedules
* added ability to create and update schedules
* intervals for schedules are expressed as (Unit)Interval classes
* hourly intervals can take .25 and .5 to represent 15 and 30 minute schedules
* Fix for issie #60. 
* Make Sign Out a no-op when you are already signed out and expose an is_signed_in method
Content_urls must contain only a subset of ascii characters (alphanumeric, -, _) and will fail on site creation otherwise. Server sends an error but it can be confusing to the user. Fix is to validate it in the library so we never send an invalid content_url

* Added a property decorator that validates the content_url against a supplied regex
* Updated tests to test new cases (with unicode!) and added a new test for 'valid' cases to exercise regex
Update User supports updating a password but we were never passing it through to the serializer. We don't want to keep the password around in the model (and it's never returned from Server) so let's just add it to the update function.

* add `password=None` to `users.update()`
* remove `UserItem.password` and all associated tests -- it doesn't do anything
* Updating TableauAuth to speak in site_id rather than just site

* EOL@EOF

* updating to remove deprecated usage
Fixes #79 by adding 'Guest' to the site role enum
* Adding pagination sample
* pep8 fixes
* Ben's feedback incorporated
* Simplifying usage by eliminating the lambda
* Implement get server info

* reverting a change that should not have made it into the previous commit
* Adding CONTRIBUTORS file

* revving version number
* Cleaning up the base endpoint object to reduce duplication
* Deduping the ctors for Endpoints
* Adding comment to clarify the condition on server_response.encoding
* fixing pep8 problems
* Auth Endpoint had two __init__, getting rid of both of them because they aren't needed
* make_headers -> make_common_headers
* token -> auth_token
t8y8 and others added 6 commits October 30, 2016 22:36
Add a `Pager` object that can wrap any `Endpoint` with a `.get` method. This returns a generator that can be used anywhere a standard iterator can. It also takes request_options and can start from any page, and use any page size. It will make a single call, and yield items (in proper order) until you reach the end of that page, it will then call `Endpoint.get` again and fetch the next page.

* If you start midway (page 5 of 10) the iterator will only work from page 5 forward.
* Sort and Filter are supported
* If the count changes on the Server-side (eg someone deleted an item while you were iterating) it will raise `StopIteration` and exit gracefully
* Tested with unittests and against a live server, ran sample too

Initial Implementation based on sample by @RussTheAerialist
Adding changelog for release
@graysonarts graysonarts merged commit e6262be into master Nov 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants