cwvreg.py
changeset 2793 bfb21f7a0d13
parent 2777 8f7fcbe11879
child 2800 31c3a045e04d
child 2804 0d01413ec9ae
equal deleted inserted replaced
2789:39712da6f397 2793:bfb21f7a0d13
   387     def rqlhelper(self):
   387     def rqlhelper(self):
   388         return RQLHelper(self.schema,
   388         return RQLHelper(self.schema,
   389                          special_relations={'eid': 'uid', 'has_text': 'fti'})
   389                          special_relations={'eid': 'uid', 'has_text': 'fti'})
   390 
   390 
   391 
   391 
   392     @deprecated('use vreg["etypes"].etype_class(etype)')
   392     @deprecated('[3.4] use vreg["etypes"].etype_class(etype)')
   393     def etype_class(self, etype):
   393     def etype_class(self, etype):
   394         return self["etypes"].etype_class(etype)
   394         return self["etypes"].etype_class(etype)
   395 
   395 
   396     @deprecated('use vreg["views"].main_template(*args, **kwargs)')
   396     @deprecated('[3.4] use vreg["views"].main_template(*args, **kwargs)')
   397     def main_template(self, req, oid='main-template', **context):
   397     def main_template(self, req, oid='main-template', **context):
   398         return self["views"].main_template(req, oid, **context)
   398         return self["views"].main_template(req, oid, **context)
   399 
   399 
   400     @deprecated('use vreg[registry].possible_vobjects(*args, **kwargs)')
   400     @deprecated('[3.4] use vreg[registry].possible_vobjects(*args, **kwargs)')
   401     def possible_vobjects(self, registry, *args, **kwargs):
   401     def possible_vobjects(self, registry, *args, **kwargs):
   402         return self[registry].possible_vobjects(*args, **kwargs)
   402         return self[registry].possible_vobjects(*args, **kwargs)
   403 
   403 
   404     @deprecated('use vreg["actions"].possible_actions(*args, **kwargs)')
   404     @deprecated('[3.4] use vreg["actions"].possible_actions(*args, **kwargs)')
   405     def possible_actions(self, req, rset=None, **kwargs):
   405     def possible_actions(self, req, rset=None, **kwargs):
   406         return self["actions"].possible_actions(req, rest=rset, **kwargs)
   406         return self["actions"].possible_actions(req, rest=rset, **kwargs)
   407 
   407 
   408     @deprecated("use vreg['boxes'].select_or_none(...)")
   408     @deprecated("[3.4] use vreg['boxes'].select_or_none(...)")
   409     def select_box(self, oid, *args, **kwargs):
   409     def select_box(self, oid, *args, **kwargs):
   410         return self['boxes'].select_or_none(oid, *args, **kwargs)
   410         return self['boxes'].select_or_none(oid, *args, **kwargs)
   411 
   411 
   412     @deprecated("use vreg['components'].select_or_none(...)")
   412     @deprecated("[3.4] use vreg['components'].select_or_none(...)")
   413     def select_component(self, cid, *args, **kwargs):
   413     def select_component(self, cid, *args, **kwargs):
   414         return self['components'].select_or_none(cid, *args, **kwargs)
   414         return self['components'].select_or_none(cid, *args, **kwargs)
   415 
   415 
   416     @deprecated("use vreg['actions'].select_or_none(...)")
   416     @deprecated("[3.4] use vreg['actions'].select_or_none(...)")
   417     def select_action(self, oid, *args, **kwargs):
   417     def select_action(self, oid, *args, **kwargs):
   418         return self['actions'].select_or_none(oid, *args, **kwargs)
   418         return self['actions'].select_or_none(oid, *args, **kwargs)
   419 
   419 
   420     @deprecated("use vreg['views'].select(...)")
   420     @deprecated("[3.4] use vreg['views'].select(...)")
   421     def select_view(self, __vid, req, rset=None, **kwargs):
   421     def select_view(self, __vid, req, rset=None, **kwargs):
   422         return self['views'].select(__vid, req, rset=rset, **kwargs)
   422         return self['views'].select(__vid, req, rset=rset, **kwargs)
   423 
   423 
   424     # properties handling #####################################################
   424     # properties handling #####################################################
   425 
   425