[Jifty-commit] r2403 - in jifty/branches/template-declare: .

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Dec 19 03:05:57 EST 2006


Author: jesse
Date: Tue Dec 19 03:05:56 2006
New Revision: 2403

Modified:
   jifty/branches/template-declare/   (props changed)
   jifty/branches/template-declare/lib/Jifty/ClassLoader.pm

Log:
 r46260 at pinglin:  jesse | 2006-12-19 03:04:10 -0500
 * Load the view class AFTER the model classes, so it can introspect them


Modified: jifty/branches/template-declare/lib/Jifty/ClassLoader.pm
==============================================================================
--- jifty/branches/template-declare/lib/Jifty/ClassLoader.pm	(original)
+++ jifty/branches/template-declare/lib/Jifty/ClassLoader.pm	Tue Dec 19 03:05:56 2006
@@ -211,11 +211,13 @@
     Jifty::Util->require($base."::CurrentUser");
     eval { 
     Jifty::Module::Pluggable->import(
-        search_path => [ $base,  map { $base . "::" . $_ } ('Model', 'Action', 'Notification', 'Event', 'View' )],
+        # $base goes last so we pull in the view class AFTER the model classes
+        search_path => [map { $base . "::" . $_ } ('Model', 'Action', 'Notification', 'Event')],
         require => 1,
         except  => qr/\.#/,
         inner   => 0
     );
+    Jifty::Util->require($base."::View");
     };
     
     if ($@) {


More information about the Jifty-commit mailing list