fixed issue 721, xml not callable oddity, thanks psathvik

This commit is contained in:
Massimo Di Pierro committed 2012-03-19 15:55:49 -05:00
1 parent ec811fe765
commit 54df20f543
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1 +1 @@
Version 1.99.7 (2012-03-19 15:51:10) dev Version 1.99.7 (2012-03-19 15:55:45) dev
+1 -1
View File
@@ -577,7 +577,7 @@ def run_controller_in(controller, function, environment):
vars = p(vars) vars = p(vars)
if isinstance(vars,unicode): if isinstance(vars,unicode):
vars = vars.encode('utf8') vars = vars.encode('utf8')
if hasattr(vars,'xml'): elif hasattr(vars,'xml') and callable(vars.xml):
vars = vars.xml() vars = vars.xml()
return vars return vars