~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/extensions/answersbugs/configure.zcml

  • Committer: Francis J. Lacoste
  • Date: 2009-03-14 01:40:44 UTC
  • mto: This revision was merged to the branch mainline in revision 8007.
  • Revision ID: francis.lacoste@canonical.com-20090314014044-v2kj19v230gk4109
Moved ZCML, templates and adapters. Split out karma and notifications.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<configure
 
2
  xmlns="http://namespaces.zope.org/zope"
 
3
  xmlns:browser="http://namespaces.zope.org/browser"
 
4
  xmlns:i18n="http://namespaces.zope.org/i18n"
 
5
  i18n_domain="launchpad">
 
6
<facet facet="answers">
 
7
 
 
8
<subscriber
 
9
   for="canonical.launchpad.interfaces.IBugTask
 
10
        lazr.lifecycle.interfaces.IObjectModifiedEvent"
 
11
   handler=".notification.dispatch_linked_question_notifications"
 
12
   />
 
13
 
 
14
  <class class=".database.QuestionBug">
 
15
    <allow interface=".interfaces.IQuestionBug"/>
 
16
  </class>
 
17
 
 
18
    <subscriber
 
19
        for=".interfaces.IQuestionBug
 
20
             lazr.lifecycle.interfaces.IObjectCreatedEvent"
 
21
        handler=".karma.question_bug_added"
 
22
        />
 
23
 
 
24
  <browser:page
 
25
    name="+makebug"
 
26
    for="lp.apps.answers.interfaces.question.IQuestion"
 
27
    class=".browser.QuestionMakeBugView"
 
28
    permission="launchpad.AnyPerson"
 
29
    template="templates/question-makebug.pt"
 
30
    />
 
31
 
 
32
  <browser:page
 
33
    name="+linkbug"
 
34
    for="lp.apps.answers.interfaces.question.IQuestion"
 
35
    class="canonical.launchpad.browser.buglinktarget.BugLinkView"
 
36
    permission="launchpad.AnyPerson"
 
37
    template="templates/question-linkbug.pt"
 
38
    />
 
39
 
 
40
  <browser:page
 
41
    name="+unlinkbug"
 
42
    for="lp.apps.answers.interfaces.question.IQuestion"
 
43
    class="canonical.launchpad.browser.buglinktarget.BugsUnlinkView"
 
44
    permission="launchpad.AnyPerson"
 
45
    template="templates/question-unlinkbugs.pt"
 
46
    />
 
47
 
 
48
</facet>
 
49
</configure>