Re: [Pywikipedia-l] Failed builds

2014-11-02 Thread Sorawee Porncharoenwase
removed from the list of expected > failures. > > Maybe there is a switch to count those not as failures. > On 2 Nov 2014 19:39, "Sorawee Porncharoenwase" > wrote: > >> Builds for Python 2.6 were failed for last 20 commits. What causes t

[Pywikipedia-l] Failed builds

2014-11-02 Thread Sorawee Porncharoenwase
Builds for Python 2.6 were failed for last 20 commits. What causes the problem? -- Sorawee Porncharoenwase ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] Rework on Page.text()

2014-09-06 Thread Sorawee Porncharoenwase
On Fri, Sep 5, 2014 at 5:00 AM, John Mark Vandenberg wrote: > On Wed, Sep 3, 2014 at 2:29 AM, Sorawee Porncharoenwase > wrote: > > I propose this change: > > > > - set `page.text` to `None` to discard changes > > Doesn't the page.text setter already do

Re: [Pywikipedia-l] Rework on Page.text()

2014-09-02 Thread Sorawee Porncharoenwase
ot;" return self._text On Tue, Sep 2, 2014 at 12:38 PM, John wrote: > Not a good idea, how do you save a blank page? > > > On Tuesday, September 2, 2014, Sorawee Porncharoenwase < > nullzero.f...@gmail.com> wrote: > >> I propose this change: >> &g

[Pywikipedia-l] Rework on Page.text()

2014-09-02 Thread Sorawee Porncharoenwase
mp; appendtext="", instead. The advantage is that there is no need to preload text. Sorawee Porncharoenwase ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

[Pywikipedia-l] API query

2014-07-31 Thread Sorawee Porncharoenwase
Why do we prefer "generator=" to normal query? The disadvantage of generator is that API might ignore some parameters. For example, we can't do generator=categories&gclprop=sortkey, while we can do prop=categories&clprop=sortkey. --

Re: [Pywikipedia-l] Retrieve content of multiple pages at once

2014-07-25 Thread Sorawee Porncharoenwase
Thank you :) This is what I am looking for! On Fri, Jul 25, 2014 at 11:51 PM, Merlijn van Deen wrote: > wikipedia.getAll was an internal function; I think it has now been > superseded by site.preloadpages? > > > On 25 July 2014 00:07, Sorawee Porncharoenwase > wrote: >

[Pywikipedia-l] Retrieve content of multiple pages at once

2014-07-24 Thread Sorawee Porncharoenwase
er (and therefore we can't use existing functions). Should we port this function to core, then? -- Sorawee Porncharoenwase ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] cap_answerwikipedia?

2014-07-02 Thread Sorawee Porncharoenwase
l mailing list > Pywikipedia-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l > > -- Sorawee Porncharoenwase ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

[Pywikipedia-l] Several questions (mainly about guideline)

2014-06-17 Thread Sorawee Porncharoenwase
tall=False, limit=None, ignorepdf=False, summary=None): def __init__(self, generator, replacements, exceptions={}, acceptall=False, allowoverlap=False, recursive=False, addedCat=None, sleep=None, summary='', site=None): Sorawee Po

Re: [Pywikipedia-l] Propose to create another function to login

2014-01-23 Thread Sorawee Porncharoenwase
> See site.loggedInAs() > > On Thu, Jan 23, 2014 at 8:09 PM, Sorawee Porncharoenwase < > nullzero.f...@gmail.com> wrote: > >> I think that we should have a function which tries to login and return >> the status whether that logging in is successful. What we currently do (for >&

[Pywikipedia-l] Propose to create another function to login

2014-01-23 Thread Sorawee Porncharoenwase
ail/pywikipedia-bugs/2014-January/007200.html; I think we need site.loginABC() there instead of site.logged_in()) -- Sorawee Porncharoenwase ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] replacing based on two regexes not near each other

2013-05-03 Thread Sorawee Porncharoenwase
t; > So I guess it's either not matching or not replacing. > > > > What am I doing wrong? > > > > And what can I do instead? > > I've taken the advice I've gotten on-list, but the script still > doesn't work. I'd appreciate any further ideas. > > Thanks, > > Michael Hamm > > ___ > Pywikipedia-l mailing list > Pywikipedia-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l > -- Sorawee Porncharoenwase ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] replacing based on two regexes not near each other

2013-05-02 Thread Sorawee Porncharoenwase
t use it without > understanding why), and space* in case there are spaces between == marks. > > -- > Bináris > ___ > Pywikipedia-l mailing list > Pywikipedia-l@lists.wikimedia.org > https://lis

Re: [Pywikipedia-l] [rewrite] Using pywikibot.Timestamp instead of raw MediaWiki ones

2013-04-29 Thread Sorawee Porncharoenwase
change from trunk. > > I doubt these two are the only methods that needed changing, so I will try > and convert everything else over soon. > -- Legoktm > > > ___ > Pywikipedia-l mailing list > Pywikipedia-l@lists.wikimedia.org >

Re: [Pywikipedia-l] Text is unchanged

2013-04-13 Thread Sorawee Porncharoenwase
รย้าย&diff=4655667&oldid=4655619 * th.wikipedia.org/w/index.php?title= ผู้ใช้:Nullzerobot/บริการย้ายหมวดหมู่/หมวดหมู่ที่รอการย้าย&diff=4655702&oldid=4655700 On Sun, Apr 14, 2013 at 4:02 AM, Merlijn van Deen wrote: > Hi Sorawee, > > On 18 February 2013 17:16, Sorawee Porn

[Pywikipedia-l] Text is unchanged

2013-02-18 Thread Sorawee Porncharoenwase
mestamp': u'...', u'contentmodel': u'wikitext', u'result': u'Success', u'oldrevid': ..., u'newrevid': ...}) However, actually the text isn't changed! History page shows me that the text is added 1 byte (or sometimes o byte

Re: [Pywikipedia-l] How to revert multiple articles?

2012-12-14 Thread Sorawee Porncharoenwase
The easiest way is to modify callback function in revertbot.py so that the bot will revert only your wrong editions. You have to make sure that revert function can analyze good/bad editions correctly. -- nullzer0 On Fri, Dec 14, 2012 at 8:44 PM, Jan Dudík wrote: > I was changing about 150 arti