From 34c1795630e9c414bbdbe4629cdcc97441412fcd Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Tue, 14 Jul 2020 19:55:20 +0200 Subject: [PATCH] Support for long in CRL/overlay.Configuration.__setattr__(). --- crlcore/python/helpers/overlay.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crlcore/python/helpers/overlay.py b/crlcore/python/helpers/overlay.py index b59a3877..3ba25cf6 100644 --- a/crlcore/python/helpers/overlay.py +++ b/crlcore/python/helpers/overlay.py @@ -62,6 +62,8 @@ class Configuration: Cfg.getParamEnumerate(attr).setInt( val ) else: Cfg.getParamInt(attr).setInt( val ) + elif isinstance(val, long): + p = Cfg.getParamInt( attr ) # all params have a type elif isinstance(val, float): p = Cfg.getParamDouble( attr ).setDouble( val ) elif '%' in val: