I have developed an
improved device driver for PocketBook devices. The device detection work fine with the VENDOR_ID and PRODUCT_ID settings.
Now it turned out that the driver works with other PocketBook devices as well. So I tried to build a base class for the functionality and derived classes for each device like so:
Code:
class POCKETBOOK_IMPROVED(USBMS, PocketBookImprovedDeviceConfig):
...
class POCKETBOOK632(POCKETBOOK_IMPROVED):
name = 'PocketBook 632 device interface'
...
class POCKETBOOK1040(POCKETBOOK_IMPROVED):
name = 'PocketBook 1040 device interface'
...
The device classes POCKETBOOK632, POCKETBOOK1040 are exposed in __init__.py
Now, when I install the zip file only the first class gets registered in Calibre.
It would be nice to have all the different device names be visible in Calibre's device list.
What steps do I need to accomplish this?