SourceForge.net | 1 Jun 2005 01:51
Picon
Favicon

[ pywikipediabot-Bugs-1212333 ] autonomous_problem.dat

Bugs item #1212333, was opened at 2005-05-31 16:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1212333&group_id=93107

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: autonomous_problem.dat

Initial Comment:
python interwiki.py -file:autonomous_problem.dat
Checked for running processes. 1 processes currently
running, including the current process.
Traceback (most recent call last):
  File "interwiki.py", line 993, in ?
    for pl in wikipedia.PagesFromFile(arg[6:]):
  File "/wikipedia.py", line 1115, in PagesFromFile
    fam=Family(part[i], fatal = False)
  File "/wikipedia.py", line 2196, in Family
    exec "import %s_family as myfamily" % fam
  File "<string>", line 1
    import Al-Bahr al-Ahmar (Sudan)_family as myfamily
(Continue reading)

Yuri Astrakhan | 1 Jun 2005 08:38
Picon

pywikipedia date.py,1.29,1.30 titletranslate.py,1.40,1.41

Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10561

Modified Files:
	date.py titletranslate.py 
Log Message:
* all date formats moved into a single map, together with days of the year
* updated titletranslate to use new dateFormats map

Index: titletranslate.py
===================================================================
RCS file: /cvsroot/pywikipediabot/pywikipedia/titletranslate.py,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** titletranslate.py	24 May 2005 06:17:22 -0000	1.40
--- titletranslate.py	1 Jun 2005 06:38:49 -0000	1.41
***************
*** 76,194 ****
                  else:
                      wikipedia.output(u"Ignoring unknown language code %s"%newcode)
-     # Autotranslate dates into some other languages, the rest will come from
-     # existing interwiki links.
-     if date.datetable.has_key(site.lang) and auto:
-         dt='(\d+) (%s)' % ('|'.join(date.datetable[site.lang].keys()))
-         Rdate = re.compile(dt)
-         m = Rdate.match(pl.linkname())
-         if m:
-             for newcode, fmt in date.date_format[date.datetable[site.lang][m.group(2)]].items():
-                 newname = fmt % int(m.group(1))
(Continue reading)

Daniel Herding | 1 Jun 2005 15:20
Picon

pywikipedia weblinkchecker.py,1.19,1.20

Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27219

Modified Files:
	weblinkchecker.py 
Log Message:
remove HTML comments inside links
don't show debug info on redirects

Index: weblinkchecker.py
===================================================================
RCS file: /cvsroot/pywikipediabot/pywikipedia/weblinkchecker.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** weblinkchecker.py	24 May 2005 17:03:17 -0000	1.19
--- weblinkchecker.py	1 Jun 2005 13:20:33 -0000	1.20
***************
*** 140,144 ****
              else:
                  newURL = '%s://%s/%s' % (self.protocol, self.host, redirTarget)
!             wikipedia.output(u'%s is a redirect to %s' % (self.url, newURL))
              return newURL

--- 140,144 ----
              else:
                  newURL = '%s://%s/%s' % (self.protocol, self.host, redirTarget)
!             # wikipedia.output(u'%s is a redirect to %s' % (self.url, newURL))
              return newURL

(Continue reading)

Andre Engels | 1 Jun 2005 14:40
Picon

pywikipedia spellcheck.py,1.15,1.16

Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8268

Modified Files:
	spellcheck.py 
Log Message:
When searching for similar words, first ask for something that should be part of the word, so searching is
made faster

Index: spellcheck.py
===================================================================
RCS file: /cvsroot/pywikipediabot/pywikipedia/spellcheck.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** spellcheck.py	25 May 2005 15:51:41 -0000	1.15
--- spellcheck.py	1 Jun 2005 12:40:15 -0000	1.16
***************
*** 101,119 ****
  def getalternatives(string):
      # Find possible correct words for the incorrect word string
      simwords = {}
      for i in xrange(11):
          simwords[i] = []
      for alt in knownwords.keys():
!         diff = distance(string,alt)
!         if diff < 11:
!             if knownwords[alt] == alt:
!                 simwords[diff] += [alt]
              else:
(Continue reading)

Andre Engels | 1 Jun 2005 16:09
Picon

pywikipedia wikipedia.py,1.463,1.464

Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21893

Modified Files:
	wikipedia.py 
Log Message:
1. When a page is in a different namespace, ensure that the first word of the 'real' name is capitalized as well
2. When a page is not found in the list of a getall, do not consider it non-existing but get it the 'normal' way.
This does not work as it should yet - all pages later in the list and all non-existing pages before it are also
gotten the 'normal' way instead.

Index: wikipedia.py
===================================================================
RCS file: /cvsroot/pywikipediabot/pywikipedia/wikipedia.py,v
retrieving revision 1.463
retrieving revision 1.464
diff -C2 -d -r1.463 -r1.464
*** wikipedia.py	22 May 2005 03:41:45 -0000	1.463
--- wikipedia.py	1 Jun 2005 14:09:38 -0000	1.464
***************
*** 171,177 ****
      """PageGroup is empty"""

! class NotLoggedIn(Error):
      """Anonymous editing Wikipedia is not possible"""

  SaxError = xml.sax._exceptions.SAXParseException

