diff options
| author | Pepper <pepper@scannerjammer.com> | 2015-05-01 12:30:33 -0400 |
|---|---|---|
| committer | Pepper <pepper@scannerjammer.com> | 2015-05-01 12:30:33 -0400 |
| commit | ceb902d57f97b4deef9591aeb3caf22bb7d6450b (patch) | |
| tree | 5d428ba07505f5631885a811d98ab2cd00374a4b /move_to_server | |
| parent | 8557402d4cca9d2a99ba344310c494ee17a988c6 (diff) | |
added important stuff
Diffstat (limited to 'move_to_server')
| -rw-r--r-- | move_to_server | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/move_to_server b/move_to_server new file mode 100644 index 0000000..0cc890c --- /dev/null +++ b/move_to_server @@ -0,0 +1,20 @@ +## jsonp callback +#if param['callback'] is not None: +# url = (BASE_URL+dir+"/"+newfile).replace("'", "\\'") +# width, height = bin_identify (WORKING_DIR, newfile) +# print param['callback'] + "({" +# print "'url':'" + url + "'," +# print "'size':" + str(file_size (WORKING_DIR, newfile)) + "," +# print "'width':" + width + "," +# print "'height':" + height +# print "});" +# moveToS3(os.path.join(WORKING_DIR, newfile), "im/"+dir+"/"+newfile) +#else: +# print "#@im" +# print ", ".join([k+"="+str(v) for k,v in param.iteritems()]) +# print " ".join(cmd) +# print BASE_URL+dir+"/"+newfile +# print file_size (WORKING_DIR, newfile) +# print bin_identify (WORKING_DIR, newfile) +# moveToS3(os.path.join(WORKING_DIR, newfile), "im/"+dir+"/"+newfile) +# |
