[Checkins] SVN: Zope/trunk/src/ - removed unused Globals import

Yvo Schubbe y.2011 at wcm-solutions.de
Mon Mar 7 05:31:11 EST 2011


Log message for revision 120777:
  - removed unused Globals import

Changed:
  UU  Zope/trunk/src/App/Product.py
  U   Zope/trunk/src/OFS/ObjectManager.py

-=-
Modified: Zope/trunk/src/App/Product.py
===================================================================
--- Zope/trunk/src/App/Product.py	2011-03-07 10:26:40 UTC (rev 120776)
+++ Zope/trunk/src/App/Product.py	2011-03-07 10:31:11 UTC (rev 120777)
@@ -7,7 +7,7 @@
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE
+# FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
 """Product objects
@@ -204,8 +204,6 @@
 def initializeProduct(productp, name, home, app):
     # Initialize a persistent product
     assert doInstall()
-
-    import Globals  # to set data
     fver = ''
 
     if hasattr(productp, '__import_error__'):
@@ -289,4 +287,3 @@
 def doInstall():
     from App.config import getConfiguration
     return getConfiguration().enable_product_installation
-


Property changes on: Zope/trunk/src/App/Product.py
___________________________________________________________________
Deleted: svn:keywords
   - Id

Modified: Zope/trunk/src/OFS/ObjectManager.py
===================================================================
--- Zope/trunk/src/OFS/ObjectManager.py	2011-03-07 10:26:40 UTC (rev 120776)
+++ Zope/trunk/src/OFS/ObjectManager.py	2011-03-07 10:31:11 UTC (rev 120777)
@@ -85,8 +85,6 @@
     # only check that the id string contains no illegal chars;
     # check_valid_id() will be called again later with allow_dup
     # set to false before the object is added.
-    import Globals  # for data
-
     if not id or not isinstance(id, str):
         if isinstance(id, unicode):
             id = escape(id)



More information about the checkins mailing list