Re: [Wikitech-l] Programmatically making an empty edit?

2014-04-23 Thread Liangent
refreshLinks.php[1] can fix that. [1] https://www.mediawiki.org/wiki/Manual:RefreshLinks.php On Tue, Apr 22, 2014 at 12:36 AM, Daniel Barrett d...@vistaprint.comwrote: I'm the original poster -- here is my real-world use case where a null edit is required. My wiki has a custom parser tag,

Re: [Wikitech-l] Programmatically making an empty edit?

2014-04-23 Thread Daniel Barrett
On Tue, Apr 22, 2014 at 12:36 AM, Daniel Barrett d...@vistaprint.comwrote: We modified the code for foobar to add a feature: autocategorizing. [Now] if you visit an article Blat that previously contained foobar, you will see it is properly categorized at the bottom. However, if you visit the

Re: [Wikitech-l] Programmatically making an empty edit?

2014-04-23 Thread Brian Wolff
On Apr 23, 2014 11:52 AM, Daniel Barrett d...@vistaprint.com wrote: On Tue, Apr 22, 2014 at 12:36 AM, Daniel Barrett d...@vistaprint.com wrote: We modified the code for foobar to add a feature: autocategorizing. [Now] if you visit an article Blat that previously contained foobar, you will

Re: [Wikitech-l] Programmatically making an empty edit?

2014-04-21 Thread Daniel Barrett
I'm the original poster -- here is my real-world use case where a null edit is required. My wiki has a custom parser tag, (say) foobar. Many articles include it in their wikitext. We modified the code for foobar to add a feature: autocategorizing. It automatically categorizes any article

Re: [Wikitech-l] Programmatically making an empty edit?

2014-04-18 Thread Federico Leva (Nemo)
This was asked just few days ago on this list... https://www.mediawiki.org/wiki/Manual:Pywikibot/touch.py is regularly used to make millions null edits, don't bother inventing something else. Nemo ___ Wikitech-l mailing list

Re: [Wikitech-l] Programmatically making an empty edit?

2014-04-18 Thread Daniel Barrett
Federico Leva (Nemo) writes: https://www.mediawiki.org/wiki/Manual:Pywikibot/touch.py is regularly used to make millions null edits, don't bother inventing something else. Awesome! This worked perfectly. Thank you so much!! DanB ___ Wikitech-l mailing

Re: [Wikitech-l] Programmatically making an empty edit?

2014-04-18 Thread Liangent
On Fri, Apr 18, 2014 at 5:22 PM, Federico Leva (Nemo) nemow...@gmail.comwrote: This was asked just few days ago on this list... https://www.mediawiki.org/wiki/Manual:Pywikibot/touch.py is regularly used to make millions null edits, don't bother inventing something else. It seems touch.py

Re: [Wikitech-l] Programmatically making an empty edit?

2014-04-18 Thread MZMcBride
Liangent wrote: It seems touch.py should be updated to make use of forcelinkupdate, forcerecursivelinkupdate and generator parameters of api.php?action=purge, to reduce traffic. https://www.mediawiki.org/wiki/API:Purge As far as I can tell, touch.py should not be necessary. Purging (including

Re: [Wikitech-l] Programmatically making an empty edit?

2014-04-18 Thread Liangent
There're still cases / some bugs where *links tables can't be updated automatically. touch.py and similar techniques work as a workaround. On Sat, Apr 19, 2014 at 9:12 AM, MZMcBride z...@mzmcbride.com wrote: Liangent wrote: It seems touch.py should be updated to make use of forcelinkupdate,

Re: [Wikitech-l] Programmatically making an empty edit?

2014-04-18 Thread MZMcBride
Liangent wrote: There're still cases / some bugs where *links tables can't be updated automatically. touch.py and similar techniques work as a workaround. Workaround or... hack. :-) I agree that touch.py is useful right now. I wish it were not necessary, though. If anyone's interested in killing

[Wikitech-l] Programmatically making an empty edit?

2014-04-17 Thread Daniel Barrett
What is the proper way to make an empty edit of an existing article programmatically, in a maintenance script? I tried this: $title = Title::newFromText(My existing article name); // succeeds $wikiPage = new WikiPage($title); // succeeds

Re: [Wikitech-l] Programmatically making an empty edit?

2014-04-17 Thread Robert Cummings
On 14-04-17 11:58 AM, Daniel Barrett wrote: What is the proper way to make an empty edit of an existing article programmatically, in a maintenance script? I tried this: $title = Title::newFromText(My existing article name); // succeeds $wikiPage = new WikiPage($title); // succeeds

Re: [Wikitech-l] Programmatically making an empty edit?

2014-04-17 Thread Bartosz DziewoƄski
On Thu, 17 Apr 2014 17:58:19 +0200, Daniel Barrett d...@vistaprint.com wrote: What is the proper way to make an empty edit of an existing article programmatically, in a maintenance script? I'd look at maintenance/edit.php if I were you :) -- Matma Rex

Re: [Wikitech-l] Programmatically making an empty edit?

2014-04-17 Thread Daniel Barrett
I asked: What is the proper way to make an empty edit of an existing article programmatically, in a maintenance script? Bartosz Dziewonski replied: I'd look at maintenance/edit.php if I were you :) Thanks. I just tried the technique in edit.php and it worked great... at first. I merely