Posible BUG in NAMED RESOURCES

9 views
Skip to first unread message

fab...@gmail.com

unread,
Mar 30, 2023, 9:20:15 AM3/30/23
to schedulix
Hi,

i'am running schedulix 2.10 and i got this error when working with syncrhonizing resources.
The steps to reproduce the error.

1) Open any resource with usage "SYNCHRONIZING"
2) Select "Job Definitions" tab, and gave the error in image step2.

Anyone is using schedulix 2.10 and have the same error?

Thanks
Fabio

step2.png
step1.png
Message has been deleted

Dieter Stubler

unread,
Apr 3, 2023, 8:43:33 AM4/3/23
to schedulix
Hello Fabio,

I checked and found a fix relating to this problem of June 2022. It should be refleted in current schedulix 2.10 releases.
You can edit .../SDMS/SDMSDesigner/NamedResource/JobDefinitionSelectorRenderer to fix this in the Zope management interface using the following output from gitk:

@@ -62,13 +62,17 @@ else:
     html = html + '</SPAN>'
     html = html + '<IMG src="' + context.Common.Util.MapIcon('readonly') +'" border="0" align="absmiddle">'
 
-if expired_amount == 'NONE':
+if expired_amount in ['NONE', None]:
     expired_amount = ''
     expired_base = ''
+
+if resource_state_mapping in ['NONE', None]:
+    resource_state_mapping = ''
+
 html = html + '&nbsp;</TD><TD width="100%" id="sdms_def" nowrap align="right">&nbsp;' + context.Common.Util.translate(context, amount, context.REQUEST['LANG'])
 html = html + '&nbsp;</TD><TD width="100%" id="sdms_def" align="center" nowrap>&nbsp;' + context.Common.Util.translate(context, keep_mode, context.REQUEST['LANG'])
 html = html + '&nbsp;</TD><TD width="100%" id="sdms_def" align="center" nowrap>&nbsp;' + context.Common.Util.translate(context, is_sticky, context.REQUEST['LANG'])
-html = html + '&nbsp;</TD><TD width="100%" id="sdms_def" nowrap>&nbsp;' + context.Common.Util.translate(context, resource_state_mapping, context.REQUEST['LANG'])
+html = html + '&nbsp;</TD><TD width="100%" id="sdms_def" nowrap>&nbsp;' + resource_state_mapping
 html = html + '&nbsp;</TD><TD width="100%" id="sdms_def" nowrap align="right">&nbsp;' + expired_amount
 html = html + '&nbsp;</TD><TD width="100%" id="sdms_def" nowrap>&nbsp;' + context.Common.Util.translate(context, expired_base, context.REQUEST['LANG'])
 html = html + '&nbsp;</TD><TD width="100%" id="sdms_def" align="center" nowrap align="center">&nbsp;' + context.Common.Util.translate(context, lockmode, context.REQUEST['LANG'])

This should fix your problem.

Regards
Dieter

fab...@gmail.com

unread,
Apr 4, 2023, 9:34:11 AM4/4/23
to schedulix
Thank you Dieter!

It´s working now. 

Reply all
Reply to author
Forward
0 new messages