From 147615d544fe1b52a1cfc8be4137cfd90642a4bf Mon Sep 17 00:00:00 2001 From: fpeters <> Date: Sat, 10 Apr 2004 23:22:25 +0000 Subject: [PATCH] correction aux Multi en read-only --- shared/web/widgets.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/shared/web/widgets.py b/shared/web/widgets.py index 17d3e65a..70a9f842 100644 --- a/shared/web/widgets.py +++ b/shared/web/widgets.py @@ -932,12 +932,8 @@ class Multi(WidgetMixin, proxyWidgets.Multi): def getModelHiddenLayout(self, slot, fields, children = 1): countName = slot.getFieldOptionName('count') - count = slot.getKind().getMinCount(slot) - try: - count = max(count, int(slot.getFieldOption( - fields, 'count', default = '0'))) - except ValueError: - pass + kind = slot.getKind() + count = kind.getItemsCount(slot, fields) layout = X.array() if count: layout += X.input(name = countName, type = 'hidden', value = count)