Author: jmorliaguet
Date: Tue May  2 12:32:57 2006
New Revision: 3021

Modified:
   cpsskins/branches/paris-sprint-2006/setup/io.py
   cpsskins/branches/paris-sprint-2006/setup/manager.py
   cpsskins/branches/paris-sprint-2006/setup/registration.py
   cpsskins/branches/paris-sprint-2006/setup/utils.py
   cpsskins/branches/paris-sprint-2006/standard/io/setting.py
   cpsskins/branches/paris-sprint-2006/standard/io/style.py
Log:

- cleanup, removed unused imports



Modified: cpsskins/branches/paris-sprint-2006/setup/io.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/setup/io.py     (original)
+++ cpsskins/branches/paris-sprint-2006/setup/io.py     Tue May  2 12:32:57 2006
@@ -23,16 +23,14 @@
 
 import zope.schema
 
-from zope.component import adapts, getMultiAdapter, getUtilitiesFor
+from zope.component import adapts, getMultiAdapter
 from zope.component import createObject
-from zope.component.interfaces import ComponentLookupError
 from zope.interface import implements, Interface
 from zope.app.container.interfaces import IItemContainer, INameChooser
 
 from cpsskins.relations.interfaces import IRelatable
-from cpsskins.setup.interfaces import IDOMAdapter, IIdentifiable, IType
-from cpsskins.setup.interfaces import IDOMAdapter, IIdentifiable
-from cpsskins.storage.storage import IStorage
+from cpsskins.setup.interfaces import IDOMAdapter, IType
+from cpsskins.storage.interfaces import IStorage
 
 logger = logging.getLogger("cpsskins")
 
@@ -185,7 +183,7 @@
                 name = INameChooser(context).chooseName(contentname, element)
                 context[name] = element
 
-            #a
+            # load data into the object
             importer = getMultiAdapter((element, child_el), IDOMAdapter)
             importer.clone(self)
             importer.updateURIMapping()

Modified: cpsskins/branches/paris-sprint-2006/setup/manager.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/setup/manager.py        (original)
+++ cpsskins/branches/paris-sprint-2006/setup/manager.py        Tue May  2 
12:32:57 2006
@@ -22,14 +22,12 @@
 from zope.app.container.interfaces import INameChooser
 from zope.interface import implements
 from zope.component import getGlobalSiteManager
-from zope.component import providedBy
 
-from cpsskins.setup.interfaces import IIdentifiable, IType
+from cpsskins.setup.interfaces import IIdentifiable
 from cpsskins.setup.interfaces import IResourceManager, IResource
 from cpsskins.setup.interfaces import ISetting, IGlobalSetting, ILocalSetting
 from cpsskins.setup.setting import GlobalSetting, LocalSetting
-from cpsskins.setup.utils import getType, getTypeName, getContentType
-from cpsskins.relations.interfaces import IRelatable
+from cpsskins.setup.utils import getContentType
 from cpsskins.utils import getThemeManager
 
 class ResourceManager(object):

Modified: cpsskins/branches/paris-sprint-2006/setup/registration.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/setup/registration.py   (original)
+++ cpsskins/branches/paris-sprint-2006/setup/registration.py   Tue May  2 
12:32:57 2006
@@ -25,12 +25,9 @@
 from xml.dom.minidom import parse
 from xml.parsers.expat import ExpatError
 
-from zope.component import getUtility, queryUtility, createObject
-from zope.component import getGlobalSiteManager, getMultiAdapter
+from zope.component import getUtility, createObject
 
-from cpsskins.relations.interfaces import IRelatable
-from cpsskins.setup.interfaces import IResourceManager, IDOMAdapter
-from cpsskins.setup.interfaces import ISetting, IResource
+from cpsskins.setup.interfaces import IResourceManager, IResource
 
 logger = logging.getLogger("cpsskins")
 
@@ -74,7 +71,7 @@
 
     resource_defs = setting_def.getElementsByTagName('*')
     if not resource_defs:
-        logger.debug("no resource found for %s" % uri)
+        logger.debug("no resource found for %s" % name)
         return None
 
     resource_def = resource_defs[0]

Modified: cpsskins/branches/paris-sprint-2006/setup/utils.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/setup/utils.py  (original)
+++ cpsskins/branches/paris-sprint-2006/setup/utils.py  Tue May  2 12:32:57 2006
@@ -17,7 +17,6 @@
 """
 __docformat__ = "reStructuredText"
 
-import re
 import time
 import logging
 

Modified: cpsskins/branches/paris-sprint-2006/standard/io/setting.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/standard/io/setting.py  (original)
+++ cpsskins/branches/paris-sprint-2006/standard/io/setting.py  Tue May  2 
12:32:57 2006
@@ -20,10 +20,8 @@
 from zope.component import getMultiAdapter
 from zope.interface import implements
 
-from cpsskins.setup.interfaces import IResource, IDOMAdapter, IIdentifiable
-from cpsskins.setup.interfaces import IType
+from cpsskins.setup.interfaces import IResource, IDOMAdapter, IType
 from cpsskins.setup.io import BaseDOMAdapter
-from cpsskins.relations.interfaces import IRelatable
 
 class DOMAdapter(BaseDOMAdapter):
     """DOM adapter for settings

Modified: cpsskins/branches/paris-sprint-2006/standard/io/style.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/standard/io/style.py    (original)
+++ cpsskins/branches/paris-sprint-2006/standard/io/style.py    Tue May  2 
12:32:57 2006
@@ -19,7 +19,7 @@
 
 from zope.interface import implements
 
-from cpsskins.setup.interfaces import IDOMAdapter, IIdentifiable, IType
+from cpsskins.setup.interfaces import IDOMAdapter
 from cpsskins.setup.io import BaseDOMAdapter
 from cpsskins.relations.interfaces import IRelatable
 
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to