src/pyams_security/configure.zcml
changeset 0 f04e1d0a0723
child 41 905e30f5467b
equal deleted inserted replaced
-1:000000000000 0:f04e1d0a0723
       
     1 <configure
       
     2 	xmlns="http://pylonshq.com/pyramid"
       
     3 	xmlns:i18n="http://namespaces.zope.org/i18n"
       
     4 	xmlns:zcml="http://namespaces.zope.org/zcml">
       
     5 
       
     6 	<include package="pyramid_zcml" />
       
     7 	<include package="zope.component" file="meta.zcml" />
       
     8 	<include package="zope.i18n" file="meta.zcml" />
       
     9 
       
    10 	<i18n:registerTranslations directory="locales" />
       
    11 
       
    12 
       
    13 	<!-- Zope password registrations -->
       
    14 	<configure zcml:condition="installed zope.password">
       
    15 
       
    16 		<utility
       
    17 			name="Plain Text"
       
    18 			provides="zope.password.interfaces.IPasswordManager"
       
    19 			factory="zope.password.password.PlainTextPasswordManager" />
       
    20 
       
    21 		<utility
       
    22 			name="MD5"
       
    23 			provides="zope.password.interfaces.IPasswordManager"
       
    24 			factory="zope.password.password.MD5PasswordManager" />
       
    25 
       
    26 		<utility
       
    27 			name="SHA1"
       
    28 			provides="zope.password.interfaces.IPasswordManager"
       
    29 			factory="zope.password.password.SHA1PasswordManager" />
       
    30 
       
    31 		<utility
       
    32 			name="SSHA"
       
    33 			provides="zope.password.interfaces.IPasswordManager"
       
    34 			factory="zope.password.password.SSHAPasswordManager" />
       
    35 
       
    36 	</configure>
       
    37 
       
    38 
       
    39 	<!-- ZMI package -->
       
    40 	<configure zcml:condition="installed pyams_zmi">
       
    41 		<include package=".zmi" />
       
    42 	</configure>
       
    43 
       
    44 </configure>