def __init__(self,
              gs_access_key_id=None,
              gs_secret_access_key=None,
              is_secure=True,
              port=None,
              proxy=None,
              proxy_port=None,
              proxy_user=None,
              proxy_pass=None,
              host=DefaultHost,
              debug=0,
              https_connection_factory=None,
              calling_format=SubdomainCallingFormat(),
              path='/',
              suppress_consec_slashes=True):
     S3Connection.__init__(self,
                           gs_access_key_id,
                           gs_secret_access_key,
                           is_secure,
                           port,
                           proxy,
                           proxy_port,
                           proxy_user,
                           proxy_pass,
                           host,
                           debug,
                           https_connection_factory,
                           calling_format,
                           path,
                           "google",
                           Bucket,
                           suppress_consec_slashes=suppress_consec_slashes)
Ejemplo n.º 2
0
 def __init__(self, gs_access_key_id=None, gs_secret_access_key=None,
              is_secure=True, port=None, proxy=None, proxy_port=None,
              proxy_user=None, proxy_pass=None,
              host=DefaultHost, debug=0, https_connection_factory=None,
              calling_format=SubdomainCallingFormat(), path='/'):
     S3Connection.__init__(self, gs_access_key_id, gs_secret_access_key,
              is_secure, port, proxy, proxy_port, proxy_user, proxy_pass,
              host, debug, https_connection_factory, calling_format, path,
              "google")
Ejemplo n.º 3
0
Archivo: s3.py Proyecto: freyes/pinhole
    def __init__(self, access_key=None, secret_key=None):
        from pinhole.common.app import app

        if not access_key:
            access_key = app.config["AWS_ACCESS_KEY"]

        if not secret_key:
            secret_key = app.config["AWS_SECRET_KEY"]

        S3Connection.__init__(self, access_key, secret_key)
Ejemplo n.º 4
0
    def __init__(self, access_key=None, secret_key=None):
        from pinhole.common.app import app

        if not access_key:
            access_key = app.config["AWS_ACCESS_KEY"]

        if not secret_key:
            secret_key = app.config["AWS_SECRET_KEY"]

        S3Connection.__init__(self, access_key, secret_key)
Ejemplo n.º 5
0
    def __init__(self,
                 access_key_id,
                 secret_access_key,
                 bucket_name,
                 filenames,
                 upload_options,
                 wizard_page,
                 parent=None):

        S3Connection.__init__(self, access_key_id, secret_access_key)
        self.upload_options = upload_options
        self.bucket_name = bucket_name
        self.bucket = None
        self.filenames = filenames
        self.s3Uploaders = []
        self.threads = []

        self.count_uploaded_images = 0
        self.num_uploading_images = 0

        #For GUI (messages and progress bars)
        self.wizard_page = wizard_page

        self.uploader_widget = QtGui.QWidget()
        self.uploader_widget.setWindowTitle("Upload Progress Bars")
        self.uploader_widget.setWindowFlags(Qt.WindowStaysOnTopHint)

        self.uploader_v_box = QtGui.QVBoxLayout()
        self.uploader_widget.setLayout(self.uploader_v_box)

        self.msg_bar_main = None
        self.msg_bar_main_content = None
        self.cancel_button_main = None

        self.msg_bars = []
        self.msg_bars_content = []
        self.progress_bars = []
        self.cancel_buttons = []
    def __init__(self,
                 access_key_id,
                 secret_access_key,
                 bucket_name,
                 filenames,
                 upload_options,
                 wizard_page,
                 parent=None):

        S3Connection.__init__(self, access_key_id, secret_access_key)
        self.upload_options = upload_options
        self.bucket_name = bucket_name
        self.bucket = None
        self.filenames = filenames
        self.s3Uploaders = []
        self.threads = []

        self.count_uploaded_images = 0
        self.num_uploading_images = 0

        #For GUI (messages and progress bars)
        self.wizard_page = wizard_page

        self.uploader_widget = QtGui.QWidget()
        self.uploader_widget.setWindowTitle("Upload Progress Bars")
        self.uploader_widget.setWindowFlags(Qt.WindowStaysOnTopHint)

        self.uploader_v_box = QtGui.QVBoxLayout()
        self.uploader_widget.setLayout(self.uploader_v_box)

        self.msg_bar_main = None
        self.msg_bar_main_content = None
        self.cancel_button_main = None

        self.msg_bars = []
        self.msg_bars_content = []
        self.progress_bars = []
        self.cancel_buttons = []