From 0c9a2a64bb4f225450b585c1662652831d920b2e Mon Sep 17 00:00:00 2001 From: drfho Date: Fri, 6 Oct 2023 21:27:50 +0200 Subject: [PATCH] facelift filter squencer (#196) --- Products/zms/ZMSFilterManager.py | 12 +- .../zms/zpt/ZMSFilterManager/manage_main.zpt | 107 ++++++++++++++++-- 2 files changed, 108 insertions(+), 11 deletions(-) diff --git a/Products/zms/ZMSFilterManager.py b/Products/zms/ZMSFilterManager.py index 875990d1b..d0034a47b 100644 --- a/Products/zms/ZMSFilterManager.py +++ b/Products/zms/ZMSFilterManager.py @@ -593,10 +593,14 @@ def manage_changeFilter(self, lang, btn='', key='', REQUEST=None, RESPONSE=None) self.setFilterProcess(id, index, newProcessId, newProcessFile) index += 1 # New Filter Process? - newProcessId = REQUEST.get('newFilterProcessId_%i'%index, '').strip() - newProcessFile = REQUEST.get('newFilterProcessFile_%i'%index) - if newProcessId: - self.setFilterProcess(id, newProcessId, newProcessFile) + while True: + newProcessId = REQUEST.get('newFilterProcessId_%i'%index, '').strip() + newProcessFile = REQUEST.get('newFilterProcessFile_%i'%index) + if newProcessId: + self.setFilterProcess(id, index, newProcessId, newProcessFile) + else: + break + index += 1 # Return with message. message = self.getZMILangStr('MSG_CHANGED') diff --git a/Products/zms/zpt/ZMSFilterManager/manage_main.zpt b/Products/zms/zpt/ZMSFilterManager/manage_main.zpt index 99bb154b3..862cf3dbd 100644 --- a/Products/zms/zpt/ZMSFilterManager/manage_main.zpt +++ b/Products/zms/zpt/ZMSFilterManager/manage_main.zpt @@ -51,7 +51,7 @@
-
+
@@ -111,8 +111,8 @@
- Process - + Process Sequence +
@@ -130,15 +130,15 @@ - + - +
- + - {trans} + {trans} @@ -151,8 +151,13 @@
+ + + +