[Jifty-commit] r4909 - in jifty/trunk: lib/Jifty/Plugin/REST

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Jan 23 14:37:41 EST 2008


Author: sartak
Date: Wed Jan 23 14:37:41 2008
New Revision: 4909

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm

Log:
 r50687 at onn:  sartak | 2008-01-23 14:37:13 -0500
 REST's _resolve needs to take into account that we use :: as a seperator, but we give . as the separator


Modified: jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm	Wed Jan 23 14:37:41 2008
@@ -392,6 +392,11 @@
 sub _resolve {
     my $name = shift;
     my $base = shift;
+
+    # we display actions as "AppName.Action.Foo", so we want to convert those
+    # heathen names to be Perl-style
+    $name =~ s/\./::/g;
+
     return $name if $name->isa($base);
 
     $name =~ s/\W+/\\W+/g;


More information about the Jifty-commit mailing list