(self, upload_protocol, protocol_dict)
Sets upload specific template values.

    Args:
      upload_protocol: (str) The name of the upload protocol. Eg: 'simple' or
        'resumable'.
      protocol_dict: (dict) The dictionary that corresponds to this upload
        protocol. It typically contains keys like 'path', 'multipart' etc.
Sets upload specific template values.
Sets upload specific template values .
def _SetUploadTemplateValues(self, upload_protocol, protocol_dict):
    """Sets upload specific template values.

    Args:
      upload_protocol: (str) The name of the upload protocol. Eg: 'simple' or
        'resumable'.
      protocol_dict: (dict) The dictionary that corresponds to this upload
        protocol. It typically contains keys like 'path', 'multipart' etc.
    """
    self.SetTemplateValue('%s_upload_supported' % upload_protocol, True)
    upload_path = protocol_dict.get('path')
    if upload_path:
      self.SetTemplateValue('%s_upload_path' % upload_protocol, upload_path)
      self.SetTemplateValue('%s_upload_multipart' % upload_protocol,
                            protocol_dict.get('multipart', False))
def _SetUploadTemplateValues ( self , upload_protocol , protocol_dict ) : self . SetTemplateValue ( '%s_upload_supported' % upload_protocol , True ) upload_path = protocol_dict . get ( 'path' ) if upload_path : self . SetTemplateValue ( '%s_upload_path' % upload_protocol , upload_path ) self . SetTemplateValue ( '%s_upload_multipart' % upload_protocol , protocol_dict . get ( 'multipart' , False ) )