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

Jifty commits jifty-commit at lists.jifty.org
Wed Jan 14 11:54:31 EST 2009


Author: sartak
Date: Wed Jan 14 11:54:31 2009
New Revision: 6241

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

Log:
 r78675 at onn:  sartak | 2009-01-14 11:54:23 -0500
 Don't canonicalize update-nonexistent-record to create-new-record


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 14 11:54:31 2009
@@ -730,8 +730,7 @@
         if defined $column and defined $key;
 
     if ( not $rec->id ) {
-        abort(404)         if $prefix eq 'Delete';
-        $prefix = 'Create' if $prefix eq 'Update';
+        abort(404) if $prefix eq 'Delete' || $prefix eq 'Update';
     }
 
     $class =~ s/^[\w\.]+\.//;


More information about the Jifty-commit mailing list