What steps will reproduce the problem?
1.
from guidata.dataset.datatypes import *
from guidata.dataset.dataitems import *
from guidata.userconfig import *
class DS(DataSet):
f = FloatItem('F', 1.0)
ds = DS('')
uc = UserConfig({})
uc.set_application('app','1.0.0')
ds.write_config(uc,'a','b')
What is the expected output? What do you see instead?
Expected to save data set to ini file:
[main]
version = 1.0.0
[a]
b/f = 1.0
but throws exception because UserConfigWriter created in 'write_config' is
missing the function 'write', used by DataItem.serialize
What version of the product are you using? On what operating system?
1.5.1-1 on Windows XP, pythonxy 2.7.3.1
Please provide any additional information below.
This is a workaround
from guidata.userconfigio import UserConfigWriter
UserConfigWriter.write = UserConfigWriter.write_any
Original issue reported on code.google.com by mis...@gmail.com on 15 Jan 2013 at 9:53
Original issue reported on code.google.com by
mis...@gmail.com
on 15 Jan 2013 at 9:53