From: <pau...@us...> - 2007-05-01 21:24:39
|
Revision: 945 http://svn.sourceforge.net/everydevel/?rev=945&view=rev Author: paul_the_nomad Date: 2007-05-01 14:24:38 -0700 (Tue, 01 May 2007) Log Message: ----------- FIX: Ensure relevent storage classes are loaded. Modified Paths: -------------- trunk/ebase/lib/Everything/NodeBase.pm Property Changed: ---------------- trunk/ebase/ Property changes on: trunk/ebase ___________________________________________________________________ Name: svk:merge - 16c2b9cb-492b-4d64-9535-64d4e875048d:/wip/ebase:960 a6810612-c0f9-0310-9d3e-a9e4af8c5745:/ebase/offline:17930 + 16c2b9cb-492b-4d64-9535-64d4e875048d:/wip/ebase:961 a6810612-c0f9-0310-9d3e-a9e4af8c5745:/ebase/offline:17930 Modified: trunk/ebase/lib/Everything/NodeBase.pm =================================================================== --- trunk/ebase/lib/Everything/NodeBase.pm 2007-05-01 21:24:05 UTC (rev 944) +++ trunk/ebase/lib/Everything/NodeBase.pm 2007-05-01 21:24:38 UTC (rev 945) @@ -85,6 +85,11 @@ $this->{staticNodetypes} = $staticNodetypes ? 1 : 0; my $storage_class = 'Everything::DB::' . $storage; + + ( my $file = $storage_class ) =~ s/::/\//g; + $file .= '.pm'; + require $file; + $this->{storage} = $storage_class->new( nb => $this, cache => $this->{cache} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |