Revision: 5512 Author: multichill Date: 2008-06-04 13:44:16 +0000 (Wed, 04 Jun 2008)
Log Message: ----------- Fix cookies to login
Modified Paths: -------------- trunk/pywikipedia/upload.py
Modified: trunk/pywikipedia/upload.py =================================================================== --- trunk/pywikipedia/upload.py 2008-06-04 13:27:48 UTC (rev 5511) +++ trunk/pywikipedia/upload.py 2008-06-04 13:44:16 UTC (rev 5512) @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +# -*- coding: utf-8 -*- """ Script to upload images to wikipedia.
@@ -34,7 +34,7 @@ Return the server's response page. """ contentType, body = encode_multipart_formdata(fields, files) - return site.postData(address, body, contentType = contentType) + return site.postData(address, body, contentType = contentType, cookies = cookies)
def encode_multipart_formdata(fields, files): """