SVN: r20326 - trunk/quixote
akuchlin-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected] Tue, 21 Jan 2003 14:12:04 -0500
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: akuchlin
Date: 2003-01-21 14:12:03 -0500 (Tue, 21 Jan 2003)
New Revision: 20326
Modified:
trunk/quixote/publish.py
Log:
Add _q_resolve hook
Modified: trunk/quixote/publish.py
==============================================================================
--- trunk/quixote/publish.py (original)
+++ trunk/quixote/publish.py 2003-01-21 14:12:04.000000000 -0500
@@ -470,6 +470,13 @@
# attribute is in _q_exports and exists
object = getattr(container, component)
+ elif hasattr(container, "_q_resolve"):
+ object = container._q_resolve(component)
+ if object is None:
+ raise RuntimeError, ("component %r listed in _q_exports, "
+ "but not returned by _q_resolve()"
+ % component)
+
elif type(container) is types.ModuleType:
# try importing it as a sub-module. If we get an ImportError
# here we don't catch it. It means that something that