Revision: 3996
Author: btongminh
Date: 2007-08-07 20:12:27 +0000 (Tue, 07 Aug 2007)
Log Message:
-----------
Add support for multilingual wikisource; Don't use cgitb anymore;
Modified Paths:
--------------
trunk/pywikipedia/delinker.py
Modified: trunk/pywikipedia/delinker.py
===================================================================
--- trunk/pywikipedia/delinker.py 2007-08-07 20:01:52 UTC (rev 3995)
+++ trunk/pywikipedia/delinker.py 2007-08-07 20:12:27 UTC (rev 3996)
@@ -52,6 +52,9 @@
# Special Wikimedia wiki
if wiki[1] == 'wikimedia':
return wiki[0], wiki[0]
+ # Multilingual wikisource
+ if domain == 'wikisource.org':
+ return '', 'wikisource'
# My local test wiki
if wiki[-1] == 'localhost':
if len(wiki) == 1:
@@ -267,7 +270,8 @@
self.delink_image(*args)
except:
output(u'An exception occured in %s' % self, False)
- print >>sys.stderr, cgitb.text(sys.exc_info())
+ traceback.print_exc(file = sys.stderr)
+ #print >>sys.stderr, cgitb.text(sys.exc_info())
def get_summary(self, site, domain, image, admin, reason, replacement):
""" Get the summary template and substitute the
Show replies by date