Lines Matching full:upload
12 # To upload a file to Google Code, you need to provide a path to the
21 # Note that the upload script requests that you enter your
33 # the upload() function, which is the meat of the uploader. You
59 def upload(file, project_name, user_name, password, summary, labels=None): function
60 """Upload a file to a Google Code project's file server.
72 http_status: 201 if the upload succeeded, something else if an
75 file_url: If the upload succeeded, the URL of the file on Google
114 the file to upload. The file will be uploaded to Google Code with
124 # Add the metadata about the upload first
143 # The upload server determines the mime-type, no need to set it.
157 """Find credentials and upload a file to a Google Code project's file server.
159 file_path, project_name, summary, and labels are passed as-is to upload.
194 status, reason, url = upload(file_path, project_name, user_name, password,
210 parser = optparse.OptionParser(usage='googlecode-upload.py -s SUMMARY '
231 parser.error('File to upload not provided.')
251 print 'Google Code upload server said: %s (%s)' % (reason, status)