SVN: r20330 - trunk/quixote

akuchlin-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected] Tue, 21 Jan 2003 15:21:26 -0500
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Author: akuchlin
Date: 2003-01-21 15:21:24 -0500 (Tue, 21 Jan 2003)
New Revision: 20330

Modified:
   trunk/quixote/publish.py
Log:
Memoize the return value from _q_resolve

Modified: trunk/quixote/publish.py
==============================================================================
--- trunk/quixote/publish.py	(original)
+++ trunk/quixote/publish.py	2003-01-21 15:21:26.000000000 -0500
@@ -476,6 +476,9 @@
                 raise RuntimeError, ("component %r listed in _q_exports, "
                                      "but not returned by _q_resolve()"
                                      % component)
+            else:
+                # Set the object, so _q_resolve won't need to be called again.
+                setattr(container, component, object)
 
         elif type(container) is types.ModuleType:
             # try importing it as a sub-module.  If we get an ImportError