#part-handler # vi: syntax=python ts=4 def list_types(): return(["text/plain", "text/go-cubs-go"]) def handle_part(data,ctype,filename,payload): if ctype == "__end__" or ctype == "__begin__": return print "==== received ctype=%s filename=%s ====" % (ctype,filename) print payload print "==== end ctype=%s filename=%s" % (ctype, filename)