Okay... further investigation of viewing the page source is that the token is the same as the page itself, just for some reason the token it is getting is either stale or just damn weird...
When I check the source page of (the typical edit page): http://en.wikipedia.org/w/index.php?title=Non-existing_page&action=edit
The token is the same as (edit page I want to delete): http://en.wikipedia.org/w/index.php?title=User:AllyUnion/test&action=edi...
And as well as (delete page of what I want to delete): http://en.wikipedia.org/w/index.php?title=User:AllyUnion/test&action=del...
Meaning that the exact bug is the return token from the getToken() function. More investigation is needed.
I found the exact problem. It was rather a simple error.
I have posted the new fix to sourceforge, ignore my previous hack. The simple fix is actually to move line 922 to 927.
In otherwords, you must set the token variable after you call: self.site().forceLogin(sysop = True)
Since, the token you'd be getting before that would be as an anonymous editor.
On Sat, Oct 08, 2005 at 12:47:55AM -0700, Jason Y. Lee wrote:
Okay... further investigation of viewing the page source is that the token is the same as the page itself, just for some reason the token it is getting is either stale or just damn weird...
When I check the source page of (the typical edit page): http://en.wikipedia.org/w/index.php?title=Non-existing_page&action=edit
The token is the same as (edit page I want to delete): http://en.wikipedia.org/w/index.php?title=User:AllyUnion/test&action=edi...
And as well as (delete page of what I want to delete): http://en.wikipedia.org/w/index.php?title=User:AllyUnion/test&action=del...
Meaning that the exact bug is the return token from the getToken() function. More investigation is needed.
-- Jason Y. Lee AKA AllyUnion _______________________________________________ Wikibots-l mailing list Wikibots-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikibots-l
wikibots-l@lists.wikimedia.org