def domain_get(self, record): if record.value.get(self.name): model = record.value[self.name][0] else: model = None screen_domain, attr_domain = self.domains_get(record) return concat(localize_domain( filter_leaf(screen_domain, self.name, model), strip_target=True), attr_domain)
def get_models(self, record): screen_domain, attr_domain = self.domains_get(record) return extract_reference_models(concat(screen_domain, attr_domain), self.name)
def validation_domains(self, record, pre_validate=None): return concat(*self.domains_get(record, pre_validate))
def domain_get(self, record): screen_domain, attr_domain = self.domains_get(record) return concat(localize_domain(screen_domain), attr_domain)
def domain_get(self, record): screen_domain, attr_domain = self.domains_get(record) return concat(localize_domain(inverse_leaf(screen_domain), self.name), attr_domain)
def domain_get(self, record): screen_domain, attr_domain = self.domains_get(record) return concat(localize_domain(inverse_leaf(screen_domain)), attr_domain)