Package s3 :: Module parsers
[hide private]
[frames] | no frames]

Module parsers

source code

Functions [hide private]
S3Error parseError(xml)
Parse the response XML if error occured, and creates an SQSError exception.
S3Bucket parseGetBucket(name, xml, connection, default)
Parse the response XML for geting a bucket
list parseGetBucketNames(xml)
Parse the response XML for geting a list of bucket names
list parseListBuckets(xml, connection)
Parse the response XML for listing buckets
list parseListKeys(xml)
Parse the response XML for listing objects in bucket

Variables [hide private]
  xmlns = 'http://s3.amazonaws.com/doc/2006-03-01/'

Function Details [hide private]

parseError(xml)

source code 
Parse the response XML if error occured, and creates an SQSError exception.
Parameters:
  • xml (string) - The XML error response
Returns: S3Error
Returns the S3Error exception

parseGetBucket(name, xml, connection, default)

source code 
Parse the response XML for geting a bucket
Parameters:
  • name (string) - The name of the bucket
  • xml (string) - The XML response
  • connection (S3Connection) - S3Connection to the server
  • default (any) - Default return value if bucket is not found
Returns: S3Bucket
Bucket if exist or default

parseGetBucketNames(xml)

source code 
Parse the response XML for geting a list of bucket names
Parameters:
  • xml (string) - The XML response
Returns: list
list of bucket names

parseListBuckets(xml, connection)

source code 
Parse the response XML for listing buckets
Parameters:
  • xml (string) - The XML response
  • connection (S3Connection) - S3Connection to the server
Returns: list
List of buckets

parseListKeys(xml)

source code 
Parse the response XML for listing objects in bucket
Parameters:
  • xml (string) - The XML response
Returns: list
List of object keys

Variables Details [hide private]

xmlns

None
Value:
'http://s3.amazonaws.com/doc/2006-03-01/'