src/ztfy/utils/browser/configure.zcml
branchZTK-1.1
changeset 250 16a535e0eb92
parent 202 00845ce1f3b4
equal deleted inserted replaced
249:650534afe60d 250:16a535e0eb92
     1 <configure
     1 <configure
     2 	xmlns="http://namespaces.zope.org/zope"
     2 	xmlns="http://namespaces.zope.org/zope"
     3 	xmlns:browser="http://namespaces.zope.org/browser"
     3 	xmlns:browser="http://namespaces.zope.org/browser"
     4 	xmlns:z3c="http://namespaces.zope.org/z3c"
     4 	xmlns:z3c="http://namespaces.zope.org/z3c"
       
     5 	xmlns:zcml="http://namespaces.zope.org/zcml"
     5 	i18n_domain="ztfy.i18n">
     6 	i18n_domain="ztfy.i18n">
     6 
     7 
     7 	<!-- ZEO connection views -->
     8 	<!-- ZEO connection views -->
     8 	<browser:addMenuItem
     9 	<browser:addMenuItem
     9 		title="ZEO connection"
    10 		title="ZEO connection"
    10 		description="A simple utility used to store ZEO connection settings"
    11 		description="A simple utility used to store ZEO connection settings"
    11 		class="..zodb.ZEOConnectionUtility"
    12 		class="..zodb.ZEOConnectionUtility"
    12 		permission="zope.ManageServices" />
    13 		permission="zope.ManageServices" />
    13 
    14 
    14 	<z3c:pagelet
    15 	<configure zcml:condition="installed ztfy.skin">
    15 		name="properties.html"
    16 		<z3c:pagelet
    16 		for="..interfaces.IZEOConnection"
    17 			name="properties.html"
    17 		class=".zodb.ZEOConnectionEditForm"
    18 			for="..interfaces.IZEOConnection"
    18 		layer="ztfy.skin.layer.IZTFYBrowserLayer"
    19 			class=".zodb.ZEOConnectionEditForm"
    19 		permission="ztfy.ViewManagementScreens" />
    20 			layer="ztfy.skin.layer.IZTFYBrowserLayer"
       
    21 			permission="ztfy.ViewManagementScreens" />
    20 
    22 
    21 	<browser:viewlet
    23 		<browser:viewlet
    22 		name="Properties"
    24 			name="Properties"
    23 		viewURL="@@properties.html"
    25 			viewURL="@@properties.html"
    24 		for="..interfaces.IZEOConnection"
    26 			for="..interfaces.IZEOConnection"
    25 		manager="ztfy.skin.viewlets.actions.interfaces.IActionsViewletManager"
    27 			manager="ztfy.skin.viewlets.actions.interfaces.IActionsViewletManager"
    26 		class="ztfy.skin.menu.PropertiesMenuItem"
    28 			class="ztfy.skin.menu.PropertiesMenuItem"
    27 		permission="ztfy.ViewManagementScreens"
    29 			permission="ztfy.ViewManagementScreens"
    28 		layer="ztfy.skin.layer.IZTFYBackLayer"
    30 			layer="ztfy.skin.layer.IZTFYBackLayer"
    29 		weight="10" />
    31 			weight="10" />
       
    32 	</configure>
    30 
    33 
    31 	<!-- Encoding selection widget -->
    34 	<!-- Encoding selection widget -->
    32 	<adapter factory=".encoding.EncodingSelectFieldWidget" />
    35 	<adapter factory=".encoding.EncodingSelectFieldWidget" />
    33 
    36 
    34 	<class class=".encoding.EncodingSelectWidget">
    37 	<class class=".encoding.EncodingSelectWidget">