[Jifty-commit] r3273 - in jifty/trunk: share/web/templates/__jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun May 20 20:00:46 EDT 2007


Author: alexmv
Date: Sun May 20 20:00:46 2007
New Revision: 3273

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/share/web/templates/__jifty/autocomplete.xml

Log:
 r19218 at zoq-fot-pik:  chmrr | 2007-05-20 20:00:36 -0400
  * Don't assume there's an autocomplete action


Modified: jifty/trunk/share/web/templates/__jifty/autocomplete.xml
==============================================================================
--- jifty/trunk/share/web/templates/__jifty/autocomplete.xml	(original)
+++ jifty/trunk/share/web/templates/__jifty/autocomplete.xml	Sun May 20 20:00:46 2007
@@ -3,6 +3,10 @@
 # behavior is accomplished inside the framework.  It will go away once we
 # have infrastructure for serving things of various content-types.
 $r->content_type('text/xml; charset=UTF-8');
+unless (Jifty->web->response->result('autocomplete')) {
+  print "<body />";
+  return;
+}
 my $ref =  Jifty->web->response->result('autocomplete')->content;
 my @options = @{$ref->{'completions'}||[]};
 </%init>


More information about the Jifty-commit mailing list