Are new source drivers pluggable? I'm considering to add Dynamic WebTwain (I did this integration already in another django app.) My question is more oriented to: is there a way to define sources in third party libraries so that I can configure Mayan (through settings) to use it as new source without modifying the "sources" app?
(I'm still reading the source code and the docs, but it seems to me that the sources apps of v4.0.7 does not consider this case:
Code: Select all
... def ready(self): super().ready() DocumentCreateWizardStep.load_modules() DocumentType = apps.get_model( app_label='documents', model_name='DocumentType' ) IMAPEmail = self.get_model(model_name='IMAPEmail') POP3Email = self.get_model(model_name='POP3Email') Source = self.get_model(model_name='Source') SaneScanner = self.get_model(model_name='SaneScanner') StagingFolderSource = self.get_model(model_name='StagingFolderSource') WatchFolderSource = self.get_model(model_name='WatchFolderSource') WebFormSource = self.get_model(model_name='WebFormSource') error_log = ErrorLog(app_config=self) error_log.register_model(model=IMAPEmail) error_log.register_model(model=POP3Email) error_log.register_model(model=SaneScanner) error_log.register_model(model=WatchFolderSource) ...
If not, could this be on the roadmap for a future version? We would / could have some cases of getting documents of external apps / sources (using a search / preview page).
Thanks in advance.