コード例 #1
0
    def get_url(self, path=None):
        """ Returns the url of the resource

        @param path: path to append to the end of the URL
        """
        url = self.storage_url
        if not url:
            self.storage_url = self.conn.storage_url
            url = self.storage_url
        if path:
            url = "%s/%s" % (url, get_path(path))
        return url
コード例 #2
0
    def get_url(self, path=None):
        """ Returns the url of the resource

        @param path: path to append to the end of the URL
        """
        url = self.storage_url
        if not url:
            self.storage_url = self.conn.storage_url
            url = self.storage_url
        if path:
            url = "%s/%s" % (url, get_path(path))
        return url
コード例 #3
0
 def path(self):
     """ returns path of the container """
     path = [self.name]
     return get_path(path)
コード例 #4
0
 def path(self):
     """ returns path of the container """
     path = [self.name]
     return get_path(path)
コード例 #5
0
 def path(self):
     """ Get the path of the object """
     path = [self.container, self.name]
     return get_path(path)
コード例 #6
0
 def path(self):
     """ Get the path of the object """
     path = [self.container, self.name]
     return get_path(path)