--- 171,180 ----
      """PageGroup is empty"""
(Continue reading)

Andre Engels | 1 Jun 2005 17:53
Picon

pywikipedia family.py,1.51,1.52

Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9553

Modified Files:
	family.py 
Log Message:
namespace names for csb:

Index: family.py
===================================================================
RCS file: /cvsroot/pywikipediabot/pywikipedia/family.py,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** family.py	23 May 2005 06:17:36 -0000	1.51
--- family.py	1 Jun 2005 15:53:49 -0000	1.52
***************
*** 1,3 ****
! # -*- coding: utf-8  -*-
  import config, urllib

--- 1,3 ----
! # -*- coding: utf-8  -*-
  import config, urllib

***************
*** 60,64 ****
                  'ca': u'Especial',
                  'cs': u'Speciální',
!                 #'csb': u'Specjalnô',
(Continue reading)

Andre Engels | 1 Jun 2005 18:33
Picon

pywikipedia family.py,1.52,1.53

Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31837

Modified Files:
	family.py 
Log Message:
namespace names for be:

Index: family.py
===================================================================
RCS file: /cvsroot/pywikipediabot/pywikipedia/family.py,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** family.py	1 Jun 2005 15:53:49 -0000	1.52
--- family.py	1 Jun 2005 16:33:24 -0000	1.53
***************
*** 56,59 ****
--- 56,60 ----
                  'als': u'Spezial',
                  'ar': u'خاص',
+                 'be': u'Спэцыяльныя',
                  'bg': u'Специални',
                  'bn': u'বিশেষ',
***************
*** 114,117 ****
--- 115,119 ----
                  'als': u'Diskussion',
                  'ar': u'نقاش',
+                 'be': u'Абмеркаваньне',
(Continue reading)

Daniel Herding | 1 Jun 2005 18:37
Picon

pywikipedia weblinkchecker.py,1.20,1.21

Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1476

Modified Files:
	weblinkchecker.py 
Log Message:
< and > inside URLs are not allowed

Index: weblinkchecker.py
===================================================================
RCS file: /cvsroot/pywikipediabot/pywikipedia/weblinkchecker.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** weblinkchecker.py	1 Jun 2005 13:20:33 -0000	1.20
--- weblinkchecker.py	1 Jun 2005 16:37:05 -0000	1.21
***************
*** 305,312 ****
          # right parenthesis at the end of the URL as not part of that URL.
          # The same applies to dot, comma, colon and some other characters.
!         # So characters inside the URL can be anything except whitespace and
!         # closing squared brackets, and the last character also can't be a
!         # parenthesis or another character disallowed by MediaWiki.
!         linkR = re.compile(r'http[s]?://[^\]\s]*[^\]\s\)\.:;,<>]')
          urls = linkR.findall(text)
          for url in urls:
--- 305,313 ----
          # right parenthesis at the end of the URL as not part of that URL.
          # The same applies to dot, comma, colon and some other characters.
!         # So characters inside the URL can be anything except whitespace,
(Continue reading)

Daniel Herding | 2 Jun 2005 16:20
Picon

pywikipedia mediawiki_messages.py,1.23,1.24

Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23582

Modified Files:
	mediawiki_messages.py 
Log Message:
fixed bug [ 1205303 ]
MediaWiki code has changed: colorization feature

added docu

Index: mediawiki_messages.py
===================================================================
RCS file: /cvsroot/pywikipediabot/pywikipedia/mediawiki_messages.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** mediawiki_messages.py	25 Mar 2005 09:36:01 -0000	1.23
--- mediawiki_messages.py	2 Jun 2005 14:20:00 -0000	1.24
***************
*** 7,19 ****
  them to disk. It is run automatically when a bot first tries to access one of
  the messages. It can be updated manually by running this script, e.g. when
! somebody changed the current message at the wiki.

! Syntax: python mediawiki_messages [-lang:xx]

  Command line options:
! 
! -lang:XX download labels in language XX instead of the one given in
(Continue reading)

Daniel Herding | 2 Jun 2005 17:21
Picon

pywikipedia wikipedia.py,1.464,1.465

Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25891

Modified Files:
	wikipedia.py 
Log Message:
started fixing bug "1202850: Updating a page removes it from watchlist" but it's not that possible

Index: wikipedia.py
===================================================================
RCS file: /cvsroot/pywikipediabot/pywikipedia/wikipedia.py,v
retrieving revision 1.464
retrieving revision 1.465
diff -C2 -d -r1.464 -r1.465
*** wikipedia.py	1 Jun 2005 14:09:38 -0000	1.464
--- wikipedia.py	2 Jun 2005 15:21:26 -0000	1.465
***************
*** 181,185 ****
  # The most important thing in this whole module: The Page class
  class Page(object):
!     """A Wikipedia page link."""
      def __init__(self, site, title = None, insite = None, tosite = None):
          """
--- 181,185 ----
  # The most important thing in this whole module: The Page class
  class Page(object):
!     """A page on the wiki."""
      def __init__(self, site, title = None, insite = None, tosite = None):
          """
***************
(Continue reading)


Gmane