Dear Nomad,
is it possible to have inherrited EntryData, e.g.:
class Test(EntryData):
'''An test available in the lab.'''
name = Quantity(
type=str,
description='Name of the test used',
a_eln=dict(component='StringEditQuantity'))
class TestTest(Test):
'''An testtest available in the lab.'''
fame = Quantity(
type=str,
description='Name of the fame used',
a_eln=dict(component='StringEditQuantity'))
When doing this it only shows Test in the upload dropdown menue.
If I only want to see the second class i can do this:
class Test(MSection):
'''An test available in the lab.'''
name = Quantity(
type=str,
description='Name of the test used',
a_eln=dict(component='StringEditQuantity'))
class TestTest(EntryData,Test):
'''An testtest available in the lab.'''
fame = Quantity(
type=str,
description='Name of the fame used',
a_eln=dict(component='StringEditQuantity'))
Which is nice and is probably the interesting usecase. But I was confused to see that the grandchild of a EntryData Class is not recognized as an EntryData Class, this seems to be a bug.
Best Micha