130 |
j = 1 |
j = 1 |
131 |
for fieldName in self._fieldlist: |
for fieldName in self._fieldlist: |
132 |
value = i[j] |
value = i[j] |
133 |
|
|
134 |
|
# convert Strings to unicode |
135 |
if type(value) == types.StringType: |
if type(value) == types.StringType: |
136 |
if not self._dataCon._unicodeMode: |
value = value.decode('utf-8') |
137 |
value = value.decode('utf-8').encode(gConfig('textEncoding')) |
|
138 |
else: |
# recode unicode strings to standart encoding |
139 |
value = value.decode('utf-8') |
if (type(value) == types.UnicodeType) and \ |
140 |
|
(not self._dataCon._unicodeMode): |
141 |
|
value = value.encode(gConfig('textEncoding')) |
142 |
|
|
143 |
dict[fieldName] = value |
dict[fieldName] = value |
144 |
j=j+1 |
j=j+1 |
145 |
|
|
146 |
dict["gnue_id"]=i[0] |
dict["gnue_id"]=i[0] |