web/views/editforms.py
changeset 3629 559cad62c786
parent 3589 a5432f99f2d9
parent 3627 70dbba754c11
child 3674 387d51af966d
equal deleted inserted replaced
3590:1b0dbcf4b214 3629:559cad62c786
   369 class CopyFormView(EditionFormView):
   369 class CopyFormView(EditionFormView):
   370     """display primary entity creation form initialized with values from another
   370     """display primary entity creation form initialized with values from another
   371     entity
   371     entity
   372     """
   372     """
   373     __regid__ = 'copy'
   373     __regid__ = 'copy'
       
   374 
       
   375     title = _('copy')
   374     warning_message = _('Please note that this is only a shallow copy')
   376     warning_message = _('Please note that this is only a shallow copy')
   375 
   377 
   376     def render_form(self, entity):
   378     def render_form(self, entity):
   377         """fetch and render the form"""
   379         """fetch and render the form"""
   378         # 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