Bugs item #3582353, was opened at 2012-10-31 15:25
Message generated for change (Tracker Item Submitted) made by ganz-ru
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582353&group_…
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
Private: No
Submitted By: GanZ (ganz-ru)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bug in Rev 10629
Initial Comment:
Line 1666 of interwiki.py should be "page.namespace() == 10" instead "page.site.namespace() == 10".
There is an error as result:
Traceback (most recent call last):
File "U:\pywikipedia 2\interwiki.py", line 2583, in <module>
main()
File "U:\pywikipedia 2\interwiki.py", line 2557, in main
bot.run()
File "U:\pywikipedia 2\interwiki.py", line 2290, in run
self.queryStep()
File "U:\pywikipedia 2\interwiki.py", line 2268, in queryStep
subj.finish(self)
File "U:\pywikipedia 2\interwiki.py", line 1666, in finish
page.site.namespace() == 10 and
TypeError: namespace() takes at least 2 arguments (1 given)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582353&group_…
Bugs item #3582204, was opened at 2012-10-31 04:28
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582204&group_…
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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Dries V (driesv)
>Assigned to: xqt (xqt)
Summary: replace.py exceptinsidetag:template does not work correct
Initial Comment:
I have a page "Test" with only the following text:
Het puntenboek is het vertrekpunt van je rapporten. Standaard heeft {{!}} een ''Standaard puntenboek'' aangemaakt. Indien je meerdere puntenboeken gebruikt dan zal het ''groepnummer'' een belangrijke rol spelen. {{!}}
For the convenience, I changed my templates to {{!}}.
I run the following script:
python replace.py -page:Test " ''Groepnummer'' " " test " -always -nocase -exceptinsidetag:template
The text isn't replaced.
If I loose the last template {{!}}. The script works. Offcourse, when I don't use -exceptinsidetag:template, the script always works.
Version.py:
unicode test: triggers problem #3081100
Pywikipedia (r10622 (wikipedia.py), 2012/10/28, 10:40:09)
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-10-31 10:01
Message:
r8307 reverted
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582204&group_…
Bugs item #3582204, was opened at 2012-10-31 04:28
Message generated for change (Tracker Item Submitted) made by driesv
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582204&group_…
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: rewrite
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dries V (driesv)
Assigned to: Russell Blau (russblau)
Summary: replace.py exceptinsidetag:template does not work correct
Initial Comment:
I have a page "Test" with only the following text:
Het puntenboek is het vertrekpunt van je rapporten. Standaard heeft {{!}} een ''Standaard puntenboek'' aangemaakt. Indien je meerdere puntenboeken gebruikt dan zal het ''groepnummer'' een belangrijke rol spelen. {{!}}
For the convenience, I changed my templates to {{!}}.
I run the following script:
python replace.py -page:Test " ''Groepnummer'' " " test " -always -nocase -exceptinsidetag:template
The text isn't replaced.
If I loose the last template {{!}}. The script works. Offcourse, when I don't use -exceptinsidetag:template, the script always works.
Version.py:
unicode test: triggers problem #3081100
Pywikipedia (r10622 (wikipedia.py), 2012/10/28, 10:40:09)
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582204&group_…
Bugs item #3535184, was opened at 2012-06-14 05:11
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3535184&group_…
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: rewrite
Group: None
Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: xqt (xqt)
Assigned to: xqt (xqt)
Summary: WARNING: Logged in as IP insead of Bot
Initial Comment:
checking out the rewrite branch and copying the user files I runned touch.py and got an error as follows:
C:\pwb\rewrite>pwb.py touch user:xqt/Test -v -debug
Pywikipediabot r10326 2012-06-08 12:08:53Z
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
Retrieving 1 pages from wikipedia:de.
Starting 1 threads...
Found 1 wikipedia:de processes running, including this one.
WARNING: Logged in as 199.199.199.199 instead of Xqbot
Dropped throttle(s).
Traceback (most recent call last):
File "C:\pwb\rewrite\pwb.py", line 42, in <module>
execfile(sys.argv[0])
File "C:\pwb\rewrite\scripts\touch.py", line 99, in <module>
main()
File "C:\pwb\rewrite\scripts\touch.py", line 94, in main
bot.run()
File "C:\pwb\rewrite\scripts\touch.py", line 47, in run
page.save("Pywikibot touch script")
File "C:\pwb\rewrite\pywikibot\page.py", line 735, in save
if not force and not self.botMayEdit():
File "C:\pwb\rewrite\pywikibot\page.py", line 670, in botMayEdit
username = self.site.user()
File "C:\pwb\rewrite\pywikibot\site.py", line 177, in user
elif self.logged_in(False):
File "C:\pwb\rewrite\pywikibot\site.py", line 692, in logged_in
raise
TypeError: exceptions must be old-style classes or derived from BaseException, n
ot NoneType
Waiting for threads to finish...
All threads finished.
Dropped throttle(s).
C:\pwb\rewrite>
I've added the raise to get the traceback of the statement.
version.py:
Pywikibot branches/rewrite/ (r10359, 2012/06/12, 16:46:30)
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
unicode test: ok
C:\pwb\rewrite>
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-20 15:48
Message:
enable explicit login with r10395
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-20 14:03
Message:
Another try I do not understand:
>>> import pwb
>>> import pywikibot as wp
>>> s = wp.getSite()
>>> s.logged_in()
False
>>> s._loginstatus
-3
>>> p = wp.Page(s, 'user:xqt/Test')
>>> from pywikibot import config2 as cf
>>> cf.cosmetic_changes = False
>>> p.text += '\n Test'
>>> s._loginstatus
-3
>>> s.logged_in()
True
>>>
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-20 13:56
Message:
The next strangeness about login:
running
pwb.py login
gives
Not logged in on wikipedia:de
But changing a page with
basic.py user:xqt/Test
shows the bor was logged in:
http://de.wikipedia.org/w/index.php?title=Benutzer%3AXqt%2FTest&diff=104620…
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2012-06-14 09:29
Message:
This appears to be a result of
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10284, which removed
code that automatically logged you in when you accessed the API. A
work-around is to add an explicit "site.login()" call to every script.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3535184&group_…
Bugs item #3535184, was opened at 2012-06-14 05:11
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3535184&group_…
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: rewrite
Group: None
Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: xqt (xqt)
Assigned to: xqt (xqt)
Summary: WARNING: Logged in as IP insead of Bot
Initial Comment:
checking out the rewrite branch and copying the user files I runned touch.py and got an error as follows:
C:\pwb\rewrite>pwb.py touch user:xqt/Test -v -debug
Pywikipediabot r10326 2012-06-08 12:08:53Z
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
Retrieving 1 pages from wikipedia:de.
Starting 1 threads...
Found 1 wikipedia:de processes running, including this one.
WARNING: Logged in as 199.199.199.199 instead of Xqbot
Dropped throttle(s).
Traceback (most recent call last):
File "C:\pwb\rewrite\pwb.py", line 42, in <module>
execfile(sys.argv[0])
File "C:\pwb\rewrite\scripts\touch.py", line 99, in <module>
main()
File "C:\pwb\rewrite\scripts\touch.py", line 94, in main
bot.run()
File "C:\pwb\rewrite\scripts\touch.py", line 47, in run
page.save("Pywikibot touch script")
File "C:\pwb\rewrite\pywikibot\page.py", line 735, in save
if not force and not self.botMayEdit():
File "C:\pwb\rewrite\pywikibot\page.py", line 670, in botMayEdit
username = self.site.user()
File "C:\pwb\rewrite\pywikibot\site.py", line 177, in user
elif self.logged_in(False):
File "C:\pwb\rewrite\pywikibot\site.py", line 692, in logged_in
raise
TypeError: exceptions must be old-style classes or derived from BaseException, n
ot NoneType
Waiting for threads to finish...
All threads finished.
Dropped throttle(s).
C:\pwb\rewrite>
I've added the raise to get the traceback of the statement.
version.py:
Pywikibot branches/rewrite/ (r10359, 2012/06/12, 16:46:30)
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
unicode test: ok
C:\pwb\rewrite>
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2012-10-27 17:19
Message:
84TH7J <a href="http://auufxapmffuz.com/">auufxapmffuz</a>,
[url=http://fchpxsgptdkl.com/]fchpxsgptdkl[/url],
[link=http://ftvhkslpmlmy.com/]ftvhkslpmlmy[/link],
http://fceotclvfibb.com/
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-20 15:48
Message:
enable explicit login with r10395
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-20 14:03
Message:
Another try I do not understand:
>>> import pwb
>>> import pywikibot as wp
>>> s = wp.getSite()
>>> s.logged_in()
False
>>> s._loginstatus
-3
>>> p = wp.Page(s, 'user:xqt/Test')
>>> from pywikibot import config2 as cf
>>> cf.cosmetic_changes = False
>>> p.text += '\n Test'
>>> s._loginstatus
-3
>>> s.logged_in()
True
>>>
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-20 13:56
Message:
The next strangeness about login:
running
pwb.py login
gives
Not logged in on wikipedia:de
But changing a page with
basic.py user:xqt/Test
shows the bor was logged in:
http://de.wikipedia.org/w/index.php?title=Benutzer%3AXqt%2FTest&diff=104620…
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2012-06-14 09:29
Message:
This appears to be a result of
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10284, which removed
code that automatically logged you in when you accessed the API. A
work-around is to add an explicit "site.login()" call to every script.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3535184&group_…
Bugs item #3581214, was opened at 2012-10-27 11:58
Message generated for change (Tracker Item Submitted) made by yfdyh000
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3581214&group_…
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: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: YFdyh000 (yfdyh000)
Assigned to: Nobody/Anonymous (nobody)
Summary: The conflict can not be detected?
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r10615, 2012/10/25, 22:02:28)
Python 2.7.3 (default, Oct 12 2012, 16:17:26)
[GCC 4.4.5]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
python interwiki.py -usercontribs:Cheers\!-bot\;5000 -async -auto -quiet -namespace:0 -lang:vi
http://en.wikipedia.org/w/index.php?title=Gabbur&action=historyhttp://en.wikipedia.org/w/index.php?title=Galaginakatti&action=history
......
Running logs, the script intend multiple updates on same page the [[en:Dodderi]]
======Post-processing [[vi:Dodderi, Honnali]]======
Updating links on page [[en:Dodderi]].
Changes to be made: Robot: Adding [[vi:Dodderi, Honnali]]
+
+ [[vi:Dodderi, Honnali]]
======Post-processing [[vi:Dodderi, Channarayapatna]]======
Updating links on page [[en:Dodderi]].
Changes to be made: Robot: Adding [[vi:Dodderi, Channarayapatna]]
+
+ [[vi:Dodderi, Channarayapatna]]
Updating page [[en:Gabbur]] via API
Updating page [[en:Gaddi]] via API
======Post-processing [[vi:Dodderi, Nelamangala]]======
Updating links on page [[en:Dodderi]].
Changes to be made: Robot: Adding [[vi:Dodderi, Nelamangala]]
+
+ [[vi:Dodderi, Nelamangala]]
======Post-processing [[vi:Dodderi, Bangalore South]]======
Updating links on page [[en:Dodderi]].
Changes to be made: Robot: Adding [[vi:Dodderi, Bangalore South]]
+
+ [[vi:Dodderi, Bangalore South]]
Updating page [[en:Gaddiholi]] via API
======Post-processing [[vi:Dodderi, Tumkur]]======
Updating links on page [[en:Dodderi]].
Changes to be made: Robot: Adding [[vi:Dodderi, Tumkur]]
+
+ [[vi:Dodderi, Tumkur]]
Updating page [[hi:गदर पार्टी]] via API
======Post-processing [[vi:Dodderi, Bangarapet]]======
Updating links on page [[en:Dodderi]].
Changes to be made: Robot: Adding [[vi:Dodderi, Bangarapet]]
+
+ [[vi:Dodderi, Bangarapet]]
Updating page [[en:Ghadar Party]] via API
Updating page [[ta:கதர் கட்சி]] via API
======Post-processing [[vi:Dodderi, Gubbi]]======
Updating links on page [[en:Dodderi]].
Changes to be made: Robot: Adding [[vi:Dodderi, Gubbi]]
+
+ [[vi:Dodderi, Gubbi]]
======Post-processing [[vi:Dodderi, Madhugiri]]======
Updating links on page [[en:Dodderi]].
Changes to be made: Robot: Adding [[vi:Dodderi, Madhugiri]]
+
+ [[vi:Dodderi, Madhugiri]]
Updating page [[es:Partido Ghadar]] via API
======Post-processing [[vi:Dodderi, Bhadravati]]======
Updating links on page [[en:Dodderi]].
Changes to be made: Robot: Adding [[vi:Dodderi, Bhadravati]]
+
+ [[vi:Dodderi, Bhadravati]]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3581214&group_…
Patches item #3581072, was opened at 2012-10-27 08:35
Message generated for change (Comment added) made by strainu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3581072&group_…
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
Private: No
Submitted By: Andrei Cipu (strainu)
Assigned to: Nobody/Anonymous (nobody)
Summary: Force retrieval of last edit time
Initial Comment:
This patch changes the Page.editTime function in order to allow the user to request a valid editTime even if the page has not yet been fetched. The API call used is theoretically much lighter than retrieving the whole page. The default behavior remains unchanged.
----------------------------------------------------------------------
>Comment By: Andrei Cipu (strainu)
Date: 2012-10-27 08:45
Message:
As a performance optimization, line 1256 could read
if force and not self._editTime:
However, I wrote the patch without checking if the editTime has been
fetched because "force" should imply that the value is updated
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3581072&group_…
Patches item #3581072, was opened at 2012-10-27 08:35
Message generated for change (Tracker Item Submitted) made by strainu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3581072&group_…
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
Private: No
Submitted By: Andrei Cipu (strainu)
Assigned to: Nobody/Anonymous (nobody)
Summary: Force retrieval of last edit time
Initial Comment:
This patch changes the Page.editTime function in order to allow the user to request a valid editTime even if the page has not yet been fetched. The API call used is theoretically much lighter than retrieving the whole page. The default behavior remains unchanged.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3581072&group_…
Patches item #3580193, was opened at 2012-10-25 12:02
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3580193&group_…
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
Private: No
Submitted By: Shrinivasan T (t-shrinivasan)
Assigned to: Nobody/Anonymous (nobody)
Summary: Showing content as summary of a page
Initial Comment:
It will be nice to have an option to have the contnet of a page as summary.
for the file pagefromfile.py
I added this feature and attaching the diff file.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-10-27 05:58
Message:
The summary should indicate the bot edit and it also should trunctated to
e.g. 250 chars. Maybe it is a good idea to append a part of the created
text to the current default summary.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3580193&group_…
Feature Requests item #3516383, was opened at 2012-04-10 03:26
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3516383&group_…
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: Closed
>Resolution: Fixed
Priority: 4
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Support for transliteration in console output
Initial Comment:
Since some days/weeks ago, I can't get non-latin characters to be displayed in the Windows console. Usually, they would be transliterated and in yellow, but now I only see either question marks or blocks (if I use an Unicode font). There is an exception for Greek characters which are displayed correctly if I use an Unicode font. As of now, I can't confirm an interwiki link in Cyrilic simply because I can't see what text is in [[ru:????????]].
I use the cp850 encoding. Using cp65001 is not supported by Pywikipedia.
It would be great to get the transliteration feature back working. For instance, r9974 worked fine.
Comment on config.py:
############## USER INTERFACE SETTINGS ##############
# The encoding that's used in the user's console, i.e. how strings are encoded
# when they are read by raw_input(). On Windows systems' DOS box, this should
# be 'cp850' ('cp437' for older versions). Linux users might try 'iso-8859-1'
# or 'utf-8'.
# This default code should work fine, so you don't have to think about it.
# TODO: consider getting rid of this config variable.
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-05-05 12:24
Message:
Implemented in r10187. Please see
http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows on how to set
user-config.py.
Please note that the blocks you see are correct -- you can copy them to the
browser and visit that page, which is impossible with transliterated
characters!
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-04-16 03:41
Message:
I'm moving this to feature requests with a lower priority. In the current
setup, we output the correct characters, but your font is unable to
correctly render them. However, copying does work, and I think this is more
useful than transliterated characters.
Checking if an interwiki link is correct is not possible using
transliterations, but is possible by copy-pasting the unicode characters.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-04-10 05:24
Message:
Try reverting r10048 of terminal_interface_base.py to the previous r10047.
I found it helps and gives the right transliterations. Could you verify?
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2012-04-10 04:30
Message:
Not really. Lucida Console doesn't show Cyrilic or Georgian or Arabic.
AFAICT, it only shows Latin and Greek.
It got better with DejaVu Sans Mono [check
http://stackoverflow.com/questions/878972/windows-cmd-encoding-change-cause…]
but I still see some unsupported characters showing up sometimes.
Is there a complete mono font out there (free)?
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-04-10 03:31
Message:
Set your console character set to Consolas or Lucida instead of raster
fonts at the properties, and you will find it better than earlier. :-)
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2012-04-10 03:27
Message:
Sorry, that was me. I forgot to login.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3516383&group_…