hi,
I would like to know if it's possible to distinguish whole article deletion and version deletion (oversight) in logpages() method.
Then I don't understand why loadDeletedRevisions() method doesn't return oversight versions (I have the sysop authorization). Which method can be used for that ?
thanks for help
If I type "replace.py -help" in the DOS command line of Windows, I can *just
* scroll up to the top of the text after enlarging the window. But if I add
one more line to the help, I can't scroll up any more. Is any paging
facility included?
(I want to improve help together with implementing save.)
--
Bináris
Hello all!
Just wanted to inform you all about the key 'commenthidden' which just
crossed my way. I was till now not aware of this one! And as it seams
e.g. userlib too.
A bug report was issued together with a patch proposal:
https://sourceforge.net/tracker/?func=detail&aid=3092329&group_id=93107&ati…
Would be kind if someone with repo write access could handle this... ;)
Thanks a lot and
Greetings
DrTrigon
Schönen guten Abend!
I have a nice script that should complete a certain kind of blocking which
is usual: blocks the user, puts a template on the user page, redirects the
talk page to the user page and protects both pages.
This script ran previously without an error, but yesterday it failed, tough
I was so happy to use it instead of doing manually the whole process. The
message is:
C:\Program Files\Pywikipedia>p baz.py
Traceback (most recent call last):
File "baz.py", line 190, in <module>
main()
File "baz.py", line 184, in main
bot.run()
File "baz.py", line 82, in run
if user.block(expiry='infinite', reason=blockmessage):
* File "C:\Program Files\Pywikipedia\userlib.py", line 384, in block
raise UserActionRefuse('You don\'t have permission to block')
userlib.UserActionRefuse: You don't have permission to block
*
I have the almost latest pywiki, but the bot was tested with an end-July
version (8362). Since then two things have changed:
*I updated pywiki to 8656 this weekend.
*I installed Python 3.1.2 as default, and I run my pywiki scripts with p
something.py, as described in thread "Two Pythons on one Windows". I
suppose, once I started a script under Python, the imported modules don't
need to specify the path of Python to use.
User-config.py is the same except that I added new lines for a Wikia-wiki.
Which of these could cause my problem?
--
Bináris
Hello all!
I think this patch is needed, also to adapt watchlist.py
to the new style, since all 'wikipedia' should become
replaced by 'pywikibot'. May be someone with write svn
access can commit this?
(please look at the attached file)
In the same process I wrote a completely new module
'botlist.py' which is an analogue to 'watchlist.py' not
completely finished, but works and caches all registred
bot from a site once a day. This gives a speed-up for
my bot. May be this can also be committed?
(please look at [1])
Thanks a lot and greetings!!
DrTrigon
[1]
https://fisheye.toolserver.org/browse/drtrigon/pywikipedia/dtbext/dtbext_bo…
For some reason, I should install Python 3.1 on my Windows XP, and I want to
keep 2.5 for pywikibot. Now, I am looking for some easy and comfortable way
to separate them. I mean, if I type "something.py" at the command prompt in
my Pywikipedia directory, then the script should run under 2.5, and if I
type this in another directory, then it should run under 3.1. Is it
possible?
--
Bináris
There is a generator for logfiles but this is different for each type of log. There is no generator to get all pages of more than one log simultaneous. See pagegenerators for documentation. You may try some TS-scripts for your need like
http://toolserver.org/~pathoschild/stewardry/?wiki=hu.wikipediahttp://toolserver.org/~misza13/cgi-bin/inactive.py?wiki=huwiki_p&weeks=26http://toolserver.org/~vvv/adminstats.php?wiki=huwiki_p
Greetings
xqt
----- Original Nachricht ----
Von: Bináris <wikiposta(a)gmail.com>
An: Pywikipedia discussion list <pywikipedia-l(a)lists.wikimedia.org>
Datum: 17.10.2010 09:04
Betreff: [Pywikipedia-l] Logpages
> Is there an interface in pywikibot to query all the logpages? I would like
> to work with admin actions, 'crat actions, patroller (called now editor?)
> actions. The aim is
> - to display the last action for the members of a group (in huwiki we have
> a
> rule to deadmin those who are inactive for a certain time)
> - to display the most active members of a group for motivating them.
> I see only the interface for file upload log.
>
> --
> Bináris
>
>
> --------------------------------
>
> _______________________________________________
> Pywikipedia-l mailing list
> Pywikipedia-l(a)lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>
Hi!
It is obvious, that we will have to let Python 2.x to go one day. Now the
developers have been working on Pywikipedia 2 for a long time, and are
looking forward to release it. But what then? How long will itt work?
In the past weeks I was dealing with Python very much, and I have ideas on 2
vs. 3. I tried to guess the reason not to use Python 3. As far as I see, the
main problem is with the big quantity of u"..."s. But I they can probably be
converted py the 2to3 module. So what is the main reason to keep 2.x?
--
Bináris
Is there an interface in pywikibot to query all the logpages? I would like
to work with admin actions, 'crat actions, patroller (called now editor?)
actions. The aim is
- to display the last action for the members of a group (in huwiki we have a
rule to deadmin those who are inactive for a certain time)
- to display the most active members of a group for motivating them.
I see only the interface for file upload log.
--
Bináris
A user in huwiki regularly runs this script to archive a lot of talk pages
and community pages:
http://hu.wikipedia.org/wiki/Szerkeszt%C5%91:Cherybot/archivebot_hu.py
This is some modified version of archivebot.py.
We have a community page:
http://hu.wikipedia.org/wiki/Wikip%C3%A9dia:B%C3%BCrokrat%C3%A1k_%C3%BCzen%…
This has 5 first level headers (=title=). This is unusual.
When the bot arhives a section above the =title=, the =title= line goes to
the archive, too.
Now, I was asked to help to correct this behavior. I am not familiar with
the whole thing, I have never run archivebot.py.
The question is: was there any problem like this in another wiki, is there a
bugfix for this in the fresh version, or is it only our problem?
--
Bináris