[Jifty-commit] r3435 - jifty/trunk/lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun Jun 10 21:33:25 EDT 2007
Author: sky
Date: Sun Jun 10 21:33:24 2007
New Revision: 3435
Modified:
jifty/trunk/lib/Jifty/ClassLoader.pm
Log:
trailing whitespace....
Modified: jifty/trunk/lib/Jifty/ClassLoader.pm
==============================================================================
--- jifty/trunk/lib/Jifty/ClassLoader.pm (original)
+++ jifty/trunk/lib/Jifty/ClassLoader.pm Sun Jun 10 21:33:24 2007
@@ -179,10 +179,10 @@
}
- # This is if, not elsif because we might have $base::Action::Deleteblah
+ # This is if, not elsif because we might have $base::Action::Deleteblah
# that matches that last elsif clause but loses on the eval.
if ( $module =~ /^(?:$base)::(Action|Notification)::(.*)$/x and not grep {$_ eq $base} map {ref} Jifty->plugins ) {
- my $type = $1;
+ my $type = $1;
my $item = $2;
# If we don't have the action in our own app, let's try the plugins
# the app has loaded.
@@ -234,15 +234,15 @@
sub require {
my $self = shift;
-
+
my $base = $self->{base};
# if we don't even have an application class, this trick will not work
- return unless ($base);
+ return unless ($base);
Jifty::Util->require($base);
Jifty::Util->require($base."::CurrentUser");
my %models;
-
+
Jifty::Module::Pluggable->import(
# $base goes last so we pull in the view class AFTER the model classes
@@ -256,7 +256,7 @@
for my $full ($self->models) {
$self->_require_model_related_classes($full);
}
-
+
}
sub _require_model_related_classes {
@@ -275,13 +275,13 @@
Jifty supports model classes that aren't files on disk but instead records
in your database. It's a little bit mind bending, but basically, you can
-build an application entirely out of the database without ever writing a
-line of code(*).
+build an application entirely out of the database without ever writing a
+line of code(*).
-* As of early 2007, this forward looking statement is mostly a lie. But we're
+* As of early 2007, this forward looking statement is mostly a lie. But we're
working on it.
-This method finds all database-backed models and instantiates jifty classes for
+This method finds all database-backed models and instantiates jifty classes for
them it returns a list of classnames of the models it created.
=cut
@@ -308,10 +308,10 @@
sub require_views {
my $self = shift;
-
+
my $base = $self->{base};
# if we don't even have an application class, this trick will not work
- return unless ($base);
+ return unless ($base);
Jifty::Util->require($base."::View");
}
More information about the Jifty-commit
mailing list