def confirmation_number(self): conf = coalesce(self.web_confirmation_number, "") loc = conf.find(".") return default_slice(self.web_confirmation_number, 0, loc, None)
def split_number(self): conf = coalesce(self.web_confirmation_number, "") loc = len(conf) - conf.find(".") return default_slice(self.web_confirmation_number, loc, len(conf), None)