~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!-- Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
     GNU Affero General Public License version 3 (see the file LICENSE).
-->

<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    xmlns:i18n="http://namespaces.zope.org/i18n"
    i18n_domain="launchpad">
    <include package=".browser"/>
    <include package="lp.app.validators" />
    <include package="lp.app.widgets" />

    <class class="lazr.lifecycle.event.ObjectCreatedEvent">
      <allow interface="lazr.lifecycle.interfaces.IObjectCreatedEvent" />
    </class>

    <class class="lazr.lifecycle.event.ObjectDeletedEvent">
      <allow interface="lazr.lifecycle.interfaces.IObjectDeletedEvent" />
    </class>

    <class class="lazr.lifecycle.event.ObjectModifiedEvent">
      <allow interface="lazr.lifecycle.interfaces.IObjectModifiedEvent" />
    </class>

    <class class="zope.schema.vocabulary.SimpleVocabulary">
      <allow interface="zope.schema.interfaces.IVocabularyTokenized"/>
    </class>

    <class class="zope.schema.vocabulary.SimpleTerm">
      <allow interface="zope.schema.interfaces.ITitledTokenizedTerm"/>
    </class>

    <utility
        factory="lp.app.utilities.celebrities.LaunchpadCelebrities"
        provides="lp.app.interfaces.launchpad.ILaunchpadCelebrities">
    </utility>

    <!-- Configuration related to datetime classes in Launchpad. -->
    <adapter
        for="lp.app.interfaces.launchpad.IHasDateCreated"
        provides="lp.app.interfaces.launchpad.IAging"
        factory="lp.app.model.cdatetime.AgingAdapter" />

    <adapter
        provides="canonical.lazr.interfaces.IObjectPrivacy"
        for="zope.interface.Interface"
        factory="canonical.lazr.privacy.ObjectPrivacy"
        permission="zope.Public"
        />

    <adapter
        provides="lp.app.browser.badge.IHasBadges"
        for="zope.interface.Interface"
        factory="lp.app.browser.badge.HasBadgeBase"
        permission="zope.Public"
        />
</configure>