1
by Scott Moser
Import upstream version 0.5.3 |
1 |
#part-handler |
2 |
# vi: syntax=python ts=4 |
|
3 |
||
4 |
def list_types(): |
|
5 |
return(["text/plain", "text/go-cubs-go"]) |
|
6 |
||
7 |
def handle_part(data,ctype,filename,payload): |
|
8 |
if ctype == "__end__" or ctype == "__begin__": return |
|
9 |
||
10 |
print "==== received ctype=%s filename=%s ====" % (ctype,filename) |
|
11 |
print payload |
|
12 |
print "==== end ctype=%s filename=%s" % (ctype, filename) |