[Zope-CVS] CVS: Products3/RotterdamSprint - StandardMacros.py:1.1 configure.zcml:1.7

runyaga runyaga@thisbox.com
Wed, 4 Dec 2002 07:31:19 -0500


Update of /cvs-repository/Products3/RotterdamSprint
In directory cvs.zope.org:/tmp/cvs-serv18982

Modified Files:
	configure.zcml 
Added Files:
	StandardMacros.py 
Log Message:
added StandardMacros to the skin.  This puts a another path
elements in the layer, called 'skin_macros'.  skin_macros
will be the namespace/template we will be overriding.  wew ill
fall back on the original ZMI view_macros/etc. until we have
overridden them all.



=== Added File Products3/RotterdamSprint/StandardMacros.py ===
from Zope.App.ZMI.StandardMacros import StandardMacros as BaseMacros

class StandardMacros(BaseMacros):
    __implements__ = BaseMacros.__implements__
    macro_pages = ('skin_macros', 'view_macros', 'dialog_macros')



=== Products3/RotterdamSprint/configure.zcml 1.6 => 1.7 ===
--- Products3/RotterdamSprint/configure.zcml:1.6	Wed Dec  4 07:22:21 2002
+++ Products3/RotterdamSprint/configure.zcml	Wed Dec  4 07:31:19 2002
@@ -23,7 +23,13 @@
   </browser:view>
 
 <!-- below overrides the standard_macros by Rotterdam Skin -->
-<browser:view name="view_macros"
+<browser:view name="standard_macros"
+              permission="Zope.View"
+              factory=".StandardMacros."
+              layer="rotterdam"
+              allowed_interface="Zope.App.ZMI.StandardMacros.IStandardMacros" />
+
+<browser:view name="skin_macros"
               permission="Zope.View"
               layer="rotterdam"
               template="template.pt" />