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

Christian Zagrodnick cvs-admin at zope.org
Sat Dec 6 13:29:50 EST 2003


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

Modified Files:
      Tag: gotcha-usage-branch
	metaconfigure.py 
Log Message:
finished the support of 'usage' in page templates (or better views)
 - repaired editForm
 - added to addForm
 - added <usage name=.. /> zcml directive
 - directives that rely on usage check for existing usages
 - asserting that a usage can only be defined once
 - tried use of usage in container/add.pt



=== Zope3/src/zope/app/component/metaconfigure.py 1.20 => 1.20.2.1 ===
--- Zope3/src/zope/app/component/metaconfigure.py:1.20	Fri Nov 21 12:11:29 2003
+++ Zope3/src/zope/app/component/metaconfigure.py	Sat Dec  6 13:29:19 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