[Zope3-checkins] SVN: Zope3/branches/philikon-simplify-skinning/src/zope/app/component/meta Optional 'name' parameter for <interface />. No tests yet.

Philipp von Weitershausen philikon at philikon.de
Sat Feb 18 07:44:50 EST 2006


Log message for revision 41659:
  Optional 'name' parameter for <interface />.  No tests yet.
  

Changed:
  U   Zope3/branches/philikon-simplify-skinning/src/zope/app/component/metaconfigure.py
  U   Zope3/branches/philikon-simplify-skinning/src/zope/app/component/metadirectives.py

-=-
Modified: Zope3/branches/philikon-simplify-skinning/src/zope/app/component/metaconfigure.py
===================================================================
--- Zope3/branches/philikon-simplify-skinning/src/zope/app/component/metaconfigure.py	2006-02-18 12:10:20 UTC (rev 41658)
+++ Zope3/branches/philikon-simplify-skinning/src/zope/app/component/metaconfigure.py	2006-02-18 12:44:49 UTC (rev 41659)
@@ -42,11 +42,11 @@
     method(*args, **kwargs)
 
 from zope.app.component.interface import provideInterface
-def interface(_context, interface, type=None):
+def interface(_context, interface, type=None, name=''):
     _context.action(
         discriminator = None,
         callable = provideInterface,
-        args = ('', interface, type)
+        args = (name, interface, type)
         )
 
 

Modified: Zope3/branches/philikon-simplify-skinning/src/zope/app/component/metadirectives.py
===================================================================
--- Zope3/branches/philikon-simplify-skinning/src/zope/app/component/metadirectives.py	2006-02-18 12:10:20 UTC (rev 41658)
+++ Zope3/branches/philikon-simplify-skinning/src/zope/app/component/metadirectives.py	2006-02-18 12:44:49 UTC (rev 41659)
@@ -161,6 +161,11 @@
         required=False,
         )
 
+    name = zope.schema.TextLine(
+        title=_("Name"),
+        required=False,
+        )
+
 class IAdapterDirective(zope.interface.Interface):
     """
     Register an adapter



More information about the Zope3-Checkins mailing list