[Zope-Checkins] SVN: Zope/trunk/ merge r107529 from Zope 2.12

David Glick davidglick at onenw.org
Fri Jan 1 22:54:08 EST 2010


Log message for revision 107530:
  merge r107529 from Zope 2.12

Changed:
  U   Zope/trunk/doc/CHANGES.rst
  U   Zope/trunk/src/OFS/ObjectManager.py

-=-
Modified: Zope/trunk/doc/CHANGES.rst
===================================================================
--- Zope/trunk/doc/CHANGES.rst	2010-01-02 03:43:32 UTC (rev 107529)
+++ Zope/trunk/doc/CHANGES.rst	2010-01-02 03:54:08 UTC (rev 107530)
@@ -122,6 +122,10 @@
 Bugs Fixed
 ++++++++++
 
+- Also look for ZEXP imports within the clienthome directory. This
+  provides a place to put imports that won't be clobbered by buildout
+  in a buildout-based Zope instance.
+
 - LP #143444: add labels to checkboxes / radio buttons on import / export
   form.
 

Modified: Zope/trunk/src/OFS/ObjectManager.py
===================================================================
--- Zope/trunk/src/OFS/ObjectManager.py	2010-01-02 03:43:32 UTC (rev 107529)
+++ Zope/trunk/src/OFS/ObjectManager.py	2010-01-02 03:54:08 UTC (rev 107530)
@@ -617,7 +617,6 @@
         if dirname:
             raise BadRequest, 'Invalid file name %s' % escape(file)
 
-        cfg = getConfiguration()
         for impath in self._getImportPaths():
             filepath = os.path.join(impath, 'import', file)
             if os.path.exists(filepath):
@@ -663,6 +662,8 @@
             paths.append(zopehome)
         if not cfg.instancehome in paths:
             paths.append(cfg.instancehome)
+        if not cfg.clienthome in paths:
+            paths.append(cfg.clienthome)
         return paths
 
     def list_imports(self):



More information about the Zope-Checkins mailing list