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

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Jun 8 17:48:53 EDT 2006


Author: alexmv
Date: Thu Jun  8 17:48:52 2006
New Revision: 1222

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

Log:
 r13731 at zoq-fot-pik:  chmrr | 2006-06-08 17:46:05 -0400
  * Reduce css generation log to debug
  * Deal with case where current_user is set to undef


Modified: jifty/trunk/lib/Jifty/Web.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web.pm	(original)
+++ jifty/trunk/lib/Jifty/Web.pm	Thu Jun  8 17:48:52 2006
@@ -159,8 +159,8 @@
     my $self = shift;
     if (@_) {
         my $user = shift;
-        $self->session->set('user_id'  => $user->id);
-        $self->session->set('user_ref' => ref $user->user_object);
+        $self->session->set('user_id'  => $user ? $user->id : undef);
+        $self->session->set('user_ref' => $user ? ref $user->user_object : undef);
     }
     if (defined $self->temporary_current_user) {
         return $self->temporary_current_user;
@@ -1015,7 +1015,7 @@
     if (not defined $self->cached_css_digest
             or Jifty->config->framework('DevelMode'))
     {
-        Jifty->log->info("Generating CSS...");
+        Jifty->log->debug("Generating CSS...");
         
         my $css = CSS::Squish->concatenate(
                         Jifty->config->framework('Web')->{'StaticRoot'}


More information about the Jifty-commit mailing list