# HG changeset patch # User Sylvain Thénault # Date 1309511896 -7200 # Node ID c84436b797937af071dbf7e38a16aed118792e9e # Parent d3459fe041f0f893a61a661933ab19f4a79e1970 [rset] syntax_tree impl. consistency: don't return an annotated syntax tree diff -r d3459fe041f0 -r c84436b79793 rset.py --- 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