Permalink
Browse files

Merge branch 'owner_for_getservice' of https://github.com/tpodowd/boto

…into tpodowd-owner_for_getservice
  • Loading branch information...
2 parents 4d74ad0 + 0c316e9 commit 0deb58f1a169274950e7d70355b10416b8c8d24a @garnaat garnaat committed Mar 30, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 boto/resultset.py
View
@@ -19,6 +19,8 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
+from boto.s3.user import User
+
class ResultSet(list):
"""
The ResultSet is used to pass results back from the Amazon services
@@ -63,6 +65,12 @@ def startElement(self, name, attrs, connection):
obj = t[1](connection)
self.append(obj)
return obj
+ if name == 'Owner':
+ # Makes owner available for get_service and
+ # perhaps other lists where not handled by
+ # another element.
+ self.owner = User()
+ return self.owner
return None
def to_boolean(self, value, true_value='true'):

0 comments on commit 0deb58f

Please sign in to comment.