[cgi-wiki-dev] Evaluating Wiki Toolkit
Robert Barta
rho at devc.at
Sat Sep 1 17:26:08 BST 2007
Hi folks,
I am just looking at Wiki::Toolkit and it's plugin infrastructure. I
read in
http://search.cpan.org/dist/Wiki-Toolkit/lib/Wiki/Toolkit/Plugin.pm
that pre_retrieve does not allow declining of the read. It is marked
as TODO.
Is there a principle problem with it? or could it be added, just as
for instance in
sub write_node_post_locking {
....
foreach my $plugin (@preplugins) {
if ( $plugin->can( "pre_write" ) ) {
handle_pre_plugin_ret(
\$write_allowed,
$plugin->pre_write(
node => \$node,
content => \$content,
metadata => \$metadata_ref )
);
}
}
if($write_allowed < 1) {
# The plugins didn't want to allow this action
return -1;
}
??
\rho
More information about the CGI-Wiki-dev
mailing list