Revision: 7825
Author: xqt
Date: 2009-12-26 14:41:23 +0000 (Sat, 26 Dec 2009)
Log Message:
-----------
regex-fix for nn-wiki
Modified Paths:
--------------
trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py
===================================================================
--- trunk/pywikipedia/cosmetic_changes.py 2009-12-25 07:33:48 UTC (rev 7824)
+++ trunk/pywikipedia/cosmetic_changes.py 2009-12-26 14:41:23 UTC (rev 7825)
@@ -277,7 +277,7 @@
# nn got a message between the categories and the iw's
# and they want to keep it there, first remove it
if self.site.language()=='nn':
- regex = re.compile('(<!-- ?interwiki \(no(/nv)?, ?sv, ?da first; then other languages alphabetically by name\) ?-->)')
+ regex = re.compile('(<!-- ?interwiki \(no(/nb)?, ?sv, ?da first; then other languages alphabetically by name\) ?-->)')
found = regex.findall(text)
if found != []:
if pywikibot.verbose:
Revision: 7820
Author: multichill
Date: 2009-12-23 15:22:53 +0000 (Wed, 23 Dec 2009)
Log Message:
-----------
Small fix when working on a flickr group (prevent endless loop)
Modified Paths:
--------------
trunk/pywikipedia/flickrripper.py
Modified: trunk/pywikipedia/flickrripper.py
===================================================================
--- trunk/pywikipedia/flickrripper.py 2009-12-23 10:34:31 UTC (rev 7819)
+++ trunk/pywikipedia/flickrripper.py 2009-12-23 15:22:53 UTC (rev 7820)
@@ -364,6 +364,7 @@
while not gotPhotos:
try:
for photo in flickr.groups_pools_getPhotos(group_id=group_id, user_id=user_id, tags=tags, per_page='100', page=i).find('photos').getchildren():
+ gotPhotos = True
if photo.attrib['id']==start_id:
found_start_id=True
if found_start_id: