[Jifty-commit] r2927 - in jifty/branches/template-declare: . lib/Jifty/Plugin lib/Jifty/Web/Form

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Mar 8 18:25:46 EST 2007


Author: jesse
Date: Thu Mar  8 18:25:43 2007
New Revision: 2927

Modified:
   jifty/branches/template-declare/   (props changed)
   jifty/branches/template-declare/lib/Jifty/Plugin/OnlineDocs.pm
   jifty/branches/template-declare/lib/Jifty/Web/Form/Clickable.pm
   jifty/branches/template-declare/lib/Jifty/Web/Form/Field.pm
   jifty/branches/template-declare/share/plugins/Jifty/Plugin/OnlineDocs/web/templates/__jifty/online_docs/autohandler
   jifty/branches/template-declare/share/plugins/Jifty/Plugin/OnlineDocs/web/templates/__jifty/online_docs/content.html
   jifty/branches/template-declare/share/plugins/Jifty/Plugin/OnlineDocs/web/templates/__jifty/online_docs/toc.html

Log:
 r53229 at 247:  jesse | 2007-03-08 18:24:35 -0500
 * minor outstanding refactorings


Modified: jifty/branches/template-declare/lib/Jifty/Plugin/OnlineDocs.pm
==============================================================================
--- jifty/branches/template-declare/lib/Jifty/Plugin/OnlineDocs.pm	(original)
+++ jifty/branches/template-declare/lib/Jifty/Plugin/OnlineDocs.pm	Thu Mar  8 18:25:43 2007
@@ -4,6 +4,12 @@
 package Jifty::Plugin::OnlineDocs;
 use base qw/Jifty::Plugin/;
 
+require File::Basename;
+require File::Find;
+require File::Temp;
+require File::Spec;
+require Pod::Simple::HTML;
+
 # Your plugin goes here.  If takes any configuration or arguments, you
 # probably want to override L<Jifty::Plugin/init>.
 

Modified: jifty/branches/template-declare/lib/Jifty/Web/Form/Clickable.pm
==============================================================================
--- jifty/branches/template-declare/lib/Jifty/Web/Form/Clickable.pm	(original)
+++ jifty/branches/template-declare/lib/Jifty/Web/Form/Clickable.pm	Thu Mar  8 18:25:43 2007
@@ -379,7 +379,7 @@
 
     # Add a redirect, if this isn't to the right page
     if ( $self->url ne $root and not $self->returns ) {
-        require Jifty::Action::Redirect;
+        Jifty::Util->require('Jifty::Action::Redirect');
         my $redirect = Jifty::Action::Redirect->new(
             arguments => { url => $self->url } );
         $parameters{ $redirect->register_name } = ref $redirect;

Modified: jifty/branches/template-declare/lib/Jifty/Web/Form/Field.pm
==============================================================================
--- jifty/branches/template-declare/lib/Jifty/Web/Form/Field.pm	(original)
+++ jifty/branches/template-declare/lib/Jifty/Web/Form/Field.pm	Thu Mar  8 18:25:43 2007
@@ -81,7 +81,7 @@
     # a mapped argument, then do the mapping and mark the field as hidden.
     my ($key, $value) = Jifty::Request::Mapper->query_parameters($self->input_name, $self->current_value);
     if ($key ne $self->input_name) {
-        require Jifty::Web::Form::Field::Hidden;
+        Jifty::Util->require('Jifty::Web::Form::Field::Hidden');
         bless $self, "Jifty::Web::Form::Field::Hidden";
         $self->input_name($key);
         $self->default_value($value);

Modified: jifty/branches/template-declare/share/plugins/Jifty/Plugin/OnlineDocs/web/templates/__jifty/online_docs/autohandler
==============================================================================
--- jifty/branches/template-declare/share/plugins/Jifty/Plugin/OnlineDocs/web/templates/__jifty/online_docs/autohandler	(original)
+++ jifty/branches/template-declare/share/plugins/Jifty/Plugin/OnlineDocs/web/templates/__jifty/online_docs/autohandler	Thu Mar  8 18:25:43 2007
@@ -5,6 +5,5 @@
     $m->redirect('/__jifty/error/permission_denied'); 
     $m->abort();
 }
-#$m->comp('_elements/nav');
 $m->call_next();
 </%init>

Modified: jifty/branches/template-declare/share/plugins/Jifty/Plugin/OnlineDocs/web/templates/__jifty/online_docs/content.html
==============================================================================
--- jifty/branches/template-declare/share/plugins/Jifty/Plugin/OnlineDocs/web/templates/__jifty/online_docs/content.html	(original)
+++ jifty/branches/template-declare/share/plugins/Jifty/Plugin/OnlineDocs/web/templates/__jifty/online_docs/content.html	Thu Mar  8 18:25:43 2007
@@ -61,10 +61,3 @@
 $Target    => '&method=content'
 $n  => 'Jifty'
 </%ARGS>
-<%once>
-require File::Basename;
-require File::Find;
-require File::Temp;
-require File::Spec;
-require Pod::Simple::HTML;
-</%once>

Modified: jifty/branches/template-declare/share/plugins/Jifty/Plugin/OnlineDocs/web/templates/__jifty/online_docs/toc.html
==============================================================================
--- jifty/branches/template-declare/share/plugins/Jifty/Plugin/OnlineDocs/web/templates/__jifty/online_docs/toc.html	(original)
+++ jifty/branches/template-declare/share/plugins/Jifty/Plugin/OnlineDocs/web/templates/__jifty/online_docs/toc.html	Thu Mar  8 18:25:43 2007
@@ -78,13 +78,6 @@
 
 </%PERL>
 </body></html>
-<%INIT>
-require File::Basename;
-require File::Find;
-require File::Temp;
-require File::Spec;
-require Pod::Simple::HTML;
-</%INIT>
 <%ARGS>
 $n  => ''
 $method => ''


More information about the Jifty-commit mailing list