~therve/boto/path-prefix

« back to all changes in this revision

Viewing changes to boto/s3/connection.py

  • Committer: Thomas Hervé
  • Date: 2009-01-20 07:57:03 UTC
  • Revision ID: thomas@canonical.com-20090120075703-c6rwiafdxjtul4f5
Add a path_prefix parameter to connect against Eucalyptus servers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
                 is_secure=True, port=None, proxy=None, proxy_port=None,
96
96
                 proxy_user=None, proxy_pass=None,
97
97
                 host=DefaultHost, debug=0, https_connection_factory=None,
98
 
                 calling_format=SubdomainCallingFormat()):
 
98
                 calling_format=SubdomainCallingFormat(), path_prefix=''):
99
99
        self.calling_format = calling_format
100
100
        AWSAuthConnection.__init__(self, host,
101
101
                aws_access_key_id, aws_secret_access_key,
102
102
                is_secure, port, proxy, proxy_port, proxy_user, proxy_pass,
103
 
                debug=debug, https_connection_factory=https_connection_factory)
 
103
                debug=debug, https_connection_factory=https_connection_factory,
 
104
                path_prefix=path_prefix)
104
105
 
105
106
    def __iter__(self):
106
107
        return self.get_all_buckets()