Advertisement
Guest User

my_package/configure.zcml

a guest
Jan 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.44 KB | None | 0 0
  1. <configure
  2.    xmlns="http://namespaces.zope.org/zope"
  3.    xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
  4.    xmlns:i18n="http://namespaces.zope.org/i18n"
  5.    xmlns:plone="http://namespaces.plone.org/plone"
  6.    i18n_domain="test.package">
  7.  
  8.   <i18n:registerTranslations directory="locales" />
  9.  
  10.   <!--
  11.    Be careful if you use general includeDependencies, it can have sideffects!
  12.    Better import explicite packages or configurations ;)
  13.  -->
  14.   <!--<includeDependencies package="." />-->
  15.  
  16.   <include package=".browser" />
  17.  
  18.   <include file="permissions.zcml" />
  19.  
  20.   <include file="upgrades.zcml" />
  21.  
  22.   <genericsetup:registerProfile
  23.      name="default"
  24.      title="test.package"
  25.      directory="profiles/default"
  26.      description="Installs the test.package add-on."
  27.      provides="Products.GenericSetup.interfaces.EXTENSION"
  28.      post_handler=".setuphandlers.post_install"
  29.      />
  30.  
  31.   <genericsetup:registerProfile
  32.      name="uninstall"
  33.      title="test.package (uninstall)"
  34.      directory="profiles/uninstall"
  35.      description="Uninstalls the test.package add-on."
  36.      provides="Products.GenericSetup.interfaces.EXTENSION"
  37.      post_handler=".setuphandlers.uninstall"
  38.      />
  39.  
  40.   <utility
  41.      factory=".setuphandlers.HiddenProfiles"
  42.      name="test.package-hiddenprofiles"
  43.      />
  44.   <!-- -*- extra stuff goes here -*- -->
  45.  
  46.     <include package=".vocabularies" />
  47.  
  48.        
  49.      
  50. </configure>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement