[Jifty-commit] r770 - in jifty/trunk: lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Mar 30 03:23:12 EST 2006


Author: jesse
Date: Thu Mar 30 03:23:12 2006
New Revision: 770

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Action.pm
   jifty/trunk/lib/Jifty/Response.pm

Log:
 r10547 at hualien:  jesse | 2006-03-30 15:52:34 +0900
 * minor refactoring


Modified: jifty/trunk/lib/Jifty/Action.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action.pm	(original)
+++ jifty/trunk/lib/Jifty/Action.pm	Thu Mar 30 03:23:12 2006
@@ -380,15 +380,15 @@
 
 sub render_errors {
     my $self = shift;
-    my $m = Jifty->web->mason; 
     
     if (defined $self->result->error) {
-        $m->out('<div class="form_errors">');
         # XXX TODO FIXME escape?
-        $m->out('<span class="error">'. $self->result->error .'</span>');
-        $m->out('</div>');
+        Jifty->web->out( '<div class="form_errors">'
+                . '<span class="error">'
+                . $self->result->error
+                . '</span>'
+                . '</div>' );
     }
-
     return '';
 }
 

Modified: jifty/trunk/lib/Jifty/Response.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Response.pm	(original)
+++ jifty/trunk/lib/Jifty/Response.pm	Thu Mar 30 03:23:12 2006
@@ -40,10 +40,10 @@
 
 sub add_header {
     my $self = shift;
-    # This one is so we can get jifty's headers into mason
-    # Otherwise we'd have to wrap mason's output layer
      Jifty->handler->apache->header_out( @_ );
 
+    # This one is so we can get jifty's headers into mason
+    # Otherwise we'd have to wrap mason's output layer
 
     push @{$self->{headers}}, [@_];
 }


More information about the Jifty-commit mailing list