def before_content(self) -> None:
    lastSymbol = self.env.temp_data['cpp:last_symbol']
    assert lastSymbol
    self.oldParentSymbol = self.env.temp_data['cpp:parent_symbol']
    self.oldParentKey = self.env.ref_context['cpp:parent_key']
    self.env.temp_data['cpp:parent_symbol'] = lastSymbol
    self.env.ref_context['cpp:parent_key'] = lastSymbol.get_lookup_key()
def before_content(self) -> None:
    lastSymbol = self.env.temp_data['cpp:last_symbol']
    assert lastSymbol
    self.oldParentSymbol = self.env.temp_data['cpp:parent_symbol']
    self.oldParentKey = self.env.ref_context['cpp:parent_key']
    self.env.temp_data['cpp:parent_symbol'] = lastSymbol
    self.env.ref_context['cpp:parent_key'] = lastSymbol.get_lookup_key()