rset.py
branchstable
changeset 7592 c84436b79793
parent 7395 09ffcc04bd21
child 7595 83872394b5d9
--- a/rset.py	Thu Jun 30 16:26:25 2011 +0200
+++ b/rset.py	Fri Jul 01 11:18:16 2011 +0200
@@ -515,17 +515,15 @@
 
     @cached
     def syntax_tree(self):
-        """get the syntax tree for the source query.
-
-        :rtype: rql.stmts.Statement
-        :return: the RQL syntax tree of the originating query
+        """return the syntax tree (:class:`rql.stmts.Union`) for the originating
+        query. You can expect it to have solutions computed but it won't be
+        annotated (you usually don't need that for simple introspection).
         """
         if self._rqlst:
             rqlst = self._rqlst.copy()
             # to avoid transport overhead when pyro is used, the schema has been
             # unset from the syntax tree
             rqlst.schema = self.req.vreg.schema
-            self.req.vreg.rqlhelper.annotate(rqlst)
         else:
             rqlst = self.req.vreg.parse(self.req, self.rql, self.args)
         return rqlst