示例#1
0
 def get_form_display(self):
     from camelot.view.forms import Form, structure_to_form
     if self.form_display:
         return structure_to_form(self.form_display)
     if self.list_display:
         return Form( self.get_table().get_fields() )
     return Form([])
示例#2
0
 def get_form_display(self):
     from camelot.view.forms import Form, structure_to_form
     if self.form or self.form_display:
         return structure_to_form(self.form or self.form_display)
     if self.list_display:
         return Form(self.list_display)
     return Form([])
示例#3
0
 def get_form_display(self):
     from camelot.view.forms import Form, structure_to_form
     if self.form_display:
         return structure_to_form(self.form_display)
     if self.list_display:
         return Form( self.get_table().get_fields() )
     return Form([])
示例#4
0
 def get_form_display(self):
     from camelot.view.forms import Form, structure_to_form
     if self.form or self.form_display:
         return structure_to_form(self.form or self.form_display)
     if self.list_display:
         return Form(self.list_display)
     return Form([])