[Jifty-commit] r5200 - in jifty/trunk: lib/Jifty/Plugin/Comment
Jifty commits
jifty-commit at lists.jifty.org
Sun Mar 9 17:22:04 EDT 2008
Author: sterling
Date: Sun Mar 9 17:22:04 2008
New Revision: 5200
Modified:
jifty/trunk/ (props changed)
jifty/trunk/Makefile.PL
jifty/trunk/lib/Jifty/Plugin/Comment/Dispatcher.pm
jifty/trunk/lib/Jifty/Plugin/Comment/View.pm
Log:
r15579 at dynpc145: andrew | 2008-03-09 16:21:27 -0500
Fix dependency test failures from the comment plugin.
Modified: jifty/trunk/Makefile.PL
==============================================================================
--- jifty/trunk/Makefile.PL (original)
+++ jifty/trunk/Makefile.PL Sun Mar 9 17:22:04 2008
@@ -192,6 +192,13 @@
recommends('Template::Declare' => '0.28'),
recommends('Data::Dump::Streamer'),
],
+ 'Comment Plugin' => [
+ -default => 0,
+ requires('HTML::Scrubber'),
+ requires('MIME::Base64::URLSafe'),
+ recommends('Net::Akismet'),
+ requires('Regexp::Common'),
+ ],
);
Modified: jifty/trunk/lib/Jifty/Plugin/Comment/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Comment/Dispatcher.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/Comment/Dispatcher.pm Sun Mar 9 17:22:04 2008
@@ -4,9 +4,6 @@
package Jifty::Plugin::Comment::Dispatcher;
use Jifty::Dispatcher -base;
-use DateTime::Format::Mail;
-use DateTime::Format::W3CDTF;
-use Jifty::DateTime;
use Scalar::Util qw/ blessed looks_like_number /;
sub setup_parent_object() {
@@ -43,12 +40,12 @@
}
-on 'comment/list' => run {
+on '__comment/list' => run {
setup_parent_object();
- show '/comment/list';
+ show '/__comment/list';
};
-on 'comment/add' => run {
+on '__comment/add' => run {
setup_parent_object();
my $parent = get 'parent';
@@ -65,10 +62,10 @@
unless $action->argument_value('title');
set action => $action;
- show '/comment/add';
+ show '/__comment/add';
};
-on 'comment/display' => run {
+on '__comment/display' => run {
my $id = get 'id';
my $comment = Jifty->app_class('Model', 'Comment')->new;
Modified: jifty/trunk/lib/Jifty/Plugin/Comment/View.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Comment/View.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/Comment/View.pm Sun Mar 9 17:22:04 2008
@@ -13,7 +13,7 @@
return $plugin->scrubber->scrub($text);
}
-template 'comment/view' => page {
+template '__comment/view' => page {
my $comment = get 'comment';
{ title is _( $comment->title ); }
@@ -23,7 +23,7 @@
render_region
name => 'comment-'.$comment->id,
- path => '/comment/display',
+ path => '/__comment/display',
defaults => {
id => $comment->id,
top => 1,
@@ -34,7 +34,7 @@
show '/advertisement';
};
-template 'comment/display' => sub {
+template '__comment/display' => sub {
my $comment = get 'comment';
my $top = get 'top';
@@ -115,7 +115,7 @@
};
};
-template 'comment/add' => sub {
+template '__comment/add' => sub {
my $collapsed = get 'collapsed';
my $region = get 'region';
@@ -208,7 +208,7 @@
},
{
element => $region->parent->get_element('div.list'),
- append => '/comment/display',
+ append => '/__comment/display',
args => {
id => { result => $action, name => 'id' },
top => 0,
@@ -223,7 +223,7 @@
}
};
-template 'comment/list' => sub {
+template '__comment/list' => sub {
my $parent = get 'parent';
my $title = get 'initial_title';
my $comments = $parent->comments;
@@ -242,7 +242,7 @@
while (my $comment = $comments->next) {
render_region
name => 'comment-'.$comment->id,
- path => '/comment/display',
+ path => '/__comment/display',
defaults => {
id => $comment->id,
top => 0,
@@ -263,7 +263,7 @@
unless (get 'no_add') {
render_region
name => 'comment-add-'.$parent->id,
- path => '/comment/add',
+ path => '/__comment/add',
defaults => {
parent_class => ref $parent,
parent_id => $parent->id,
More information about the Jifty-commit
mailing list