def _get_id(self, obj):

        if obj is None:
            id = 'None'

        else:
            id = obj.id

        return id
Register task_class with the collection
dataset/ETHPy150Open enthought/pyface/pyface/workbench/debug/debug_view.py/DebugViewModel._get_id--crossover with--dataset/ETHPy150Open facebook/sparts/sparts/vtask.py/Tasks.register