Conditions | 3 |
Total Lines | 7 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # -*- coding: utf-8 -*- |
||
17 | def isTemporary(self): |
||
18 | parent = aq_parent(aq_inner(self)) |
||
19 | # Fix indexing of temporary objects resulting in orphan entries in catalog |
||
20 | if is_tmp_id(self.id) or is_tmp_id(parent.id): |
||
21 | logger.debug("DX object %s is temporary!" % api.get_path(self)) |
||
22 | return True |
||
23 | return False |
||
24 |