equal
deleted
inserted
replaced
325 @classmethod |
325 @classmethod |
326 def propkey(cls, propid): |
326 def propkey(cls, propid): |
327 return '%s.%s.%s' % (cls.__registry__, cls.id, propid) |
327 return '%s.%s.%s' % (cls.__registry__, cls.id, propid) |
328 |
328 |
329 @classproperty |
329 @classproperty |
330 @deprecated('use __select__ and & or | operators') |
330 @deprecated('[3.4] use __select__ and & or | operators') |
331 def __selectors__(cls): |
331 def __selectors__(cls): |
332 selector = cls.__select__ |
332 selector = cls.__select__ |
333 if isinstance(selector, AndSelector): |
333 if isinstance(selector, AndSelector): |
334 return tuple(selector.selectors) |
334 return tuple(selector.selectors) |
335 if not isinstance(selector, tuple): |
335 if not isinstance(selector, tuple): |
452 method = self.req.relative_path(includeparams=False) or 'view' |
452 method = self.req.relative_path(includeparams=False) or 'view' |
453 return self.req.build_url(method, **kwargs) |
453 return self.req.build_url(method, **kwargs) |
454 |
454 |
455 # various resources accessors ############################################# |
455 # various resources accessors ############################################# |
456 |
456 |
457 @deprecated('use self.rset.get_entity(row,col) instead') |
457 @deprecated('[3.5] use self.rset.get_entity(row,col) instead') |
458 def entity(self, row, col=0): |
458 def entity(self, row, col=0): |
459 """short cut to get an entity instance for a particular row/column |
459 """short cut to get an entity instance for a particular row/column |
460 (col default to 0) |
460 (col default to 0) |
461 """ |
461 """ |
462 return self.rset.get_entity(row, col) |
462 return self.rset.get_entity(row, col) |