def __get_tag(self, admin=False, params=['layerstyle=simple']): # no idea why isn't the proper code returned, when requesting # generate_tag WITHOUT code_type d = ADMIN_ZONE_TYPE_MAPPING if admin else ZONE_TYPE_MAPPING try: code_type = d[self.type] except IndexError: code_type = d[0] tag = str(Zone.get(self.zone_id).generate_tag(code_type=code_type, params=params)) return tag.replace('INSERT_RANDOM_NUMBER_HERE', str(uuid.uuid1()))
def __get_zone_dict(self): return Zone.get(self.zone_id)