equal
deleted
inserted
replaced
621 'before_add_entity' hooks). You can use this method to ensure the entity |
621 'before_add_entity' hooks). You can use this method to ensure the entity |
622 has an eid *and* is saved in its source. |
622 has an eid *and* is saved in its source. |
623 """ |
623 """ |
624 return self.has_eid() and self._cw_is_saved |
624 return self.has_eid() and self._cw_is_saved |
625 |
625 |
|
626 @deprecated('[3.24] cw_metainformation is deprecated') |
626 @cached |
627 @cached |
627 def cw_metainformation(self): |
628 def cw_metainformation(self): |
628 return self._cw.entity_metas(self.eid) |
629 source = self.cw_source[0].name |
|
630 return {'type': self.cw_etype, |
|
631 'extid': self.cwuri if source != 'system' else None, |
|
632 'source': {'uri': source}} |
629 |
633 |
630 def cw_check_perm(self, action): |
634 def cw_check_perm(self, action): |
631 self.e_schema.check_perm(self._cw, action, eid=self.eid) |
635 self.e_schema.check_perm(self._cw, action, eid=self.eid) |
632 |
636 |
633 def cw_has_perm(self, action): |
637 def cw_has_perm(self, action): |