ztfy/utils/timezone/configure.zcml
branchZTK-1.1
changeset 149 738abc5935c9
parent 148 d3668ecd9137
child 150 3b6ce9aacac2
equal deleted inserted replaced
148:d3668ecd9137 149:738abc5935c9
     1 <configure
       
     2 	xmlns="http://namespaces.zope.org/zope"
       
     3 	xmlns:browser="http://namespaces.zope.org/browser"
       
     4 	i18n_domain="ztfy.utils">
       
     5 
       
     6 	<adapter
       
     7 		factory=".tzinfo" />
       
     8 
       
     9 	<utility
       
    10 		name="ZTFY timezones"
       
    11 		component=".schema.TimezonesVocabulary" />
       
    12 
       
    13 	<class class=".utility.ServerTimezoneUtility">
       
    14 		<factory
       
    15 			id="ztfy.utils.timezone.ServerTimezone" />
       
    16 		<implements
       
    17 			interface="zope.annotation.interfaces.IAttributeAnnotatable" />
       
    18 		<require
       
    19 			interface=".interfaces.IServerTimezone"
       
    20 			permission="zope.View" />
       
    21 		<require
       
    22 			set_schema=".interfaces.IServerTimezone"
       
    23 			permission="zope.ManageServices" />
       
    24 	</class>
       
    25 
       
    26 	<browser:addMenuItem
       
    27 		title="ZTFY server timezone"
       
    28 		description="A server timezone utility is used to define default server timezone"
       
    29 		class=".utility.ServerTimezoneUtility"
       
    30 		permission="zope.ManageSite" />
       
    31 
       
    32 	<browser:editform
       
    33 		name="properties.html"
       
    34 		for=".interfaces.IServerTimezone"
       
    35 		schema=".interfaces.IServerTimezone"
       
    36 		permission="zope.ManageSite"
       
    37 		menu="zmi_views" title="Properties" />
       
    38 
       
    39 </configure>