Lines Matching refs:content
534 """Helper to guess the content-type from the filename."""
626 """Get the content of the upstream version of a file.
665 def UploadFile(filename, file_id, content, is_binary, status, is_base):
672 if len(content) > MAX_UPLOAD_SIZE:
676 content = ""
677 checksum = md5.new(content).hexdigest()
692 [("data", filename, content)])
805 def _CollapseKeywords(self, content, keyword_str):
834 return re.sub(r"\$(%s):(:?)([^\$]+)\$" % '|'.join(keywords), repl, content)
908 # We'll need to upload the new content if we're adding a binary file
935 # Empty base content just to force an upload.