Patches item #3502676, was opened at 2012-03-12 07:40
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3502676&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: Lars Aronsson (aronsson)
Assigned to: Nobody/Anonymous (nobody)
Summary: New option "-no" to djvutext.py
Initial Comment:
djvutext.py adds OCR text to books in Wikisource. Some books already have text for some pages, but not for others. The "-no" flag added by this patch only adds new pages, but doesn't alter the text for any existing pages. (At any such question, it answers "no" automatically.)
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-21 10:44
Message:
For reference: I had a discussion on this patch with Lars on IRC and
mentioned some improvements (naming/parameter). He's working on a new patch
version.
Again, thanks for the effort, Lars! :-)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3502676&group_…
Patches item #3477090, was opened at 2012-01-21 12:06
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3477090&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: Michael Thibault (phoenixca)
Assigned to: Nobody/Anonymous (nobody)
Summary: Minor improvements on add_text.py
Initial Comment:
Added an open in browser option to confirmation dialogue (similar to replace.py ) and added a new -only arg (essentially the opposite of -except). If a page text doesn't match the -only regex given, it skips.
Example use:
I added this while trying to clean-up a Wikia wiki. Wikia's RTE leaves [[File:Placeholder on pages often. With this addition, the bot can use -only:"[[File:Placeholder" -except:"{{image}}" -text:"{{image}}" -up , to add a meta tag to pages that have image placeholders, but not ones that already have the {{image}} tag.
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-21 10:40
Message:
@nickanc: yes, this would be a good idea. There are several parameters in
replace.py that really should be moved to pagegenerators as a 'filter'
generator (-requiretitle with/without regex, excepttext with/without
regex,). However, given this, I don't think there is a huge harm in adding
another one. Xqt, what do you think?
I have applied the webbrowser part in r10034 [
http://toolserver.org/~pywikipedia/r10034 ], as I think that part is good
in any case (and the patch should be applied in seperate commits anyway)
----------------------------------------------------------------------
Comment By: nickanc (nickanc)
Date: 2012-01-26 10:48
Message:
I know this is not a real pagegenerator, but why don't make regexOnly a
global parameter, which can be used for every other script? It may be
useful for many other scripts (like replace.py, but also templatecount.py
or category.py sometimes).
----------------------------------------------------------------------
Comment By: Michael Thibault (phoenixca)
Date: 2012-01-21 15:23
Message:
Ah, all good points. I'll fix those up and upload a new diff here. (Forgive
the newbie to programming. I'm learning out of necessity for wiki
administration.)
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-01-21 13:34
Message:
Looks very nice. There are a few (minor) issues that should be fixed
though:
* the regexOnly should be added at *last* parameter in add_text, so as not
to break API compatibility
* Match was %s""" % result) doesn't make sense if there is no match
(result will always be [])
and I cnanot see this (I'm only looking at the diff, lazy me) - what is the
goal of the 'continue' on line 61 of the diff? If I look at the return just
above, there is no for loop going on, which makes the continue do
nothing... but I may be wrong.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3477090&group_…
Patches item #3471984, was opened at 2012-01-10 12:26
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3471984&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: Translations
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Welcome.py in some languages
Initial Comment:
I have attached svn.diff for welcoming in vec.wiki and roa-tara.wiki.
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-21 10:30
Message:
Committed in r10033. Please check if your patch is correct before
submitting, please- there was a missing comma.
----------------------------------------------------------------------
Comment By: nickanc (nickanc)
Date: 2012-01-10 12:27
Message:
i forgot to login, that's a work of mine.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3471984&group_…
Patches item #3468426, was opened at 2012-01-02 08:04
Message generated for change (Settings changed) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3468426&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: Translations
Group: None
>Status: Closed
Resolution: Accepted
Priority: 5
Private: No
Submitted By: nickanc (nickanc)
Assigned to: WikiWichtel (wikiwichtel)
Summary: welcome.py in venetian
Initial Comment:
welcome.py in venetian :)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-01-08 22:12
Message:
done in r9823. thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3468426&group_…
Patches item #3465147, was opened at 2011-12-24 22:36
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3465147&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: Accepted
Priority: 5
Private: No
Submitted By: GanZ (ganz-ru)
Assigned to: Nobody/Anonymous (nobody)
Summary: featured.py: category in ru.wiki
Initial Comment:
Diff contains more proper category of good articles in russian wikipedia. The category "Википедия:Хорошие статьи" contains only 271 articles, but today there are 1238 good articles in Ru.Wiki.
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-21 10:26
Message:
Committed in r10032 [ http://toolserver.org/~pywikipedia/r10032 ]. Thanks!
----------------------------------------------------------------------
Comment By: GanZ (ganz-ru)
Date: 2012-01-13 17:19
Message:
Is it necessary to make some comments?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3465147&group_…
Support Requests item #3436146, was opened at 2011-11-10 08:00
Message generated for change (Settings changed) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3436146&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
Priority: 5
Private: No
Submitted By: solab (solab)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compatibilit pywikipedia and mw 1.18.0beta1
Initial Comment:
I upgraded MW to 1.18.0.beta1.
the get.py is now broken..
Question
is pywikipedia compatible with mw 1.18.0beta1?
Regards
G
----------------------------------------------------------------------
Comment By: solab (solab)
Date: 2011-11-11 02:54
Message:
Double check non Problem with mediawiki 1.17
python get.py -family:solab Xx -v
Config.py
- base_dir: /opt/tools/mybot/pywikipedia
- done.
Pywikipediabot [http] trunk/pywikipedia (r9753, 2011/11/11, 10:12:19)
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1]
######
Sleeping for 1.0 seconds, 2011-11-11 11:53:12
==== API action:query ====
inprop: protection|subjectid
rvprop: content|ids|flags|timestamp|user|comment|size
prop: revisions|info
titles: Xx
rvlimit: 1
----------------
Requesting API query from solab:en
getting huge siprop magicwords...
==== API action:query ====
meta: siteinfo
siprop: magicwords
----------------
Requesting API query from solab:en
Test
----------------------------------------------------------------------
Comment By: solab (solab)
Date: 2011-11-11 02:49
Message:
python get.py -family:solab Xx -v
Config.py
- base_dir: /opt/tools/mybot/pywikipedia
- done.
Pywikipediabot [http] trunk/pywikipedia (r9753, 2011/11/11, 10:12:19)
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1]
######
Sleeping for 1.0 seconds, 2011-11-11 11:45:28
==== API action:query ====
inprop: protection|subjectid
rvprop: content|ids|flags|timestamp|user|comment|size
prop: revisions|info
titles: Xx
rvlimit: 1
----------------
Requesting API query from solab:en
{u'lastrevid': 8645, u'pageid': 1831, u'title': u'Xx', u'counter': 0,
u'length': 4, u'protection': [], u'touched': u'2011-11-10T17:58:41Z',
u'new': u'', u'ns': 0}
Traceback (most recent call last):
File "get.py", line 33, in <module>
main()
File "get.py", line 29, in main
pywikibot.output(page.get(), toStdout = True)
File "/opt/tools/mybot/pywikipedia/wikipedia.py", line 694, in get
expandtemplates = expandtemplates)
File "/opt/tools/mybot/pywikipedia/wikipedia.py", line 788, in
_getEditPage
raise ServerError('ServerError: No textarea found in %s' % self)
pywikibot.exceptions.ServerError: ServerError: No textarea found in
[[en:Xx]]
&
File uploaded
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-11-11 02:41
Message:
You must checkout the new pywikibot release from svn first to use the
-verbose option. Could you also upload the new family file.
----------------------------------------------------------------------
Comment By: solab (solab)
Date: 2011-11-11 02:33
Message:
==STEP1==
python generate_family_file.py http://localhost/solab solab
Generating family file from http://localhost/solab
==================================
api url: http://localhost/solab/api.php
MediaWiki version: 1.18.0beta1
==================================
Determining other languages...
Loading wikis...
* en... in cache
Retrieving namespaces... en
Writing families/solab_family.py...
families/solab_family.py already exists. Overwrite? (y/n)y
==STEP 2==
python get.py -family:solab Xx -v
Config.py
- base_dir: /opt/tools/mybot/pywikipedia
- done.
Pywikipediabot [http] trunk/pywikipedia (r9739, 2011/11/10, 07:39:48)
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1]
Sleeping for 1.0 seconds, 2011-11-11 11:30:20
==== API action:query ====
inprop: protection|subjectid
rvprop: content|ids|flags|timestamp|user|comment|size
prop: revisions|info
titles: Xx
rvlimit: 1
----------------
Requesting API query from solab:en
Traceback (most recent call last):
File "get.py", line 33, in <module>
main()
File "get.py", line 29, in main
pywikibot.output(page.get(), toStdout = True)
File "/opt/tools/mybot/pywikipedia/wikipedia.py", line 694, in get
expandtemplates = expandtemplates)
File "/opt/tools/mybot/pywikipedia/wikipedia.py", line 786, in
_getEditPage
raise ServerError('ServerError: No textarea found in %s' % self)
pywikibot.exceptions.ServerError: ServerError: No textarea found in
[[en:Xx]]
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-11-11 02:17
Message:
In addition to valhallasws suggestion please run your command line again
with -verbose option:
python get.py -family:solab Xx -v
I've added a debugging code to the wikipedia library which gives additional
information about the page call and the servers response. Please post it.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-11-11 02:09
Message:
Looks like it should work. Two things that might work:
a) generate a family file using generate_family_file.py -- maybe there is
something in the file I overlooked. To do this, run:
generate_family_file.py <url of a wiki page> solab
b) change 1.18.0beta1 to 1.18 or 1.18.0 (if this fixes it, there is a bug
in the version detection code), or to 1.17 (if that fixes it, there is some
bigger bug somewhere)
Thanks!
----------------------------------------------------------------------
Comment By: solab (solab)
Date: 2011-11-11 02:00
Message:
solab_family.py.buggy uploaded
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-11-11 01:55
Message:
as solab_family.py is not a part of the framework, we need its content.
----------------------------------------------------------------------
Comment By: solab (solab)
Date: 2011-11-11 01:33
Message:
Veriosn
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
user-config.py
mylang = 'en'
family = 'solab'
usernames['solab']['en'] = u'xxxx'
MediaWiki 1.18.0beta1
==Log==
python get.py -family:solab Xx
Traceback (most recent call last):
File "get.py", line 33, in <module>
main()
File "get.py", line 29, in main
pywikibot.output(page.get(), toStdout = True)
File "/opt/tools/mybot/pywikipedia/wikipedia.py", line 694, in get
expandtemplates = expandtemplates)
File "/opt/tools/mybot/pywikipedia/wikipedia.py", line 786, in
_getEditPage
raise ServerError('ServerError: No textarea found in %s' % self)
==Family==
solab_family.py
pywikibot.exceptions.ServerError: ServerError: No textarea found in
[[en:Xx]]
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-11-10 08:11
Message:
Please add the output from version.py, your user-config.py, your family
file and the output you get when running get.py.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3436146&group_…
Patches item #3408799, was opened at 2011-09-13 09:46
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3408799&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: Accepted
Priority: 5
Private: No
Submitted By: K.-M. Hansche (loxley)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix search api properties
Initial Comment:
Only recent versions of the search-api return properties via srprop. I'm not sure which api-level introduced them, however they aren't there at level 14.
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-21 10:23
Message:
Corrected (it was introduced in 1.16) and committed in r10031 [
http://toolserver.org/~pywikipedia/r10031 ]. Thanks!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3408799&group_…
Patches item #3404332, was opened at 2011-09-05 09:38
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3404332&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: Accepted
Priority: 5
Private: No
Submitted By: K.-M. Hansche (loxley)
Assigned to: Nobody/Anonymous (nobody)
Summary: spellcheck.py refactorisation
Initial Comment:
Refactors repetitive code into new method "def checkPage(page, checknames=True, knownonly=False):"
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-21 10:11
Message:
Committed in r10030. The spellchecker could use some more refactoring
(usage of pagegenerators.py command line flags, for instance), but this is
a good start. Thanks!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3404332&group_…
Patches item #3367839, was opened at 2011-07-15 03:11
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3367839&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: lankier (lankier)
Assigned to: Nobody/Anonymous (nobody)
Summary: Retrieve / edit the section
Initial Comment:
This patch adds new parameter 'section' to Page.get & Page.put.
(See also feature requests https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3104703&group_… )
Examples:
add a new section:
page.put('New section text', comment='New section header', section='new')
edit the top section:
text = page.get(section=0)
page.put(text+'\n\n==New section==\nNew text', section=0)
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-21 10:03
Message:
Is referring to sections by ID a good idea? Isn't it worth the extra query
to get the section ID first? (by calling action=render). We currently
'support' sections by having a Page object with title "page title#section",
and I think this is the sensible way to work with sections.
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2011-07-15 11:32
Message:
Great and important contribution, I support the fast acceptation! This
feature has long been missing from Pywiki.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3367839&group_…
Patches item #3147585, was opened at 2010-12-29 05:55
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3147585&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: 6
Private: No
Submitted By: DixonD (dixond)
Assigned to: xqt (xqt)
Summary: Working with interwikis on subpage
Initial Comment:
I think I implemented my feature request with ID: 3146291
Please, review carefully my code - to be honest I don't have really much experience with Python.
And few moments:
1) When we adding/fixing interwikis on subpage, I think we should remove interwikis in template itself if any
2) It seems that logic of determing whether this page has subpages, getting interwikis also from included subpages etc should be decoupled from interwiki.py and moved to wikipedia.py
3) Not really related but.. cosmetic_changes.py removes interwikis from subpage.
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-21 10:00
Message:
Sorry for the very... slow response. The problem is that interwiki.py is
complicated (as you have noticed), and it's a somewhat complicated patch.
To be honest: I'm not even sure how much interwiki.py does in terms of
templates, subpages... and as such I'm scared as hell to even touch the
script, considering it sort of works at the moment.
----------------------------------------------------------------------
Comment By: DixonD (dixond)
Date: 2011-03-30 02:37
Message:
Any news?
----------------------------------------------------------------------
Comment By: DixonD (dixond)
Date: 2010-12-30 04:46
Message:
Uploaded new patch with some fixes.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3147585&group_…