Skip Menu |

This queue is for tickets about the MediaWiki-API CPAN distribution.

Report information
The Basics
Id: 46287
Status: rejected
Priority: 0/
Queue: MediaWiki-API

People
Owner: Nobody in particular
Requestors: voskampm at telfort dot nl
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Allow plugings
Hi, Would please consider allowing plugins for MediaWiki::API? That would make it possible for people to develop custom sub routines without changing your code. All you have to do is add the code below to API.pm use Module::Pluggable search_path => [ qw(MediaWiki::API::Plugin) ], 'require' => 1; foreach my $plugin (__PACKAGE__->plugins) { print "Found plugin $plugin\n"; $plugin->import(); } regards Michiel
On Thu May 21 14:26:23 2009, MichielV65 wrote: Show quoted text
> Would please consider allowing plugins for MediaWiki::API? That would > make it possible for people to develop custom sub routines without > changing your code. All you have to do is add the code below to API.pm
Please can you give me an example of how this would be used ?
On Thu May 21 14:26:23 2009, MichielV65 wrote: Show quoted text
> Hi, > > Would please consider allowing plugins for MediaWiki::API? That would > make it possible for people to develop custom sub routines without > changing your code. All you have to do is add the code below to API.pm > > use Module::Pluggable search_path => [ qw(MediaWiki::API::Plugin) ], > 'require' => 1; > > foreach my $plugin (__PACKAGE__->plugins) { > print "Found plugin $plugin\n"; > $plugin->import(); > } > > regards > > Michiel
Perhaps you want to use MediaWiki::Bot, which provides a higher-level interface in addition to the exact plugin facility you mention.