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

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Jan 17 22:27:16 EST 2008


Author: sartak
Date: Thu Jan 17 22:27:15 2008
New Revision: 4872

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

Log:
 r50513 at onn:  sartak | 2008-01-17 22:25:53 -0500
 Old REST code was creating screwy hashes, use the new jifty_serialize_format instead


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	Thu Jan 17 22:27:15 2008
@@ -511,9 +511,7 @@
     my $rec = $model->new;
     $rec->load_by_cols( $column => $key );
     $rec->id or abort(404);
-    outs( ['model', $model, $column, $key], 
-        { map { $_ => Jifty::Util->stringify($rec->$_()) }
-              map {$_->name} $rec->columns});
+    outs( ['model', $model, $column, $key], $rec->jifty_serialize_format );
 }
 
 =head2 search_items $model, [c1, v1, c2, v2, ...] [, $field]


More information about the Jifty-commit mailing list