OK, partly solved.
(Always happens in the first 5 minutes after you have posted to a
public forum)
As a hack I added the lines:
from turbogears.database import PackageHub
hub = PackageHub("mymodule")
__connection__ = hub
To the model.py of the external module. This solves the problem for
now, but isn't clean.
How do I 'correctly' monkey-patch setting the connection for a
third-party module?
I have tried doing a
hub = PackageHub("mymodule")
mymodule.model.__connection__ = PackageHub("mymodule")
in the turbogears project model.py, but that does not do the trick.
cheers,
EP