pass empty strings from python to C
when the strings are absent then the C code generates a
python 'index not found' exception and a python log trace
entry.
@@ -228,10 +228,10 @@ class PolicyCompiler(object):
policy_out[PolicyKeys.KW_ALLOW_DYNAMIC_SRC] = False
policy_out[PolicyKeys.KW_ALLOW_ANONYMOUS_SENDER] = False
policy_out[PolicyKeys.KW_ALLOW_USERID_PROXY] = False
- #policy_out[PolicyKeys.KW_SOURCES] = None
- #policy_out[PolicyKeys.KW_TARGETS] = None
- #policy_out[PolicyKeys.KW_SOURCE_PATTERN] = None
- #policy_out[PolicyKeys.KW_TARGET_PATTERN] = None
+ policy_out[PolicyKeys.KW_SOURCES] = ''
+ policy_out[PolicyKeys.KW_TARGETS] = ''
+ policy_out[PolicyKeys.KW_SOURCE_PATTERN] = ''
+ policy_out[PolicyKeys.KW_TARGET_PATTERN] = ''
cerror = []
user_sources = False
