Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Pep8/compat #8

Merged
merged 51 commits into from Oct 19, 2012

Conversation

Projects
None yet
3 participants
Contributor

sudorandom commented Oct 19, 2012

Key Changes:

  • PEP8 Compatibility (mostly)
  • Python 3 Support
  • Added/Fixed Tests
  • Added Tox file to test against different versions of python with a clean environment
  • Added additional support for most use-cases for the StorageObject.read() method + tests to test that.

sudorandom and others added some commits Feb 14, 2012

Lots of refactoring. Some interfaces have changed so I increased the …
…minor version.

 - renamed list_cdn_containers() to public_containers()
 - Removed Node() class
 - Created model classes that match account, container and storageobject controllers.
 - The search methods now take one dict parameter with all the options (to avoid collisions with global functions)
 - Renamed Object class to StorageObject and renamed the model to match.
 - Updated README.markdown
 - Added ability to select datacenter, network and protocol. It will select the Auth URL from that. After authentication, it will try to find the appropriate storage_url and raise a recoverable exception if it can't.
Merge pull request #1 from sudorandom/refactor1
Lots of refactoring. Some interfaces have changed so I increased the min...
Added chunked download. Cleaned up/fixed chunked upload.
Renamed disable/enable cdn to make_public/make_private
added set_write_acl and set_read_acl
removed references to the removed Node class (doh.)
* size now returns an int instead of a float
* removed references to 'object'-replaced with storage_object
* Added save_to_filename() to match load_from_filename() to the storage_object class.
* added exists() to container and storage_object classes
Merge pull request #2 from sudorandom/master
exists() and save_to_filename()
Fixed serveral issues with twisted client.
Added content-length header for the rename request (some servers/proxies require it)
Made it easier to pass in an auth_token when defining a client in ord…
…er to avoid authenticating when you don't need to again.
Added compiled docs to the repo. Better documented public methods. Ch…
…anged search api back to accepting a query string as the first param and either kwargs or the second parameter to define options. Fixed tests.
Fixed mistype.
container.delete_all_objects() was broken since the rename of list() to objects()
Bug Fixes
The listing functions (container.objects() and client.containers()) now use the special subdirs when provided when listing with the pseudo-hierarchy.
Fixed logic problem that arrose when using copy_to, copy_from and/or rename.
Merge pull request #4 from sudorandom/master
StorageObject.list() to use prefix
StorageObject.list() to use prefix
Changed the StorageObject to use the prefix parameter instead of path.
Changes to Conform Closer to PEP-8
- Includes several Possible bug fixes while cleaning up.
- Removed Uneeded imports
- Added missing imports
- Formatting of code
Changes to Conform Closer to PEP-8
- Includes several Possible bug fixes while cleaning up.
- Removed Uneeded imports
- Added missing imports
- Formatting of code
Bug Fixes/Python 2.4/2.5 Support
- Exposed the size parameter for chunked connection
- Fixed issue with using chunked connection while knowing the size.
- Fixed issue with chunked connection not working with https
- Json is now being imported with legacy fallbacks
- No more with statements :(
- storage_object.send() now uses chunked_upload.
- Added md5 hash calculation/validation to send()
- send() now updates the 'model' representation based on the response.
- Python 2.4/2.5 Support tested with listing/detailing containers/objects
  uploading/downloading objects. Requires httplib2 and simplejson.
Bug Fixes/Python 2.4/2.5 Support
- Exposed the size parameter for chunked connection
- Fixed issue with using chunked connection while knowing the size.
- Fixed issue with chunked connection not working with https
- Json is now being imported with legacy fallbacks
- No more with statements :(
- storage_object.send() now uses chunked_upload.
- Added md5 hash calculation/validation to send()
- send() now updates the 'model' representation based on the response.
- Python 2.4/2.5 Support tested with listing/detailing containers/objects
  uploading/downloading objects. Requires httplib2 and simplejson.
Merge pull request #5 from SecurityForUs/content_type-fix
is_dir() now appropriately detects both directory mime types.
Contributor

sudorandom commented Oct 19, 2012

I'm going to tag the current master with the current version and then merge this in (and create a new tag with a higher version)

Contributor

sudorandom commented Oct 19, 2012

Tag (0.4.3) created. Merging this change in.

sudorandom added a commit that referenced this pull request Oct 19, 2012

Merge pull request #8 from sudorandom/pep8/compat
PEP8 Fixes, Python 2.4, 2.5, 2.6, 2.7, 3.2, Pypy Support, Tox Config Addition

@sudorandom sudorandom merged commit 172f2ae into softlayer:master Oct 19, 2012

sudorandom added a commit that referenced this pull request Nov 3, 2012

Merge pull request #8 from sudorandom/pep8/compat
PEP8 Fixes, Python 2.4, 2.5, 2.6, 2.7, 3.2, Pypy Support, Tox Config Addition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment