Merge lp:~dreamhosters/txaws/921352-get-bucket-versioning-method into lp:txaws
Proposed by
Arsene Rei
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Duncan McGreggor | ||||
Approved revision: | 141 | ||||
Merged at revision: | 130 | ||||
Proposed branch: | lp:~dreamhosters/txaws/921352-get-bucket-versioning-method | ||||
Merge into: | lp:txaws | ||||
Diff against target: |
212 lines (+164/-1) 4 files modified
txaws/s3/client.py (+21/-1) txaws/s3/model.py (+19/-0) txaws/s3/tests/test_client.py (+110/-0) txaws/testing/payload.py (+14/-0) |
||||
To merge this branch: | bzr merge lp:~dreamhosters/txaws/921352-get-bucket-versioning-method | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Duncan McGreggor | Approve | ||
Review via email: mp+90552@code.launchpad.net |
Description of the change
Add GET Bucket versioning functionality
To post a comment you must log in.
[1] So, I was going to suggest not to use modeling for this one, since it's so simple... but it seems that Amazon has defined another element that needs to be added to the module: MfaDelete (self.mfa_delete is the attribute name I'd use).
I was going to suggest that you should only set the mfa_delete attr if root.findtext( "MfaDelete" ) returned a value... but that would make working with this particular model more cumbersome. So:
* mfa_delete = "Disabled" means the bucket has been configured with MfaDelete and it's disabled
* mfa_delete = "Enabled" means the bucket has been configured with MfaDelete and it's enabled
* mfa_delete = None means the bucket has not been configured with MfaDelete
That should probably go in the model's docstring ;-)
[2] For this, you'll want to add another payload example with "<MfaDelete> Enabled< /MfaDelete> " in it. There's no need to also include an example Disabled in it, since no different/ additional logic in the Python code is being exercised with that.