From ed39a548386dcb81f319d6b99bc1920c548e7520 Mon Sep 17 00:00:00 2001 From: Apkawa Date: Sun, 16 Nov 2008 00:41:04 +0300 Subject: [PATCH] =?utf8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?utf8?q?=20=D1=85=D0=BE=D1=81=D1=82=20picthost.ru.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- uimgepy/libuimge/imagehost.py | 23 +++++++++++++++++++++++ uimgepy/libuimge/lang.py | 2 ++ uimgepy/uimge.py | 3 +++ 3 files changed, 28 insertions(+) diff --git a/uimgepy/libuimge/imagehost.py b/uimgepy/libuimge/imagehost.py index 7294360..b68b96d 100644 --- a/uimgepy/libuimge/imagehost.py +++ b/uimgepy/libuimge/imagehost.py @@ -160,6 +160,29 @@ def host_u_funkyimg(send): url.reverse() return url +def host_p_picthost(send): + file_name,label,mode=send[0],send[1],send[2] + ihost={\ + 'host':'picthost.ru', \ + 'post':'/upload.php', \ + 'name':'userfile[]',\ + 'cookie':''\ + } + form_vaule = [\ + ('private_upload','1'),\ + ('upload','"Upload Images"'),('uptype','file'),\ + ('file_1',''),('maxNumber','1'),('maxId','') + ] + #print libiu.send_file(file_name, ihost, form_vaule, (None,mode)).read() + url=findall('\