[Jifty-commit] r2699 - in jifty/branches/virtual-models: .

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Jan 28 11:15:38 EST 2007


Author: jesse
Date: Sun Jan 28 11:15:38 2007
New Revision: 2699

Modified:
   jifty/branches/virtual-models/   (props changed)
   jifty/branches/virtual-models/lib/Jifty.pm

Log:
 r21644 at hualien:  jesse | 2007-01-29 00:14:38 +0800
 * Don't load classes from the database when we have no database handle


Modified: jifty/branches/virtual-models/lib/Jifty.pm
==============================================================================
--- jifty/branches/virtual-models/lib/Jifty.pm	(original)
+++ jifty/branches/virtual-models/lib/Jifty.pm	Sun Jan 28 11:15:38 2007
@@ -155,7 +155,7 @@
 
     # Let's get the database rocking and rolling
     Jifty->setup_database_connection(%args);
-    Jifty->class_loader->require_classes_from_database() if (Jifty->handle());
+    Jifty->class_loader->require_classes_from_database() if (Jifty->handle() and not $args{'no_handle'});
 
     # Call the application's start method to let it do anything
     # application specific for startup


More information about the Jifty-commit mailing list