def move_to_obj(self, arg, attr=None): try: arg = arg.path except AttributeError: pass self.load_content_once(schedule=False) if self.empty(): return Accumulator.move_to_obj(self, arg, attr='path')
def move_to_obj(self, arg): try: arg = arg.path except Exception: pass self.load_content_once(schedule=False) if self.empty(): return Accumulator.move_to_obj(self, arg, attr='path')
def move_to_obj(self, arg, attr=None): try: arg = arg.path except AttributeError: pass self.load_content_once(schedule=False) if self.empty(): return Accumulator.move_to_obj(self, arg, attr='path')
def move_to_obj(self, arg): try: arg = arg.path except Exception: pass self.load_content_once(schedule=False) if self.empty(): return Accumulator.move_to_obj(self, arg, attr='path')