[prev in list] [next in list] [prev in thread] [next in thread]
List: pywikipediabot-users
Subject: [pyWikipediaBot-users] pywikipedia category.py,1.106,1.107
From: Cyde Weys <cydeweys () users ! sourceforge ! net>
Date: 2006-04-30 18:38:52
Message-ID: E1FaGon-0003jn-L7 () mail ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3582
Modified Files:
category.py
Log Message:
Fixing batch mode bug.
Index: category.py
===================================================================
RCS file: /cvsroot/pywikipediabot/pywikipedia/category.py,v
retrieving revision 1.106
retrieving revision 1.107
diff -C2 -d -r1.106 -r1.107
*** category.py 29 Apr 2006 21:10:01 -0000 1.106
--- category.py 30 Apr 2006 18:38:49 -0000 1.107
***************
*** 310,321 ****
for subcategory in subcategories:
catlib.change_category(subcategory, self.oldCat, newCat)
! if self.oldCat.exists() and batchMode == False:
# try to copy page contents to new cat page
if self.oldCat.copyTo(newCatTitle):
! if self.oldCat.isEmpty():
! reason = wikipedia.translate(wikipedia.getSite(), \
deletion_reason_move) % newCatTitle
! self.oldCat.delete(reason)
! else:
! wikipedia.output('Couldn\'t copy contents of %s because %s \
already exists.' % (self.oldCatTitle, self.newCatTitle))
class CategoryRemoveRobot:
--- 310,322 ----
for subcategory in subcategories:
catlib.change_category(subcategory, self.oldCat, newCat)
! if self.oldCat.exists():
# try to copy page contents to new cat page
if self.oldCat.copyTo(newCatTitle):
! if batchMode == False:
! if self.oldCat.isEmpty():
! reason = wikipedia.translate(wikipedia.getSite(), \
deletion_reason_move) % newCatTitle
! self.oldCat.delete(reason)
! else:
! wikipedia.output('Couldn\'t copy contents of %s because %s \
already exists.' % (self.oldCatTitle, self.newCatTitle))
class CategoryRemoveRobot:
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
pyWikipediaBot-users mailing list
pyWikipediaBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pywikipediabot-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic