[Checkins] SVN: zope.mimetype/trunk/ no longer depends on zope.app.component.

Alex Smith alex at zope.com
Fri May 22 16:36:05 EDT 2009


Log message for revision 100257:
  
  no longer depends on zope.app.component.
  

Changed:
  U   zope.mimetype/trunk/CHANGES.txt
  U   zope.mimetype/trunk/src/zope/mimetype/zcml.py

-=-
Modified: zope.mimetype/trunk/CHANGES.txt
===================================================================
--- zope.mimetype/trunk/CHANGES.txt	2009-05-22 19:42:38 UTC (rev 100256)
+++ zope.mimetype/trunk/CHANGES.txt	2009-05-22 20:36:05 UTC (rev 100257)
@@ -5,7 +5,7 @@
 1.1.2 (unreleased)
 ------------------
 
-- Nothing changed yet.
+- No longer depends on ``zope.app.component``.
 
 
 1.1.1 (2009-04-03)

Modified: zope.mimetype/trunk/src/zope/mimetype/zcml.py
===================================================================
--- zope.mimetype/trunk/src/zope/mimetype/zcml.py	2009-05-22 19:42:38 UTC (rev 100256)
+++ zope.mimetype/trunk/src/zope/mimetype/zcml.py	2009-05-22 20:36:05 UTC (rev 100257)
@@ -22,12 +22,11 @@
 from zope.mimetype import interfaces
 from zope.mimetype import types
 
+import zope.component.zcml
 import zope.component.interface
 import zope.app.publisher.browser.icon
 
-from zope.app.component import metaconfigure
 
-
 class IMimeTypesDirective(interface.Interface):
     """Request loading of a MIME type definition table.
 
@@ -74,15 +73,15 @@
             # utility for each appropriate MIME type:
             _context.action(
                 discriminator = ('utility', provides, mime_type),
-                callable = metaconfigure.handler,
+                callable = zope.component.zcml.handler,
                 args = ('registerUtility', iface, provides, mime_type),
                 )
         icon = os.path.join(directory, info[3])
         if icon and os.path.isfile(icon):
             zope.app.publisher.browser.icon.IconDirective(
                 _context, "zmi_icon", iface, icon)
-            
 
+
 class ICodecDirective(interface.Interface):
     """Defines a codec.
 



More information about the Checkins mailing list