Пример #1
0
 def _init_forms(self):
     conv = GeneralModelConverter(self.datamodel)
     if not self.add_form:
         self.add_form = conv.create_form(self.label_columns,
                                          self.add_columns,
                                          self.description_columns,
                                          self.validators_columns,
                                          self.add_form_extra_fields,
                                          self.add_form_query_rel_fields)
     if not self.edit_form:
         self.edit_form = conv.create_form(self.label_columns,
                                           self.edit_columns,
                                           self.description_columns,
                                           self.validators_columns,
                                           self.edit_form_extra_fields,
                                           self.edit_form_query_rel_fields)
Пример #2
0
 def _init_forms(self):
     
     conv = GeneralModelConverter(self.datamodel)        
     if not self.add_form:
         self.add_form = conv.create_form(self.label_columns,
                 self.description_columns,
                 self.validators_columns,
                 self.add_columns)
     if not self.edit_form:
         self.edit_form = conv.create_form(self.label_columns,
                 self.description_columns,
                 self.validators_columns,
                 self.edit_columns)        
     if not self.search_form:
         self.search_form = conv.create_form(self.label_columns,
                 self.description_columns,
                 self.validators_columns,
                 self.search_columns)
Пример #3
0
 def _base_model_init_forms(self):
     conv = GeneralModelConverter(self.datamodel)
     if not self.search_form:
         self.search_form = conv.create_form(self.label_columns, self.search_columns)