From c1449d3aff5418491ec2d78cc5ca22aae360d0a0 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Wed, 7 Nov 2007 16:59:35 +0000 Subject: [PATCH] Add comment about DurationField. Please do not use this field, which it unstable and unsafe. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17463 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/DurationField.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/product/ERP5Form/DurationField.py b/product/ERP5Form/DurationField.py index a8853d0e2f..8c9801ed80 100644 --- a/product/ERP5Form/DurationField.py +++ b/product/ERP5Form/DurationField.py @@ -50,7 +50,20 @@ class DurationWidget(FormulatorPatch.IntegerWidget): The field purpose is to display second quantity in hour, minute and second, in order to make it more readable. + + XXX This field is experimental, and unstable. + Do not use it. """ + + title = fields.StringField('title', + title='Title. ' \ + '(Warning! Do not use this field!)', + description=( + "The title of this field. This is the title of the field that " + "will appear in the form when it is displayed. Required."), + default="", + required=1) + def render_view(self, field, value): sub_field_render_list = [] for title, sub_key, convertion in (('Hour', 'hour', HOUR_IN_SECOND), -- 2.30.9