Example #1
0
 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)
Example #2
0
 def get_models(self, record):
     screen_domain, attr_domain = self.domains_get(record)
     return extract_reference_models(concat(screen_domain, attr_domain),
                                     self.name)
Example #3
0
 def validation_domains(self, record, pre_validate=None):
     return concat(*self.domains_get(record, pre_validate))
Example #4
0
 def domain_get(self, record):
     screen_domain, attr_domain = self.domains_get(record)
     return concat(localize_domain(screen_domain), attr_domain)
Example #5
0
 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)
Example #6
0
 def domain_get(self, record):
     screen_domain, attr_domain = self.domains_get(record)
     return concat(localize_domain(inverse_leaf(screen_domain)),
         attr_domain)
Example #7
0
 def validation_domains(self, record, pre_validate=None):
     return concat(*self.domains_get(record, pre_validate))