[Bps-public-commit] r16340 - in Prophet/trunk: .

jesse at bestpractical.com jesse at bestpractical.com
Fri Oct 17 22:17:26 EDT 2008


Author: jesse
Date: Fri Oct 17 22:17:26 2008
New Revision: 16340

Modified:
   Prophet/trunk/   (props changed)
   Prophet/trunk/lib/Prophet/DatabaseSetting.pm

Log:
 r47001 at 31b:  jesse | 2008-10-18 00:27:02 +0100
 * a bit of refactroing to prophet DatabaseSettings to make them more useful


Modified: Prophet/trunk/lib/Prophet/DatabaseSetting.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/DatabaseSetting.pm	(original)
+++ Prophet/trunk/lib/Prophet/DatabaseSetting.pm	Fri Oct 17 22:17:26 2008
@@ -46,12 +46,19 @@
 }
 
 
-sub get {
+
+sub get_raw {
     my $self = shift;
+    my $content = $self->prop('content');
+    return $content;
+}
 
+sub get {
+    my $self = shift;
 
     $self->initialize() unless $self->load(uuid => $self->uuid);
-    my $content = $self->prop('content');
+    my $content = $self->get_raw;
+
     my $entry = from_json($content , { utf8 => 1 });
     return $entry;
     # XXX TODO do we really want to just get the first one?



More information about the Bps-public-commit mailing list