web/views/editforms.py
changeset 3072 6fb42c53f6df
parent 2890 fdcb8a2bb6eb
parent 3062 a8e901fc4457
child 3085 b415bca9a9ed
--- a/web/views/editforms.py	Thu Aug 27 13:02:45 2009 +0200
+++ b/web/views/editforms.py	Mon Aug 31 19:09:54 2009 +0200
@@ -371,6 +371,8 @@
     entity
     """
     id = 'copy'
+    warning_message = _('Please note that this is only a shallow copy')
+
     def render_form(self, entity):
         """fetch and render the form"""
         # make a copy of entity to avoid altering the entity in the
@@ -381,7 +383,7 @@
         self.initialize_varmaker()
         self.newentity.eid = self.varmaker.next()
         self.w(u'<script type="text/javascript">updateMessage("%s");</script>\n'
-               % self.req._('Please note that this is only a shallow copy'))
+               % self.req._(self.warning_message))
         super(CopyFormView, self).render_form(self.newentity)
         del self.newentity