web/views/editforms.py
branchstable
changeset 3627 70dbba754c11
parent 3586 52b00c5e441a
child 3629 559cad62c786
child 3636 9b16e7b6ba35
equal deleted inserted replaced
3626:017869a514c3 3627:70dbba754c11
   370 class CopyFormView(EditionFormView):
   370 class CopyFormView(EditionFormView):
   371     """display primary entity creation form initialized with values from another
   371     """display primary entity creation form initialized with values from another
   372     entity
   372     entity
   373     """
   373     """
   374     id = 'copy'
   374     id = 'copy'
       
   375     title = _('copy')
   375     warning_message = _('Please note that this is only a shallow copy')
   376     warning_message = _('Please note that this is only a shallow copy')
   376 
   377 
   377     def render_form(self, entity):
   378     def render_form(self, entity):
   378         """fetch and render the form"""
   379         """fetch and render the form"""
   379         # make a copy of entity to avoid altering the entity in the
   380         # make a copy of entity to avoid altering the entity in the