Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…into tpodowd-owner_for_getservice
  • Loading branch information...
commit 0deb58f1a169274950e7d70355b10416b8c8d24a 2 parents 4d74ad0 + 0c316e9
Mitch Garnaat authored March 30, 2012

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  boto/resultset.py
8  boto/resultset.py
@@ -19,6 +19,8 @@
19 19
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 20
 # IN THE SOFTWARE.
21 21
 
  22
+from boto.s3.user import User
  23
+
22 24
 class ResultSet(list):
23 25
     """
24 26
     The ResultSet is used to pass results back from the Amazon services
@@ -63,6 +65,12 @@ def startElement(self, name, attrs, connection):
63 65
                 obj = t[1](connection)
64 66
                 self.append(obj)
65 67
                 return obj
  68
+        if name == 'Owner':
  69
+            # Makes owner available for get_service and
  70
+            # perhaps other lists where not handled by
  71
+            # another element.
  72
+            self.owner = User()
  73
+            return self.owner
66 74
         return None
67 75
 
68 76
     def to_boolean(self, value, true_value='true'):

0 notes on commit 0deb58f

Please sign in to comment.
Something went wrong with that request. Please try again.