[Jifty-commit] r1573 -
jifty/trunk/share/web/templates/__jifty/webservices
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Jul 14 15:18:42 EDT 2006
Author: nelhage
Date: Fri Jul 14 15:18:42 2006
New Revision: 1573
Modified:
jifty/trunk/share/web/templates/__jifty/webservices/xml
Log:
Jesse informs me UNIVERSAL::isa is the wrong thing. This should have the right effect.
Modified: jifty/trunk/share/web/templates/__jifty/webservices/xml
==============================================================================
--- jifty/trunk/share/web/templates/__jifty/webservices/xml (original)
+++ jifty/trunk/share/web/templates/__jifty/webservices/xml Fri Jul 14 15:18:42 2006
@@ -66,10 +66,11 @@
# Jifty::DBI::Record's yet, which are technically circular data
# structures at some level (current_user of a
# current_user->user_object is itself)
+ use Scalar::Util qw(blessed);
my $content = $results{$_}->content;
- ref $content->{$_}
- and ( ( UNIVERSAL::isa($content->{$_},"Jifty::DBI::Record"))
- or ( UNIVERSAL::isa($content->{$_},"Jifty::DBI::Collection")) )
+ blessed $content->{$_}
+ and ( $content->{$_}->isa("Jifty::DBI::Record")
+ or $content->{$_}->isa("Jifty::DBI::Collection") )
and delete $content->{$_}
for keys %{$content};
More information about the Jifty-commit
mailing list