add plugin safe/rebuild info (part 2 of 3)
authorJoey Hess <joey@kodama.kitenet.net>
Sun, 3 Aug 2008 21:20:21 +0000 (17:20 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Sun, 3 Aug 2008 21:20:21 +0000 (17:20 -0400)
(brain.. melting..)

21 files changed:
IkiWiki/Plugin/opendiscussion.pm
IkiWiki/Plugin/openid.pm
IkiWiki/Plugin/orphans.pm
IkiWiki/Plugin/otl.pm
IkiWiki/Plugin/pagecount.pm
IkiWiki/Plugin/pagestats.pm
IkiWiki/Plugin/pagetemplate.pm
IkiWiki/Plugin/parentlinks.pm
IkiWiki/Plugin/passwordauth.pm
IkiWiki/Plugin/pingee.pm
IkiWiki/Plugin/pinger.pm
IkiWiki/Plugin/poll.pm
IkiWiki/Plugin/polygen.pm
IkiWiki/Plugin/postsparkline.pm
IkiWiki/Plugin/prettydate.pm
IkiWiki/Plugin/rawhtml.pm
IkiWiki/Plugin/recentchanges.pm
IkiWiki/Plugin/recentchangesdiff.pm
IkiWiki/Plugin/remove.pm
IkiWiki/Plugin/rename.pm
IkiWiki/Plugin/search.pm

index c835f01061ea8a5364d369b768ebbada2fb6acfd..96a74aee832d31af0fd653a851f95b2044a56ded 100644 (file)
@@ -6,9 +6,18 @@ use strict;
 use IkiWiki 2.00;
 
 sub import { #{{{
+       hook(type => "getsetup", id => "opendiscussion", call => \&getsetup);
        hook(type => "canedit", id => "opendiscussion", call => \&canedit);
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => 0,
+               },
+} #}}}
+
 sub canedit ($$) { #{{{
        my $page=shift;
        my $cgi=shift;
index de7f7280e91ce304e91dac1fa2165f5c4326be32..1818f5283da2497f18c13601d6269792bfeb8cc3 100644 (file)
@@ -23,6 +23,10 @@ sub getopt () { #{{{
 
 sub getsetup () { #{{{
        return
+               plugin => {
+                       safe => 1,
+                       rebuild => 0,
+               },
                openidsignup => {
                        type => "string",
                        example => "http://myopenid.com/",
index 0f96b9397445ea6f15b4b82cd2bded46143f6aaf..b910758e0353e9d5d2762bbce41d009490fed120 100644 (file)
@@ -7,9 +7,18 @@ use strict;
 use IkiWiki 2.00;
 
 sub import { #{{{
+       hook(type => "getsetup", id => "orphans", call => \&getsetup);
        hook(type => "preprocess", id => "orphans", call => \&preprocess);
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
+} #}}}
+
 sub preprocess (@) { #{{{
        my %params=@_;
        $params{pages}="*" unless defined $params{pages};
index 7d382b38b62d70dc24029c19a5f62d2379d7b062..ef76d621549d44dd575fda54dfa1760bb5c4febd 100644 (file)
@@ -8,11 +8,20 @@ use IkiWiki 2.00;
 use open qw{:utf8 :std};
 
 sub import { #{{{
+       hook(type => "getsetup", id => "otl", call => \&getsetup);
        hook(type => "filter", id => "otl", call => \&filter);
        hook(type => "htmlize", id => "otl", call => \&htmlize);
 
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => 1, # format plugin
+               },
+} #}}}
+
 sub filter (@) { #{{{
        my %params=@_;
         
index 2c20ca195dcd1f55ff4cdbe9ad70fed642c236af..e059fa61850c531083a7cfb743597ea2691f3be2 100644 (file)
@@ -6,9 +6,18 @@ use strict;
 use IkiWiki 2.00;
 
 sub import { #{{{
+       hook(type => "getsetup", id => "pagecount", call => \&getsetup);
        hook(type => "preprocess", id => "pagecount", call => \&preprocess);
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
+} #}}}
+
 sub preprocess (@) { #{{{
        my %params=@_;
        $params{pages}="*" unless defined $params{pages};
index 5479e89864f792341505bea00b533b56b3bcc39f..de4b7d0686f5867a3477873b88a9d6d7074d799f 100644 (file)
@@ -18,9 +18,18 @@ use IkiWiki 2.00;
 our @classes = ('smallestPC', 'smallPC', 'normalPC', 'bigPC', 'biggestPC' );
 
 sub import { #{{{
+       hook(type => "getsetup", id => "pagestats", call => \&getsetup);
        hook(type => "preprocess", id => "pagestats", call => \&preprocess);
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
+} #}}}
+
 sub preprocess (@) { #{{{
        my %params=@_;
        $params{pages}="*" unless defined $params{pages};
index 205f5a9d77b13ce34b6b30d7d528f7658315df09..99a66ee96964f9750ab3d2d41a6ec87755cd31a0 100644 (file)
@@ -8,10 +8,19 @@ use IkiWiki 2.00;
 my %templates;
 
 sub import { #{{{
+       hook(type => "getsetup", id => "pagetemplate", call => \&getsetup);
        hook(type => "preprocess", id => "pagetemplate", call => \&preprocess);
        hook(type => "templatefile", id => "pagetemplate", call => \&templatefile);
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
+} #}}}
+
 sub preprocess (@) { #{{{
        my %params=@_;
 
index 890a349b597ed2b7193ece1738436c595bd6c05b..4525145d6968d9a55e5dd6c2cc2bef360f188ae9 100644 (file)
@@ -7,9 +7,18 @@ use strict;
 use IkiWiki 2.00;
 
 sub import { #{{{
+       hook(type => "parentlinks", id => "parentlinks", call => \&parentlinks);
        hook(type => "pagetemplate", id => "parentlinks", call => \&pagetemplate);
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => 1,
+               },
+} #}}}
+
 sub parentlinks ($) { #{{{
        my $page=shift;
 
index 82afeef989e517171a416749d27194a1e435b672..e0c0a3b0e650bd001b835c1c0cc92680af42440a 100644 (file)
@@ -15,6 +15,10 @@ sub import { #{{{
 
 sub getsetup () { #{{{
        return
+               plugin => {
+                       safe => 1,
+                       rebuild => 0,
+               },
                account_creation_password => {
                        type => "string",
                        example => "s3cr1t",
index ee799a57a119b9e079cfc13f81b92b48317a5dc0..c2f21b0cfaf93cabfb562009b5db53260b8dbadf 100644 (file)
@@ -6,9 +6,18 @@ use strict;
 use IkiWiki 2.00;
 
 sub import { #{{{
-       hook(type => "cgi", id => "aggregate", call => \&cgi);
+       hook(type => "getsetup", id => "pingee", call => \&getsetup);
+       hook(type => "cgi", id => "pingee", call => \&cgi);
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
+} #}}}
+
 sub cgi ($) { #{{{
        my $cgi=shift;
 
index e72833b8f45353c2fc79c4008412adf813a50e20..043b074a7986d8e23ac3d8f0ede649f9e289c6c9 100644 (file)
@@ -18,6 +18,10 @@ sub import { #{{{
 
 sub getsetup () { #{{{
        return
+               plugin => {
+                       safe => 1,
+                       rebuild => 0,
+               },
                pinger_timeout => {
                        type => "integer",
                        example => 15,
index 32cb5c48f2ca8156c44a60ff5f1daa2852ffc759..b8d14ad3e620aedb31a70f6ad23b7a415f9d97eb 100644 (file)
@@ -7,10 +7,19 @@ use IkiWiki 2.00;
 use Encode;
 
 sub import { #{{{
+       hook(type => "getsetup", id => "poll", call => \&getsetup);
        hook(type => "preprocess", id => "poll", call => \&preprocess);
        hook(type => "sessioncgi", id => "poll", call => \&sessioncgi);
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
+} #}}}
+
 my %pagenum;
 sub preprocess (@) { #{{{
        my %params=(open => "yes", total => "yes", percent => "yes", @_);
index 70378cf1b7102cf383e6839cb6dfd4d64ddf2a02..fa564aa86d1841fd13a7e31d0db5b105e3093e3f 100644 (file)
@@ -11,9 +11,18 @@ use IkiWiki 2.00;
 use File::Find;
 
 sub import { #{{{
+       hook(type => "getsetup", id => "polygen", call => \&getsetup);
        hook(type => "preprocess", id => "polygen", call => \&preprocess);
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
+} #}}}
+
 sub preprocess (@) { #{{{
        my %params=@_;
        my $grammar = ($params{grammar} or 'polygen');
index 6fc96f8b343cbca8eeeb893c41e2569a962d915c..1f4c065c1e1f09ad6ba9d395ecd3c002a1bb0a25 100644 (file)
@@ -7,9 +7,18 @@ use IkiWiki 2.00;
 
 sub import { #{{{
        IkiWiki::loadplugin('sparkline');
+       hook(type => "getsetup", id => "postsparkline", call => \&getsetup);
        hook(type => "preprocess", id => "postsparkline", call => \&preprocess);
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
+} #}}}
+
 sub preprocess (@) { #{{{
        my %params=@_;
 
index dd1e096b40438b66e8111ac5c3c447f41f11e81d..e997be3ce65d94becd3061e9cff670454e56244d 100644 (file)
@@ -46,6 +46,10 @@ sub import { #{{{
 
 sub getsetup () { #{{{
        return
+               plugin => {
+                       safe => 1,
+                       rebuild => 1,
+               },
                prettydateformat => {
                        type => "string",
                        example => '%X, %B %o, %Y',
index 011c3a862c678d0cae73a3df3f669dec6b8d1917..74ca13f3bcac3b1041fd73a1c35ea43e1729aed8 100644 (file)
@@ -7,7 +7,16 @@ use strict;
 use IkiWiki 2.00;
 
 sub import { #{{{
+       hook(type => "getsetup", id => "rawhtml", call => \&getsetup);
        $config{wiki_file_prune_regexps} = [ grep { !m/\\\.x\?html\?\$/ } @{$config{wiki_file_prune_regexps}} ];
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => 1, # changes file types
+               },
+} #}}}
+
 1
index d534d0cd96f6a92416a507b34ff3d38c1ac1b7b0..7bc48297455933156a62c4be363f835e4d63944e 100644 (file)
@@ -16,6 +16,10 @@ sub import { #{{{
 
 sub getsetup () { #{{{
        return
+               plugin => {
+                       safe => 1,
+                       rebuild => 1,
+               },
                recentchangespage => {
                        type => "string",
                        example => "recentchanges",
index 3942f308b05a86b5d4e7f0524fd756534a492391..36acef72ebccf8978c3c4e8348074ef4bca0565c 100644 (file)
@@ -8,10 +8,20 @@ use IkiWiki 2.00;
 my $maxlines=200;
 
 sub import { #{{{
+       hook(type => "getsetup", id => "recentchangesdiff",
+               call => \&getsetup);
        hook(type => "pagetemplate", id => "recentchangesdiff",
                call => \&pagetemplate);
 } #}}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => 1,
+               },
+} #}}}
+
 sub pagetemplate (@) { #{{{
        my %params=@_;
        my $template=$params{template};
index a886956b28ce72a7b62063a6284f84623b942ab9..9666408bc77ab332866b936f03e3d6dfd5f36fb6 100644 (file)
@@ -6,12 +6,21 @@ use strict;
 use IkiWiki 2.00;
 
 sub import { #{{{
+       hook(type => "getsetup", id => "remove", call => \&getsetup);
        hook(type => "formbuilder_setup", id => "remove", call => \&formbuilder_setup);
        hook(type => "formbuilder", id => "remove", call => \&formbuilder);
        hook(type => "sessioncgi", id => "remove", call => \&sessioncgi);
 
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => 0,
+               },
+} #}}}
+
 sub check_canremove ($$$$) { #{{{
        my $page=shift;
        my $q=shift;
index 527ee88bc44908dc5e84a4604506f1f25e50cb31..5dcd4e936394fdb31d132addd71f7b8fdf77dc50 100644 (file)
@@ -6,12 +6,21 @@ use strict;
 use IkiWiki 2.00;
 
 sub import { #{{{
+       hook(type => "getsetup", id => "rename", call => \&getsetup);
        hook(type => "formbuilder_setup", id => "rename", call => \&formbuilder_setup);
        hook(type => "formbuilder", id => "rename", call => \&formbuilder);
        hook(type => "sessioncgi", id => "rename", call => \&sessioncgi);
 
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => 0,
+               },
+} #}}}
+
 sub check_canrename ($$$$$$$) { #{{{
        my $src=shift;
        my $srcfile=shift;
index cb12d9500d95a31545426fd3c984e3297286d457..aeef54ab3ecdb3daed8231dfe0ac40d17a431b0c 100644 (file)
@@ -17,6 +17,10 @@ sub import { #{{{
 
 sub getsetup () { #{{{
        return
+               plugin => {
+                       safe => 1,
+                       rebuild => 1,
+               },
                omega_cgi => {
                        type => "string",
                        example => "/usr/lib/cgi-bin/omega/omega",