[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture - metaConfigure.py:1.1.2.10
Jim Fulton
jim@zope.com
Thu, 10 Jan 2002 10:32:22 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv25314
Modified Files:
Tag: Zope-3x-branch
metaConfigure.py
Log Message:
Added skin configuration. We still need a unit test for this. :(
=== Zope3/lib/python/Zope/ComponentArchitecture/metaConfigure.py 1.1.2.9 => 1.1.2.10 ===
from hooks import provideAdapter, provideUtility
-from ViewService import provideView
+from ViewService import provideView, defineSkin
from Zope.Configuration.name import resolve
from Zope.Configuration import namespace
from Service import defineService, provideService
@@ -60,3 +60,7 @@
('service', name),
provideService, (name, component)
)]
+
+def skin(name, layers):
+ layers = [layer.strip() for layer in layers.split(',')]
+ defineSkin(name, layers)