def getStateForSaving(self): """Returns state for saving @type state: dictionary @param state: State of the object """ state = Container.getStateForSaving(self) if not state.has_key("attributes"): state["attributes"] = [] state["attributes"].append("Container") state.update(CarryableItem.getStateForSaving(self)) return state