web/views/forms.py
changeset 2088 4ec37d33657e
parent 2058 7ef12c03447c
child 2144 51c84d585456
equal deleted inserted replaced
2084:923788d1f9c6 2088:4ec37d33657e
   511         for tr in entity.in_state[0].transitions(entity):
   511         for tr in entity.in_state[0].transitions(entity):
   512             state = tr.destination_state[0]
   512             state = tr.destination_state[0]
   513             results.append((state.view('combobox'), state.eid))
   513             results.append((state.view('combobox'), state.eid))
   514         return sorted(results)
   514         return sorted(results)
   515 
   515 
       
   516     def srelations_by_category(self, categories=None, permission=None):
       
   517         return ()
       
   518 
       
   519     def should_display_add_new_relation_link(self, rschema, existant, card):
       
   520         return False
       
   521 
   516 
   522 
   517 class CompositeForm(FieldsForm):
   523 class CompositeForm(FieldsForm):
   518     """form composed for sub-forms"""
   524     """form composed for sub-forms"""
   519     id = 'composite'
   525     id = 'composite'
   520     form_renderer_id = id
   526     form_renderer_id = id