I am currently working with the module script "test.py" with func-0.24-1.fc10.noarch.
And I am unable to save options either in the object and in the configuration file.
In the object :
func "localhost.localdomain" call test configfoo
{'localhost.localdomain': {'__opt165888972': '2',
'__opt165889036': '"this is a string"',
'__opt165889068': 37,
'__opt165889100': True,
'__opt165889132': 3.1415899999999999,
'_section': 'main',
'cfg': {'_defaults': {},
'_sections': {'main': {'__name__': 'main',
'bool_option': '1',
'example': '2',
'float_option': '3.14159',
'int_option': '37',
'string_option': '"this is a string"',
'testvalue': '100'}}}}}
{'localhost.localdomain': {'__opt165888972': '2',
'__opt165889036': '"this is a string"',
'__opt165889068': 37,
'__opt165889100': True,
'__opt165889132': 3.1415899999999999,
'_section': 'main',
'cfg': {'_defaults': {},
'_sections': {'main': {'__name__': 'main',
'bool_option': '1',
'example': '2',
'float_option': '3.14159',
'int_option': '37',
'string_option': '"this is a string"',
'testvalue': '100'}}}}}
func "localhost.localdomain" call test config_set example '4'
{'localhost.localdomain': {'__opt165888972': '4',
'__opt165889036': '"this is a string"',
'__opt165889068': 37,
'__opt165889100': True,
'__opt165889132': 3.1415899999999999,
'_section': 'main',
'cfg': {'_defaults': {},
'_sections': {'main': {'__name__': 'main',
'bool_option': '1',
'example': '4',
'float_option': '3.14159',
'int_option': '37',
'string_option': '"this is a string"',
'testvalue': '100'}}}}}
'__opt165889036': '"this is a string"',
'__opt165889068': 37,
'__opt165889100': True,
'__opt165889132': 3.1415899999999999,
'_section': 'main',
'cfg': {'_defaults': {},
'_sections': {'main': {'__name__': 'main',
'bool_option': '1',
'example': '4',
'float_option': '3.14159',
'int_option': '37',
'string_option': '"this is a string"',
'testvalue': '100'}}}}}
func "localhost.localdomain" call test configfoo
{'localhost.localdomain': {'__opt165888972': '2',
'__opt165889036': '"this is a string"',
'__opt165889068': 37,
'__opt165889100': True,
'__opt165889132': 3.1415899999999999,
'_section': 'main',
'cfg': {'_defaults': {},
'_sections': {'main': {'__name__': 'main',
'bool_option': '1',
'example': '2',
'float_option': '3.14159',
'int_option': '37',
'string_option': '"this is a string"',
'testvalue': '100'}}}}}
{'localhost.localdomain': {'__opt165888972': '2',
'__opt165889036': '"this is a string"',
'__opt165889068': 37,
'__opt165889100': True,
'__opt165889132': 3.1415899999999999,
'_section': 'main',
'cfg': {'_defaults': {},
'_sections': {'main': {'__name__': 'main',
'bool_option': '1',
'example': '2',
'float_option': '3.14159',
'int_option': '37',
'string_option': '"this is a string"',
'testvalue': '100'}}}}}
In the configuration file :
func "localhost.localdomain" call test configfoo
{'localhost.localdomain': {'__opt165888972': '2',
'__opt165889036': '"this is a string"',
'__opt165889068': 37,
'__opt165889100': True,
'__opt165889132': 3.1415899999999999,
'_section': 'main',
'cfg': {'_defaults': {},
'_sections': {'main': {'__name__': 'main',
'bool_option': '1',
'example': '2',
'float_option': '3.14159',
'int_option': '37',
'string_option': '"this is a string"',
'testvalue': '100'}}}}}
func "localhost.localdomain" call test config_set example '4'
{'localhost.localdomain': {'__opt165888972': '4',
'__opt165889036': '"this is a string"',
'__opt165889068': 37,
'__opt165889100': True,
'__opt165889132': 3.1415899999999999,
'_section': 'main',
'cfg': {'_defaults': {},
'_sections': {'main': {'__name__': 'main',
'bool_option': '1',
'example': '4',
'float_option': '3.14159',
'int_option': '37',
'string_option': '"this is a string"',
'testvalue': '100'}}}}}
func "localhost.localdomain" call test config_save
{'localhost.localdomain': {'__opt165888972': '2',
'__opt165889036': '"this is a string"',
'__opt165889068': 37,
'__opt165889100': True,
'__opt165889132': 3.1415899999999999,
'_section': 'main',
'cfg': {'_defaults': {},
'_sections': {'main': {'__name__': 'main',
'bool_option': '1',
'example': '2',
'float_option': '3.14159',
'int_option': '37',
'string_option': '"this is a string"',
'testvalue': '100'}}}}}
func "localhost.localdomain" call test configfoo
{'localhost.localdomain': {'__opt165888972': '2',
'__opt165889036': '"this is a string"',
'__opt165889068': 37,
'__opt165889100': True,
'__opt165889132': 3.1415899999999999,
'_section': 'main',
'cfg': {'_defaults': {},
'_sections': {'main': {'__name__': 'main',
'bool_option': '1',
'example': '2',
'float_option': '3.14159',
'int_option': '37',
'string_option': '"this is a string"',
'testvalue': '100'}}}}}
{'localhost.localdomain': {'__opt165888972': '2',
'__opt165889036': '"this is a string"',
'__opt165889068': 37,
'__opt165889100': True,
'__opt165889132': 3.1415899999999999,
'_section': 'main',
'cfg': {'_defaults': {},
'_sections': {'main': {'__name__': 'main',
'bool_option': '1',
'example': '2',
'float_option': '3.14159',
'int_option': '37',
'string_option': '"this is a string"',
'testvalue': '100'}}}}}
func "localhost.localdomain" call test config_set example '4'
{'localhost.localdomain': {'__opt165888972': '4',
'__opt165889036': '"this is a string"',
'__opt165889068': 37,
'__opt165889100': True,
'__opt165889132': 3.1415899999999999,
'_section': 'main',
'cfg': {'_defaults': {},
'_sections': {'main': {'__name__': 'main',
'bool_option': '1',
'example': '4',
'float_option': '3.14159',
'int_option': '37',
'string_option': '"this is a string"',
'testvalue': '100'}}}}}
func "localhost.localdomain" call test config_save
{'localhost.localdomain': {'__opt165888972': '2',
'__opt165889036': '"this is a string"',
'__opt165889068': 37,
'__opt165889100': True,
'__opt165889132': 3.1415899999999999,
'_section': 'main',
'cfg': {'_defaults': {},
'_sections': {'main': {'__name__': 'main',
'bool_option': '1',
'example': '2',
'float_option': '3.14159',
'int_option': '37',
'string_option': '"this is a string"',
'testvalue': '100'}}}}}
func "localhost.localdomain" call test configfoo
{'localhost.localdomain': {'__opt165888972': '2',
'__opt165889036': '"this is a string"',
'__opt165889068': 37,
'__opt165889100': True,
'__opt165889132': 3.1415899999999999,
'_section': 'main',
'cfg': {'_defaults': {},
'_sections': {'main': {'__name__': 'main',
'bool_option': '1',
'example': '2',
'float_option': '3.14159',
'int_option': '37',
'string_option': '"this is a string"',
'testvalue': '100'}}}}}
If someone could tell me how to save option in the object as well as in the configuration file, I would appreciate.
Thanks in advance for your help.
BR
Fred
-----------------------------------------------------
Fedora-ambassadors-list mailing list
Fedora-ambassadors-list@xxxxxxxxxx
_______________________________________________ Func-list mailing list Func-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/func-list