[sparql] bugfix stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Thu, 29 Apr 2010 07:03:08 +0200
branchstable
changeset 5434 b56420abc00f
parent 5433 aae37bb56e3b
child 5448 9bf648d678cd
[sparql] bugfix
web/views/sparql.py
--- a/web/views/sparql.py	Thu Apr 29 07:02:14 2010 +0200
+++ b/web/views/sparql.py	Thu Apr 29 07:03:08 2010 +0200
@@ -64,11 +64,13 @@
                 self.w(self._cw._('we are not yet ready to handle this query'))
             except xy.UnsupportedVocabulary, ex:
                 self.w(self._cw._('unknown vocabulary:') + u' ' + unicode('ex'))
-            if vid == 'sparqlxml':
-                url = self._cw.build_url('view', rql=qinfo.finalize(), vid=vid)
-                raise Redirect(url)
-            rset = self._cw.execute(qinfo.finalize())
-            self.wview(vid, rset, 'null')
+            else:
+                if vid == 'sparqlxml':
+                    url = self._cw.build_url('view', rql=qinfo.finalize(), vid=vid)
+                    raise Redirect(url)
+                print qinfo.finalize()
+                rset = self._cw.execute(*qinfo.finalize())
+                self.wview(vid, rset, 'null')
 
 
 ## sparql resultset views #####################################################