|
@@ -254,17 +254,19 @@ class DataHandler(MlNamedObject):
|
254
|
254
|
return all_handlers[name]
|
255
|
255
|
|
256
|
256
|
# @brief List all datahandlers
|
257
|
|
- # @return
|
|
257
|
+ # @return a dict with, display_name for keys, and a dict for value
|
258
|
258
|
@classmethod
|
259
|
259
|
def list_data_handlers(cls):
|
260
|
260
|
cls.load_base_handlers()
|
261
|
261
|
all_handlers = dict(cls._base_handlers, **cls.__custom_handlers)
|
262
|
262
|
list_dh = dict()
|
263
|
263
|
for hdl in all_handlers:
|
264
|
|
- list_dh[hdl] = (display_name=hdl.display_name, \
|
265
|
|
- help_text=hdl.help_text, nullable=hdl.nullable, \
|
266
|
|
- internal=hdl.internal, immutable=hdl.immutable, \
|
267
|
|
- primary_key=hdl.primary_key, options=self.options_spec)
|
|
264
|
+ list_dh[hdl.display_name] = {'help_text' : hdl.help_text,
|
|
265
|
+ 'nullable' : hdl.nullable, \
|
|
266
|
+ 'internal' : hdl.internal,
|
|
267
|
+ 'immutable' : hdl.immutable, \
|
|
268
|
+ 'primary_key' : hdl.primary_key, \
|
|
269
|
+ 'options' : self.options_spec}
|
268
|
270
|
|
269
|
271
|
return list_dh
|
270
|
272
|
|