Patches item #3602219, was opened at 2013-01-26 09:33
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&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: Pending
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nullzer0 (nu11zer0)
Assigned to: xqt (xqt)
Summary: Convert relative links to absolute links in linkedPages().
Initial Comment:
Convert relative links to absolute links in linkedPages().
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 02:48
Message:
I've done a patch in r10987. Please have a look at this. The right list for
some mw projects will come soon.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 01:42
Message:
What is with the article namespace on other projects than "wikipedia"? What
about several other namespaces? At the moment not all wikipedia sister
projects have subpages on project: and help: namespaces
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-26 14:58
Message:
I should have explained the patch clearer. Sorry.
Relative link is disabled on main namespace of Wikipedia because subpage
feature is disabled there (See
http://en.wikipedia.org/wiki/Wikipedia:Subpages). For example, on main
namespace of Wikipedia, if you write [[/b]] on page "a", it will produce a
link to page "/b". However, if you do the same thing on another namespace
or another family, it will produce a link to [[a/b]]. I just write the code
to simulate this behavior as much as possible.
For os.path problem, I will fix it soon. Thank you for noticing this
problem much. :-)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-26 11:56
Message:
In general a good idea but could you please explain that patch? What is the
reason to do that fix outside the wikipedia article namespace only? {the
condition is equal to: not (self.site.family.name == "wikipedia" and
self.namespace() == 0)}
And btw os.path methods does not work for mediawiki "directories" especial
with windows os.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&group_…
Patches item #3602219, was opened at 2013-01-26 09:33
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&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: Fixed
Priority: 5
Private: No
Submitted By: Nullzer0 (nu11zer0)
Assigned to: xqt (xqt)
Summary: Convert relative links to absolute links in linkedPages().
Initial Comment:
Convert relative links to absolute links in linkedPages().
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-01-27 02:48
Message:
I've done a patch in r10987. Please have a look at this. The right list for
some mw projects will come soon.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 01:42
Message:
What is with the article namespace on other projects than "wikipedia"? What
about several other namespaces? At the moment not all wikipedia sister
projects have subpages on project: and help: namespaces
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-26 14:58
Message:
I should have explained the patch clearer. Sorry.
Relative link is disabled on main namespace of Wikipedia because subpage
feature is disabled there (See
http://en.wikipedia.org/wiki/Wikipedia:Subpages). For example, on main
namespace of Wikipedia, if you write [[/b]] on page "a", it will produce a
link to page "/b". However, if you do the same thing on another namespace
or another family, it will produce a link to [[a/b]]. I just write the code
to simulate this behavior as much as possible.
For os.path problem, I will fix it soon. Thank you for noticing this
problem much. :-)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-26 11:56
Message:
In general a good idea but could you please explain that patch? What is the
reason to do that fix outside the wikipedia article namespace only? {the
condition is equal to: not (self.site.family.name == "wikipedia" and
self.namespace() == 0)}
And btw os.path methods does not work for mediawiki "directories" especial
with windows os.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&group_…
Patches item #3602219, was opened at 2013-01-26 09:33
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&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: Nullzer0 (nu11zer0)
Assigned to: xqt (xqt)
Summary: Convert relative links to absolute links in linkedPages().
Initial Comment:
Convert relative links to absolute links in linkedPages().
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-01-27 01:42
Message:
What is with the article namespace on other projects than "wikipedia"? What
about several other namespaces? At the moment not all wikipedia sister
projects have subpages on project: and help: namespaces
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-26 14:58
Message:
I should have explained the patch clearer. Sorry.
Relative link is disabled on main namespace of Wikipedia because subpage
feature is disabled there (See
http://en.wikipedia.org/wiki/Wikipedia:Subpages). For example, on main
namespace of Wikipedia, if you write [[/b]] on page "a", it will produce a
link to page "/b". However, if you do the same thing on another namespace
or another family, it will produce a link to [[a/b]]. I just write the code
to simulate this behavior as much as possible.
For os.path problem, I will fix it soon. Thank you for noticing this
problem much. :-)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-26 11:56
Message:
In general a good idea but could you please explain that patch? What is the
reason to do that fix outside the wikipedia article namespace only? {the
condition is equal to: not (self.site.family.name == "wikipedia" and
self.namespace() == 0)}
And btw os.path methods does not work for mediawiki "directories" especial
with windows os.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&group_…
Patches item #3602219, was opened at 2013-01-26 09:33
Message generated for change (Comment added) made by nu11zer0
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&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: Nullzer0 (nu11zer0)
Assigned to: xqt (xqt)
Summary: Convert relative links to absolute links in linkedPages().
Initial Comment:
Convert relative links to absolute links in linkedPages().
----------------------------------------------------------------------
>Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-26 14:58
Message:
I should have explained the patch clearer. Sorry.
Relative link is disabled on main namespace of Wikipedia because subpage
feature is disabled there (See
http://en.wikipedia.org/wiki/Wikipedia:Subpages). For example, on main
namespace of Wikipedia, if you write [[/b]] on page "a", it will produce a
link to page "/b". However, if you do the same thing on another namespace
or another family, it will produce a link to [[a/b]]. I just write the code
to simulate this behavior as much as possible.
For os.path problem, I will fix it soon. Thank you for noticing this
problem much. :-)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-26 11:56
Message:
In general a good idea but could you please explain that patch? What is the
reason to do that fix outside the wikipedia article namespace only? {the
condition is equal to: not (self.site.family.name == "wikipedia" and
self.namespace() == 0)}
And btw os.path methods does not work for mediawiki "directories" especial
with windows os.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&group_…
Patches item #3602219, was opened at 2013-01-26 09:33
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&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: Nullzer0 (nu11zer0)
>Assigned to: xqt (xqt)
Summary: Convert relative links to absolute links in linkedPages().
Initial Comment:
Convert relative links to absolute links in linkedPages().
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-01-26 11:56
Message:
In general a good idea but could you please explain that patch? What is the
reason to do that fix outside the wikipedia article namespace only? {the
condition is equal to: not (self.site.family.name == "wikipedia" and
self.namespace() == 0)}
And btw os.path methods does not work for mediawiki "directories" especial
with windows os.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&group_…
Feature Requests item #3574557, was opened at 2012-10-04 13:02
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3574557&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: Interface Improvements
Group: None
>Status: Closed
>Resolution: Rejected
Priority: 5
Private: No
Submitted By: JAn (jandudik)
>Assigned to: xqt (xqt)
Summary: solve_disambiguations and templates
Initial Comment:
It would be fine, if I can define (or global defined) templates and parametersm which means links.
example:
{{Infobox foo
|name = bar
|link=Article
|description=Lorem ipsum
}}
where [[Article]] is disambiguation
When I run solve_disambiguation, bot got message No changes needed in "Page"
I want to replace Article -> Article (main)
but when it is not in brackets...
If there exists such list of templates and parameters, bot should recognize parameter link= in template {{Infobox foo}} and replace it
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-01-26 11:29
Message:
There is a way to use the more generic replace.py or fixes.py to do that.
There is no way to see whether the link parameter is a real wiki link. It
may also be a database link of a foreign databased website
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-26 08:03
Message:
I don't agree with this feature. {{Other uses}} and other templates which
have the same function will be affected incorrectly.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3574557&group_…
Bugs item #3596617, was opened at 2012-12-16 10:55
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3596617&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: trunk
>Status: Closed
>Resolution: Fixed
Priority: 6
Private: No
Submitted By: Multichill (multichill)
>Assigned to: Multichill (multichill)
Summary: getFilesFromAnHash stopped working
Initial Comment:
Pywikipedia [svn+ssh] multichill@trunk/pywikipedia (r10797, 2012/12/15, 13:08:17
)
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
Traceback (most recent call last):
File "C:\pywikipedia\data_ingestion.py", line 170, in <module>
bot.run()
File "C:\pywikipedia\data_ingestion.py", line 162, in run
self._doUpload(photo)
File "C:\pywikipedia\data_ingestion.py", line 135, in _doUpload
duplicates = photo.findDuplicateImages(self.site)
File "C:\pywikipedia\data_ingestion.py", line 53, in findDuplicateImages
return site.getFilesFromAnHash(base64.b16encode(hashObject.digest()))
File "C:\pywikipedia\wikipedia.py", line 8213, in getFilesFromAnHash
allimages = query.GetData(params, self)['query']['allimages']
KeyError: 'query'
See https://bugzilla.wikimedia.org/show_bug.cgi?id=43177
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-26 07:27
Message:
From http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10802, the bug
have been fixed, right? If so, please change the status to close. :-)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3596617&group_…
Feature Requests item #3602107, was opened at 2013-01-25 06:38
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3602107&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: 3
Private: No
Submitted By: Анима (n-fran)
Assigned to: Nobody/Anonymous (nobody)
Summary: standardize_notes.py encoding
Initial Comment:
If I want to add to the script text of russian letters, is this error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
To avoid this error, I think, it is necessary to register in the code bot these or any of the other lines:
# -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
And my bot started to function. Thanks.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-01-26 11:18
Message:
While using python 2.X there are two kind of stings:
ASCII strings are noted like "This is a ascii string"
unicode strings are noted like u"This is a unicode string"
Just write a u before that sting in line 987 (and remove that
reload/encoding stuff):
new_text = new_text + u'\n== Notes ==\n' # set to
standard name
But ok, this part should be localized
----------------------------------------------------------------------
Comment By: Анима (n-fran)
Date: 2013-01-25 09:32
Message:
In my user-config.py there are lines
console_encoding = 'cp1251'
transliteration_target = console_encoding
but the problems with the coding still a lot. Thank you.
----------------------------------------------------------------------
Comment By: Анима (n-fran)
Date: 2013-01-25 09:23
Message:
Sorry, my knowledge of the English language, particularly on the part of
the technical terms, it may be bad. I meant that I was putting in Russian
characters in the file standardize_notes.py . For example, I changed the
'\n== Notes ==\n' to '\n== Примечания ==\n' (line 987), and then
this error appeared:
http://pastebin.ru/yzh2CdvX
When I added in the beginning of the text file, which is pointed out above,
the problem disappeared. Thank you.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-25 07:38
Message:
I cannot follow what you mean with "add to the script". Do you want to
modify the script or enter russian characters on the command line?
What is the complete error you got.
Did you set your transliteration_target and console_encoding in your
user-config.py
reload(sys) after import sys does not matter since it just reloads the same
module
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3602107&group_…
Patches item #3602219, was opened at 2013-01-26 09:33
Message generated for change (Tracker Item Submitted) made by nu11zer0
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&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: Nullzer0 (nu11zer0)
Assigned to: Nobody/Anonymous (nobody)
Summary: Convert relative links to absolute links in linkedPages().
Initial Comment:
Convert relative links to absolute links in linkedPages().
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&group_…
Feature Requests item #3574557, was opened at 2012-10-04 13:02
Message generated for change (Comment added) made by nu11zer0
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3574557&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: Interface Improvements
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: JAn (jandudik)
Assigned to: Nobody/Anonymous (nobody)
Summary: solve_disambiguations and templates
Initial Comment:
It would be fine, if I can define (or global defined) templates and parametersm which means links.
example:
{{Infobox foo
|name = bar
|link=Article
|description=Lorem ipsum
}}
where [[Article]] is disambiguation
When I run solve_disambiguation, bot got message No changes needed in "Page"
I want to replace Article -> Article (main)
but when it is not in brackets...
If there exists such list of templates and parameters, bot should recognize parameter link= in template {{Infobox foo}} and replace it
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-26 08:03
Message:
I don't agree with this feature. {{Other uses}} and other templates which
have the same function will be affected incorrectly.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3574557&group_…