cubicweb/schema.py
changeset 12575 30d0e27a1d52
parent 12567 26744ad37953
equal deleted inserted replaced
12574:6ccf8fda063f 12575:30d0e27a1d52
   222             self.snippet_rqlst = self._cached_parse(self.minimal_rql)
   222             self.snippet_rqlst = self._cached_parse(self.minimal_rql)
   223         except RQLSyntaxError:
   223         except RQLSyntaxError:
   224             raise RQLSyntaxError(expression)
   224             raise RQLSyntaxError(expression)
   225         for mainvar in mainvars:
   225         for mainvar in mainvars:
   226             if len(self.snippet_rqlst.defined_vars[mainvar].references()) < 2:
   226             if len(self.snippet_rqlst.defined_vars[mainvar].references()) < 2:
   227                 _LOGGER.warn('You did not use the %s variable in your RQL '
   227                 _LOGGER.warning('You did not use the %s variable in your RQL '
   228                              'expression %s', mainvar, self)
   228                                 'expression %s', mainvar, self)
   229         # graph of links between variables, used by rql rewriter
   229         # graph of links between variables, used by rql rewriter
   230         self.vargraph = vargraph(self.snippet_rqlst)
   230         self.vargraph = vargraph(self.snippet_rqlst)
   231         # useful for some instrumentation, e.g. localperms permcheck command
   231         # useful for some instrumentation, e.g. localperms permcheck command
   232         self.package = ybo.PACKAGE
   232         self.package = ybo.PACKAGE
   233 
   233