[Zope3-checkins] CVS: Zope3/src/zope/app/component - metaconfigure.py:1.21

Godefroid Chapelle cvs-admin at zope.org
Sun Dec 7 05:05:22 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/component
In directory cvs.zope.org:/tmp/cvs-serv5496/app/component

Modified Files:
	metaconfigure.py 
Log Message:
merge gotcha-usage-branch

this finishes support for usage :

top-level variable in page templates
initialized from ZCML

main goal is to use a unique template per skin

now, I should walk all templates that relies on dialog_macros.pt
and convert them to template.pt 




=== Zope3/src/zope/app/component/metaconfigure.py 1.20 => 1.21 ===
--- Zope3/src/zope/app/component/metaconfigure.py:1.20	Fri Nov 21 12:11:29 2003
+++ Zope3/src/zope/app/component/metaconfigure.py	Sun Dec  7 05:04:51 2003
@@ -361,6 +361,14 @@
         args = (Presentation, 'setDefaultSkin', name)
         )
 
+def usage(_context, name):
+
+    _context.action(
+        discriminator = ('usage', name),
+        callable = handler,
+        args = (Presentation, 'defineUsage', name)
+        )
+
 #XXX you will be terminated soon
 def resolveInterface(_context, id):
     interface = interfaceService.queryInterface(id, None)




More information about the Zope3-Checkins mailing list