Skip to content

Commit

Permalink
Changed subscribers to be handlers, meaning that most event handlers
Browse files Browse the repository at this point in the history
are now just simple handler functions.
  • Loading branch information
Jim Fulton committed May 26, 2004
1 parent dee3def commit 9bb515c
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions configure.zcml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<configure xmlns="http://namespaces.zope.org/zope">

<serviceType
id="Utilities"
interface="zope.component.interfaces.IUtilityService" />

<service
serviceType="Utilities"
permission="zope.Public"
factory="zope.component.utility.GlobalUtilityService" />

<serviceType
id="Adapters"
interface="zope.component.interfaces.IAdapterService" />

<service
serviceType="Adapters"
permission="zope.Public"
factory="zope.component.adapter.GlobalAdapterService" />

<serviceType
id="Presentation"
interface="zope.component.interfaces.IPresentationService" />

<service
serviceType="Presentation"
permission="zope.Public"
factory="zope.component.presentation.GlobalPresentationService" />

<vocabulary
name="Interfaces"
factory="zope.app.utility.vocabulary.UtilityVocabulary"
interface="zope.interface.interfaces.IInterface" />

<hook
module="zope.component"
name="getServices"
implementation="zope.app.component.hooks.getServices_hook" />

<hook
module="zope.component"
name="queryView"
implementation="zope.app.component.hooks.queryView" />

<interface interface="zope.interface.Interface" />

<adapter
factory=".localservice.serviceServiceAdapter"
provides="zope.component.IServiceService"
for="zope.interface.Interface" />

<subscriber
factory=".localservice.threadSiteSubscriber"
for="zope.app.publication.interfaces.IBeforeTraverseEvent"
/>

<subscriber
factory==".localservice.clearThreadSiteSubscriber"
for="zope.app.publication.interfaces.IEndRequestEvent"
/>

</configure>


0 comments on commit 9bb515c

Please sign in to comment.