[Pywikipedia-l] SVN: [5961] trunk/pywikipedia/upload.py

jayvdb at svn.wikimedia.org jayvdb at svn.wikimedia.org
Tue Oct 14 00:19:59 UTC 2008


Revision: 5961
Author:   jayvdb
Date:     2008-10-14 00:19:59 +0000 (Tue, 14 Oct 2008)

Log Message:
-----------
* add 'djvu' as an allowed_formats

Modified Paths:
--------------
    trunk/pywikipedia/upload.py

Modified: trunk/pywikipedia/upload.py
===================================================================
--- trunk/pywikipedia/upload.py	2008-10-12 12:01:23 UTC (rev 5960)
+++ trunk/pywikipedia/upload.py	2008-10-14 00:19:59 UTC (rev 5961)
@@ -175,7 +175,7 @@
             ok = False
             # FIXME: these 2 belong somewhere else, presumably in family
             forbidden = '/' # to be extended
-            allowed_formats = (u'gif', u'jpg', u'jpeg', u'mid', u'midi', u'ogg', u'png', u'svg', u'xcf')
+            allowed_formats = (u'gif', u'jpg', u'jpeg', u'mid', u'midi', u'ogg', u'png', u'svg', u'xcf', u'djvu')
             while not ok:
                 ok = True
                 newfn = wikipedia.input(u'Enter a better name, or press enter to accept:')





More information about the Pywikipedia-l mailing list