--- 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 #####################################################