equal
deleted
inserted
replaced
83 (already processed if necessary) |
83 (already processed if necessary) |
84 """ |
84 """ |
85 raise NotImplementedError |
85 raise NotImplementedError |
86 |
86 |
87 # generic methods useful for concret implementations ###################### |
87 # generic methods useful for concret implementations ###################### |
|
88 |
|
89 def process_rql(self, rql): |
|
90 """execute rql if specified""" |
|
91 if rql: |
|
92 self.ensure_ro_rql(rql) |
|
93 if not isinstance(rql, unicode): |
|
94 rql = unicode(rql, self.req.encoding) |
|
95 pp = self.vreg.select_component('magicsearch', self.req) |
|
96 self.rset = pp.process_query(rql, self.req) |
|
97 return self.rset |
|
98 return None |
88 |
99 |
89 def check_expected_params(self, params): |
100 def check_expected_params(self, params): |
90 """check that the given list of parameters are specified in the form |
101 """check that the given list of parameters are specified in the form |
91 dictionary |
102 dictionary |
92 """ |
103 """ |