Beispiel #1
0
 def get_object_url(self, bucket, key, expire = None):
     
     qag = QueryURLGenerator(self.access_key_id, self.secret_access_key, self.is_secure, self.server, self.calling_format)
     
     if expire:
         qag.set_expiresin(expire)
         return qag.get(bucket, key, None)
     else:
         return qag.make_bare_url(bucket, key)
Beispiel #2
0
 def get_object_authacl(self, bucket, key, expire):
     qag = QueryURLGenerator(self.access_key_id, self.secret_access_key, self.is_secure, self.server, self.calling_format)     
     qag.set_expiresin(expire)
     return qag.get_acl(bucket, key, None)