equal
deleted
inserted
replaced
393 """ |
393 """ |
394 return self.has_eid() and self._cw_is_saved |
394 return self.has_eid() and self._cw_is_saved |
395 |
395 |
396 @cached |
396 @cached |
397 def cw_metainformation(self): |
397 def cw_metainformation(self): |
398 res = dict(zip(('type', 'source', 'extid'), self._cw.describe(self.eid))) |
398 res = self._cw.describe(self.eid, asdict=True) |
399 res['source'] = self._cw.source_defs()[res['source']] |
399 # use 'asource' and not 'source' since this is the actual source, |
|
400 # while 'source' is the physical source (where it's stored) |
|
401 res['source'] = self._cw.source_defs()[res.pop('asource')] |
400 return res |
402 return res |
401 |
403 |
402 def cw_check_perm(self, action): |
404 def cw_check_perm(self, action): |
403 self.e_schema.check_perm(self._cw, action, eid=self.eid) |
405 self.e_schema.check_perm(self._cw, action, eid=self.eid) |
404 |
406 |