web/views/forms.py
branchstable
changeset 4583 356f08325072
parent 4284 8e5dcb54fd8e
child 4658 25de2eb0432b
equal deleted inserted replaced
4582:d12b81facd1d 4583:356f08325072
   264     def default_renderer(self):
   264     def default_renderer(self):
   265         return self._cw.vreg['formrenderers'].select(
   265         return self._cw.vreg['formrenderers'].select(
   266             self.form_renderer_id, self._cw, rset=self.cw_rset, row=self.cw_row,
   266             self.form_renderer_id, self._cw, rset=self.cw_rset, row=self.cw_row,
   267             col=self.cw_col, entity=self.edited_entity)
   267             col=self.cw_col, entity=self.edited_entity)
   268 
   268 
       
   269     def should_display_add_new_relation_link(self, rschema, existant, card):
       
   270         return False
       
   271 
   269     # controller side method (eg POST reception handling)
   272     # controller side method (eg POST reception handling)
   270 
   273 
   271     def actual_eid(self, eid):
   274     def actual_eid(self, eid):
   272         # should be either an int (existant entity) or a variable (to be
   275         # should be either an int (existant entity) or a variable (to be
   273         # created entity)
   276         # created entity)
   282                 return None
   285                 return None
   283 
   286 
   284     def editable_relations(self):
   287     def editable_relations(self):
   285         return ()
   288         return ()
   286 
   289 
   287     def should_display_add_new_relation_link(self, rschema, existant, card):
       
   288         return False
       
   289 
       
   290     @deprecated('[3.6] use cw.web.formfields.relvoc_unrelated function')
   290     @deprecated('[3.6] use cw.web.formfields.relvoc_unrelated function')
   291     def subject_relation_vocabulary(self, rtype, limit=None):
   291     def subject_relation_vocabulary(self, rtype, limit=None):
   292         """defaut vocabulary method for the given relation, looking for
   292         """defaut vocabulary method for the given relation, looking for
   293         relation's object entities (i.e. self is the subject)
   293         relation's object entities (i.e. self is the subject)
   294         """
   294         """