Hi Bináris,
Please do a reply-to-all, or your replies won't end up in the discussion list.
touch.py has a -redir option that will let you touch redirects. Could you try that?
Merlijn
2011/2/27 Bináris wikiposta@gmail.com
2011/2/27 Merlijn van Deen valhallasw@arctus.nl
I just realized - .get() will retrieve the page using the API by default.
This probably does not trigger the 'read' status. Could you try using touch.py or temporarily setting the api config setting to 'off'?
First, I switched use_api = True to explicite False, ran the above script again, switched on again, and the message still comes. Then I gave the command touch.py -page:szerkesztővita:BinBott The answer is: Page [[Szerkesztővita:BinBott]] is a redirect; skipping.
Merlijn
On 26 February 2011 17:56, Bináris wikiposta@gmail.com wrote:
Yes, I logged in at the beginning when I had to set my e-mail address. Today I loaded an HTML page by bot several times, and the "orange bar" could be seen in the source.
2011/2/26 Merlijn van Deen valhallasw@arctus.nl
Have you tried logging in to wikipedia:hu by hand? Do you get the orange
'You have new messages' bar?
-- Bináris
-- Bináris
2011/2/27 Merlijn van Deen valhallasw@arctus.nl
Hi Bináris,
Please do a reply-to-all, or your replies won't end up in the discussion list.
Sorry, I have not noticed, sometimes my replies go to the list, and sometimes they don't.
touch.py has a -redir option that will let you touch redirects. Could you try that?
So I tried touch.py -redir, and then I used my new script that downloads a wikipage in HTML source, and read my bot's talkpage directly with that with use_api=True and False as well, and the messages still come.
Perhaps I am Harry Potter and I am getting those messages until I enter Hogwarts.
Now I give it up. Perhaps I will look for this message in the pywiki code and murder it with a big knife.
On 27 February 2011 22:53, Bináris wikiposta@gmail.com wrote:
Now I give it up. Perhaps I will look for this message in the pywiki code and murder it with a big knife.
Place the big knife in wikipedia.py, somewhere around line 4820, and change self._messages = [None, None] to self._messages = [True, True]. Ugly, but it should work -this is the part where the bot saves you have new messages, so it doesn't display the message twice. It's better than fixing all seperate NOTEs in wikipedia.py, anyway. Stupid code duplication (alexsh, I'm looking at youhttp://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/wikipedia.py?r1=7111&r2=7112& ).
Merlijn