comparison src/memory/disco.py @ 1416:a419da93afef

core (disco): fixed bad indentation in _discoInfos (used by bridge)
author Goffi <goffi@goffi.org>
date Sat, 18 Apr 2015 00:27:39 +0200
parents 159d16336f87
children c7fd121a6180
comparison
equal deleted inserted replaced
1415:846577ff8b8f 1416:a419da93afef
262 for attr in ('var', 'label', 'desc'): 262 for attr in ('var', 'label', 'desc'):
263 value = getattr(field, attr) 263 value = getattr(field, attr)
264 if value is not None: 264 if value is not None:
265 data[attr] = value 265 data[attr] = value
266 266
267 values = [field.value] if field.value is not None else field.values 267 values = [field.value] if field.value is not None else field.values
268 fields.append((data, values)) 268 fields.append((data, values))
269 269
270 extensions[form_type or ""] = fields 270 extensions[form_type or ""] = fields
271 271
272 defer.returnValue((disco_infos.features, 272 defer.returnValue((disco_infos.features,
273 [(cat, type_, name or '') for (cat, type_), name in disco_infos.identities.items()], 273 [(cat, type_, name or '') for (cat, type_), name in disco_infos.identities.items()],