~launchpad-pqm/launchpad/devel

13155.1.17 by Curtis Hovey
Updated the copyrights in the very old branch.
1
<!-- Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
8687.15.30 by Karl Fogel
Add the license header block to all .zcml files.
2
     GNU Affero General Public License version 3 (see the file LICENSE).
3
-->
4
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
5
<configure
6
    xmlns="http://namespaces.zope.org/zope"
7
    xmlns:browser="http://namespaces.zope.org/browser"
8
    xmlns:i18n="http://namespaces.zope.org/i18n"
11882.3.16 by Jonathan Lange
Move all of the webservice declarations to their appropriate packages.
9
    xmlns:webservice="http://namespaces.canonical.com/webservice"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
10
    xmlns:xmlrpc="http://namespaces.zope.org/xmlrpc"
9164.1.3 by Danilo Šegan
Move bugs help into app.
11
    xmlns:lp="http://namespaces.canonical.com/lp"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
12
    i18n_domain="launchpad">
11388.1.7 by Tim Penhey
Register other layers.
13
11526.1.1 by Gavin Panella
Move bugs-specific security adapters to lp.bugs.security.
14
  <authorizations module=".security" />
15
14435.1.8 by Curtis Hovey
Renamed lp/bugs/vocabulary to vocaularies to be consitent with the other modules.
16
  <include file="vocabularies.zcml"/>
11388.1.7 by Tim Penhey
Register other layers.
17
  <include package=".browser"/>
18
19
  <publisher
20
      name="bugs"
21
      factory="lp.bugs.publisher.bugs_request_publication_factory"/>
22
  <utility
23
      component="lp.bugs.publisher.BugsLayer"
24
      provides="zope.publisher.interfaces.browser.IDefaultBrowserLayer"
25
      name="bugs" />
11128.6.2 by Michael Hudson
move bugs publisher
26
14388.1.1 by William Grant
Rework help. No longer layer-specific, instead under +help-registry, +help-bugs, etc. References not updated.
27
    <lp:help-folder folder="help" name="+help-bugs" />
9164.1.3 by Danilo Šegan
Move bugs help into app.
28
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
29
    <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
30
        class="lp.bugs.model.bugactivity.BugActivity">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
31
        <allow
32
            interface="lp.bugs.interfaces.bugactivity.IBugActivity"/>
33
    </class>
34
    <securedutility
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
35
        class="lp.bugs.model.bugactivity.BugActivitySet"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
36
        provides="lp.bugs.interfaces.bugactivity.IBugActivitySet">
37
        <allow
38
            interface="lp.bugs.interfaces.bugactivity.IBugActivitySet"/>
39
    </securedutility>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
40
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
41
    <!-- Macros -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
42
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
43
        <class
44
            class="lp.bugs.browser.bugcomment.BugComment">
45
            <allow
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
46
                interface="lp.bugs.interfaces.bugmessage.IBugComment"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
47
        </class>
48
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
49
        for="lp.bugs.interfaces.cve.ICve                 zope.lifecycleevent.interfaces.IObjectModifiedEvent"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
50
        handler="lp.bugs.subscribers.cve.cve_modified"/>
51
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
52
        for="lp.bugs.interfaces.bug.IBug                 lazr.lifecycle.interfaces.IObjectCreatedEvent"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
53
        handler="lp.bugs.subscribers.bugcreation.at_least_one_task"/>
54
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
55
        for="lp.bugs.interfaces.bug.IBug                 lazr.lifecycle.interfaces.IObjectCreatedEvent"
14477.2.3 by Curtis Hovey
Moved bug karma subscribers to lp.bugs
56
        handler="lp.bugs.subscribers.karma.bug_created"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
57
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
58
        for="lp.bugs.interfaces.bug.IBug                 lazr.lifecycle.interfaces.IObjectModifiedEvent"
14477.2.3 by Curtis Hovey
Moved bug karma subscribers to lp.bugs
59
        handler="lp.bugs.subscribers.karma.bug_modified"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
60
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
61
        for="lp.bugs.interfaces.bug.IBug                 lazr.lifecycle.interfaces.IObjectModifiedEvent"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
62
        handler="lp.bugs.subscribers.buglastupdated.update_bug_date_last_updated"/>
63
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
64
        for="lp.bugs.interfaces.bugattachment.IBugAttachment                 lazr.lifecycle.interfaces.IObjectCreatedEvent"
11347.14.7 by Gavin Panella
Move notify_bug_comment_added, notify_bug_attachment_added and notify_bug_attachment_removed.
65
        handler="lp.bugs.subscribers.bug.notify_bug_attachment_added"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
66
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
67
        for="lp.bugs.interfaces.bugattachment.IBugAttachment                 lazr.lifecycle.interfaces.IObjectDeletedEvent"
11347.14.7 by Gavin Panella
Move notify_bug_comment_added, notify_bug_attachment_added and notify_bug_attachment_removed.
68
        handler="lp.bugs.subscribers.bug.notify_bug_attachment_removed"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
69
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
70
        for="lp.bugs.interfaces.bugattachment.IBugAttachment                 lazr.lifecycle.interfaces.IObjectCreatedEvent"
71
        handler="lp.bugs.subscribers.buglastupdated.update_bug_date_last_updated"/>
72
    <subscriber
73
        for="lp.bugs.interfaces.bugattachment.IBugAttachment                 lazr.lifecycle.interfaces.IObjectModifiedEvent"
74
        handler="lp.bugs.subscribers.buglastupdated.update_bug_date_last_updated"/>
75
    <subscriber
76
        for="lp.bugs.interfaces.bugbranch.IBugBranch                 lazr.lifecycle.interfaces.IObjectCreatedEvent"
77
        handler="lp.bugs.subscribers.buglastupdated.update_bug_date_last_updated"/>
78
    <subscriber
79
        for="lp.bugs.interfaces.bugbranch.IBugBranch                 lazr.lifecycle.interfaces.IObjectModifiedEvent"
80
        handler="lp.bugs.subscribers.buglastupdated.update_bug_date_last_updated"/>
81
    <subscriber
82
        for="lp.bugs.interfaces.bugcve.IBugCve                 lazr.lifecycle.interfaces.IObjectCreatedEvent"
83
        handler="lp.bugs.subscribers.buglastupdated.update_bug_date_last_updated"/>
84
    <subscriber
85
        for="lp.bugs.interfaces.bugcve.IBugCve                 lazr.lifecycle.interfaces.IObjectCreatedEvent"
14477.2.3 by Curtis Hovey
Moved bug karma subscribers to lp.bugs
86
        handler="lp.bugs.subscribers.karma.cve_added"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
87
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
88
        for="lp.bugs.interfaces.bugmessage.IBugMessage                 lazr.lifecycle.interfaces.IObjectCreatedEvent"
11347.14.7 by Gavin Panella
Move notify_bug_comment_added, notify_bug_attachment_added and notify_bug_attachment_removed.
89
        handler="lp.bugs.subscribers.bug.notify_bug_comment_added"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
90
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
91
        for="lp.bugs.interfaces.bugmessage.IBugMessage                 lazr.lifecycle.interfaces.IObjectCreatedEvent"
14477.2.3 by Curtis Hovey
Moved bug karma subscribers to lp.bugs
92
        handler="lp.bugs.subscribers.karma.bug_comment_added"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
93
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
94
        for="lp.bugs.interfaces.bugmessage.IBugMessage                 lazr.lifecycle.interfaces.IObjectCreatedEvent"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
95
        handler="lp.bugs.subscribers.buglastupdated.update_bug_date_last_updated"/>
96
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
97
        for="lp.bugs.interfaces.bugwatch.IBugWatch                 lazr.lifecycle.interfaces.IObjectCreatedEvent"
14477.2.3 by Curtis Hovey
Moved bug karma subscribers to lp.bugs
98
        handler="lp.bugs.subscribers.karma.bugwatch_added"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
99
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
100
        for="lp.bugs.interfaces.bugwatch.IBugWatch                 lazr.lifecycle.interfaces.IObjectCreatedEvent"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
101
        handler="lp.bugs.subscribers.buglastupdated.update_bug_date_last_updated"/>
102
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
103
        for="lp.bugs.interfaces.bugwatch.IBugWatch                 lazr.lifecycle.interfaces.IObjectModifiedEvent"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
104
        handler="lp.bugs.subscribers.bugactivity.notify_bug_watch_modified"/>
105
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
106
        for="lp.bugs.interfaces.bugwatch.IBugWatch                 lazr.lifecycle.interfaces.IObjectModifiedEvent"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
107
        handler="lp.bugs.subscribers.buglastupdated.update_bug_date_last_updated"/>
108
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
109
        for="lp.bugs.interfaces.bugsubscription.IBugSubscription                 lazr.lifecycle.interfaces.IObjectCreatedEvent"
11347.14.6 by Gavin Panella
Move notify_bug_subscription_added.
110
        handler="lp.bugs.subscribers.bug.notify_bug_subscription_added"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
111
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
112
        for="lp.bugs.interfaces.bug.IBug                 lazr.lifecycle.interfaces.IObjectModifiedEvent"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
113
        handler="lp.bugs.subscribers.bug.notify_bug_modified"/>
114
    <securedutility
14600.1.9 by Curtis Hovey
Moved systemhomes to lp.
115
        class="lp.systemhomes.MaloneApplication"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
116
        provides="lp.bugs.interfaces.malone.IMaloneApplication">
117
        <allow
118
            interface="lp.bugs.interfaces.malone.IMaloneApplication"/>
119
    </securedutility>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
120
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
121
    <!-- pages for the malone application -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
122
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
123
    <xmlrpc:view
124
        for="lp.bugs.interfaces.malone.IMaloneApplication"
125
        methods="filebug"
11882.2.5 by Jonathan Lange
Kill xmlrpc re-exports as well.
126
        class="lp.bugs.xmlrpc.bug.FileBugAPI"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
127
        permission="launchpad.AnyPerson"/>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
128
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
129
    <!-- Global Malone portlets -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
130
131
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
132
    <!-- Preserve the /bugs/assigned link to prevent linkrot. This will now
133
                                 redirect into the FOAF +assignedbugs. -->
134
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
135
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
136
    <!-- BugTrackerPerson -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
137
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
138
    <class
139
        class="lp.bugs.model.bugtrackerperson.BugTrackerPerson">
140
        <allow
141
            interface="lp.bugs.interfaces.bugtrackerperson.IBugTrackerPerson"/>
142
    </class>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
143
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
144
    <!-- CveReference -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
145
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
146
    <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
147
        class="lp.bugs.model.cvereference.CveReference">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
148
        <allow
149
            interface="lp.bugs.interfaces.cvereference.ICveReference"/>
150
        <require
151
            permission="launchpad.AnyPerson"
152
            set_schema="lp.bugs.interfaces.cvereference.ICveReference"/>
153
    </class>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
154
12588.3.26 by Tim Penhey
Move the weight functions into the appropriate model classes.
155
      <class class="lp.bugs.interfaces.bugtaskfilter.OrderedBugTask">
156
        <allow attributes="rank id task"/>
157
      </class>
158
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
159
        <!-- IBugTask -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
160
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
161
        <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
162
            class="lp.bugs.model.bugtask.BugTask">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
163
            <allow
164
                attributes="
165
                    id
12335.1.3 by Robert Collins
Fix some tests that I missed to account for the target preload separate query, and eager load bug assignees *for milestones*.
166
                    assigneeID
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
167
                    bug
168
                    bugID
169
                    target
170
                    date_assigned
171
                    datecreated
172
                    date_confirmed
173
                    date_incomplete
174
                    date_inprogress
175
                    date_left_new
176
                    date_triaged
177
                    date_fix_committed
178
                    date_fix_released
179
                    date_left_closed
180
                    date_closed
12588.3.8 by Tim Penhey
New tests passing, time for more tests.
181
                    distributionID
182
                    distroseriesID
12415.7.3 by Robert Collins
Fix late evaluation of bugtask milestones in bug searches.
183
                    milestoneID
12588.3.8 by Tim Penhey
New tests passing, time for more tests.
184
                    productID
11582.2.2 by Robert Collins
Probably broken, but takes 46 queries off of a baseline BugTask:+index.
185
                    productseriesID
12588.3.18 by Tim Penhey
Tests started for source package contexts.
186
                    sourcepackagenameID
10206.1.1 by Brian Murray
create and export task_age for a bug_task in the API - LP: #510985
187
                    task_age
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
188
                    bug_subscribers
189
                    is_complete
14186.3.2 by Ian Booth
Add tests for delete view
190
                    canBeDeleted
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
191
                    canTransitionToStatus
192
                    isSubscribed
193
                    getPackageComponent
13445.1.3 by Gary Poster
add bugtask.maybeConfirm
194
                    maybeConfirm
14418.1.6 by Steve Kowalik
Normalise the userHasPrivileges functions in IBugTask.
195
                    userHasDriverPrivileges
196
                    userHasBugSupervisorPrivileges
10788.5.2 by Abel Deuring
ordinary users can (un)assign a bug task only to hemselves and their teams
197
                    userCanSetAnyAssignee
14186.3.2 by Ian Booth
Add tests for delete view
198
                    userCanUnassign"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
199
            <require
200
                permission="launchpad.View"
201
                attributes="
202
                    bugtargetname
203
                    bugtargetdisplayname
204
                    product
205
                    productseries
206
                    sourcepackagename
207
                    distribution
208
                    distroseries
209
                    milestone
12845.2.3 by Robert Collins
Make BugTasks read from the DB with INCOMPLETE_* enums map them to INCOMPLETE.
210
                    _status
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
211
                    status
212
                    importance
213
                    assignee
214
                    bugwatch
215
                    age
216
                    owner
217
                    targetname
218
                    title
219
                    related_tasks
220
                    other_affected_pillars
221
                    asEmailHeaderValue
222
                    getDelta
223
                    pillar
224
                    target_uses_malone
225
                    bugtask_branches
226
                    conjoined_master
227
                    conjoined_slave
228
                    subscribe
8523.3.23 by Gavin Panella
Merge devel.
229
                    getConjoinedMaster
12641.6.27 by Ian Booth
Go back to using an API call to get contributor info instead of a view
230
                    findSimilarBugs
231
                    getContributorInfo"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
232
            <require
14142.1.1 by Ian Booth
Add api to delete bug tasks
233
                permission="launchpad.Delete"
14142.1.4 by Ian Booth
Tweak security config to use new IBugTaskDelete interface and web service test
234
                interface="lp.bugs.interfaces.bugtask.IBugTaskDelete"/>
14142.1.1 by Ian Booth
Add api to delete bug tasks
235
            <require
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
236
                permission="launchpad.Edit"
237
                attributes="
238
                    setStatusFromDebbugs
239
                    setImportanceFromDebbugs
240
                    updateTargetNameCache
241
                    transitionToImportance
242
                    transitionToStatus
243
                    transitionToAssignee
9119.3.2 by William Grant
Add IBugTask.transitionToMilestone, export it, and make IBugTask.milestone read-only.
244
                    transitionToMilestone
13494.2.9 by William Grant
Split transitionToTarget validation into validateTransitionToTarget, and call that in BugTaskEditView.validate.
245
                    transitionToTarget
246
                    validateTransitionToTarget
247
                    "/>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
248
12225.7.1 by Gavin Panella
Clean up some XXXs.
249
            <!-- XXX Brad Bollenbach 2006-09-29 bug=63000:
250
                 The permission checking for milestone and importance
251
                 is further restricted in the browser view code
252
                 (BugTaskEditView).
253
            -->
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
254
            <require
255
                permission="launchpad.Edit"
12225.7.1 by Gavin Panella
Clean up some XXXs.
256
                set_attributes="
257
                    age
258
                    bugwatch
259
                    datecreated
260
                    importance
261
                    milestone
262
                    owner
263
                    related_tasks
264
                    setImportanceFromDebbugs
265
                    setStatusFromDebbugs
266
                    statusdisplayhtml
267
                    statuselsewhere
268
                    targetname
269
                    title
270
                    "/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
271
        </class>
272
        <adapter
14606.4.12 by William Grant
privacy -> lp.services.privacy.
273
            provides="lp.services.privacy.interfaces.IObjectPrivacy"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
274
            for="lp.bugs.interfaces.bugtask.IBugTask"
275
            factory="lp.bugs.browser.bugtask.BugTaskPrivacyAdapter"
276
            permission="zope.Public"/>
277
        <adapter
278
            for="lp.bugs.interfaces.bugtask.IBugTask"
14560.2.25 by Curtis Hovey
Merged c.l.interfaces.launchpad with lp.app.interfaces.launchpad.
279
            provides="lp.app.interfaces.launchpad.IPrivacy"
10420.5.1 by Karl Fogel
Start on bug #471195 ("private bugs don't set body class to 'private'")
280
            factory="lp.bugs.adapters.bug.bugtask_to_privacy"/>
281
        <adapter
282
            for="lp.bugs.interfaces.bugtask.IBugTask"
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
283
            provides="lp.bugs.interfaces.bug.IBug"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
284
            factory="lp.bugs.model.bugtask.BugTaskToBugAdapter"/>
285
        <adapter
9087.5.1 by Tom Berger
interim commit so that i can pull in the latest trunk
286
            factory="lp.bugs.browser.bugtask.bugtarget_renderer"
287
            name="target"/>
9087.5.2 by Tom Berger
merge changes from rocketfuel and resolve conflicts
288
        <adapter
14600.2.2 by Curtis Hovey
Moved webapp to lp.services.
289
            provides="lp.services.webapp.interfaces.IBreadcrumb"
9094.1.3 by Gavin Panella
Add BugTask breadcrumbs.
290
            for="lp.bugs.interfaces.bugtask.IBugTask"
9209.4.5 by Guilherme Salgado
Update all existing breadcrumb adapters to use Breadcrumb rather than BreadcrumbBuilder. Also rename them all
291
            factory="lp.bugs.browser.bugtask.BugTaskBreadcrumb"
9094.1.3 by Gavin Panella
Add BugTask breadcrumbs.
292
            permission="zope.Public"/>
10542.12.2 by Karl Fogel
Fix bug #78565: no direct link from bug comment page to corresponding bug.
293
        <adapter
14600.2.2 by Curtis Hovey
Moved webapp to lp.services.
294
            provides="lp.services.webapp.interfaces.IBreadcrumb"
10542.12.2 by Karl Fogel
Fix bug #78565: no direct link from bug comment page to corresponding bug.
295
            for="lp.bugs.interfaces.bugmessage.IBugComment"
296
            factory="lp.bugs.browser.bugcomment.BugCommentBreadcrumb"
297
            permission="zope.Public"/>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
298
12392.4.4 by Robert Collins
Use aggregation rather that looping in python to determine series bug counts in bug searches.
299
        <!-- BugTaskSearchParams -->
300
        <class
301
            class="lp.bugs.interfaces.bugtask.BugTaskSearchParams">
302
            <allow
303
                attributes="
304
                    setTarget
305
                    "/>
12599.4.2 by Leonard Richardson
Merge from trunk.
306
            <require
307
                permission="zope.Public"
308
                set_attributes="
309
                    resolved_upstream
310
                    "/>
12392.4.4 by Robert Collins
Use aggregation rather that looping in python to determine series bug counts in bug searches.
311
        </class>
312
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
313
        <!-- BugTaskSet -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
314
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
315
        <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
316
            class="lp.bugs.model.bugtask.BugTaskSet">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
317
            <allow
318
                interface="lp.bugs.interfaces.bugtask.IBugTaskSet"/>
319
            <allow
320
                interface="zope.app.form.browser.interfaces.IAddFormCustomization"/>
321
        </class>
322
        <securedutility
323
            provides="lp.bugs.interfaces.bugtask.IBugTaskSet"
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
324
            class="lp.bugs.model.bugtask.BugTaskSet">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
325
            <allow
326
                interface="lp.bugs.interfaces.bugtask.IBugTaskSet"/>
327
        </securedutility>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
328
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
329
        <!-- BugTaskDelta -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
330
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
331
        <class
332
            class="lp.bugs.model.bugtask.BugTaskDelta">
333
            <allow
334
                interface="lp.bugs.interfaces.bugtask.IBugTaskDelta"/>
335
        </class>
336
    <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
337
        class="lp.bugs.model.bugattachment.BugAttachment">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
338
        <require
339
            permission="launchpad.View"
340
            interface="lp.bugs.interfaces.bugattachment.IBugAttachment"/>
341
        <require
342
            permission="launchpad.Edit"
343
            set_schema="lp.bugs.interfaces.bugattachment.IBugAttachment"/>
344
    </class>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
345
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
346
    <!-- BugAttachmentSet -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
347
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
348
    <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
349
        class="lp.bugs.model.bugattachment.BugAttachmentSet">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
350
        <allow
351
            interface="lp.bugs.interfaces.bugattachment.IBugAttachmentSet"/>
352
    </class>
353
    <securedutility
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
354
        class="lp.bugs.model.bugattachment.BugAttachmentSet"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
355
        provides="lp.bugs.interfaces.bugattachment.IBugAttachmentSet">
356
        <allow
357
            interface="lp.bugs.interfaces.bugattachment.IBugAttachmentSet"/>
358
    </securedutility>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
359
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
360
        <!-- BugTracker -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
361
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
362
        <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
363
            class="lp.bugs.model.bugtracker.BugTracker">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
364
            <implements
365
                interface="lp.bugs.interfaces.bugtracker.IBugTracker"/>
366
            <require
367
                permission="zope.Public"
368
                attributes="
7675.604.5 by Gavin Panella
Tidy up zcml for BugTracker.
369
                    active
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
370
                    aliases
371
                    baseurl
372
                    bugtrackertype
7675.837.7 by Bryce Harrington
Implement routines for adding and getting component groups
373
                    componentForDistroSourcePackage
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
374
                    contactdetails
7675.891.13 by Bryce Harrington
Revert local changes to configure.zcml
375
                    getAllRemoteComponentGroups
7675.604.5 by Gavin Panella
Tidy up zcml for BugTracker.
376
                    getBugFilingAndSearchLinks
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
377
                    getBugsWatching
378
                    getLinkedPersonByName
13155.1.19 by Curtis Hovey
Rename getRemoteComponentForDistroSourcePackage to getRemoteComponentForDistroSourcePackageName
379
                    getRemoteComponentForDistroSourcePackageName
7675.837.7 by Bryce Harrington
Implement routines for adding and getting component groups
380
                    getRemoteComponentGroup
7675.604.5 by Gavin Panella
Tidy up zcml for BugTracker.
381
                    has_lp_plugin
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
382
                    id
383
                    imported_bug_messages
384
                    latestwatches
7675.604.5 by Gavin Panella
Tidy up zcml for BugTracker.
385
                    multi_product
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
386
                    name
387
                    owner
388
                    products
389
                    projects
390
                    summary
391
                    title
392
                    watches
7675.604.7 by Gavin Panella
Add new properties to BugTracker: watches_ready_to_check, watches_with_unpushed_comments and watches_needing_update.
393
                    watches_needing_update
394
                    watches_ready_to_check
395
                    watches_with_unpushed_comments
7675.604.5 by Gavin Panella
Tidy up zcml for BugTracker.
396
                    "/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
397
            <require
398
                permission="launchpad.Edit"
399
                attributes="
7675.888.21 by Bryce Harrington
Add permissions for distro_source_package
400
                    addRemoteComponentGroup
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
401
                    destroySelf
402
                    ensurePersonForSelf
11132.4.4 by Graham Binns
Launchpad devs can now reset watches.
403
                    linkPersonToSelf
11132.4.22 by Graham Binns
Added an AuthorizationBase class for Bugtracker so that we don't have to futz around with permissions.
404
                    "
7675.604.5 by Gavin Panella
Tidy up zcml for BugTracker.
405
                set_attributes="
406
                    aliases
407
                    baseurl
408
                    bugtrackertype
409
                    contactdetails
410
                    has_lp_plugin
411
                    name
412
                    owner
413
                    summary
414
                    title
415
                    "/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
416
            <require
417
                permission="launchpad.Admin"
11132.4.22 by Graham Binns
Added an AuthorizationBase class for Bugtracker so that we don't have to futz around with permissions.
418
                attributes="resetWatches"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
419
                set_attributes="active"/>
420
        </class>
421
        <adapter
14600.2.2 by Curtis Hovey
Moved webapp to lp.services.
422
            provides="lp.services.webapp.interfaces.IBreadcrumb"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
423
            for="lp.bugs.interfaces.bugtracker.IBugTracker"
14600.2.2 by Curtis Hovey
Moved webapp to lp.services.
424
            factory="lp.services.webapp.breadcrumb.TitleBreadcrumb"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
425
            permission="zope.Public"/>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
426
7675.837.20 by Bryce Harrington
Tidy up code
427
        <!-- BugTrackerSet -->
428
429
        <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
430
            class="lp.bugs.model.bugtracker.BugTrackerSet">
7675.837.20 by Bryce Harrington
Tidy up code
431
            <allow
432
                interface="lp.bugs.interfaces.bugtracker.IBugTrackerSet"/>
433
        </class>
434
        <securedutility
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
435
            class="lp.bugs.model.bugtracker.BugTrackerSet"
7675.837.20 by Bryce Harrington
Tidy up code
436
            provides="lp.bugs.interfaces.bugtracker.IBugTrackerSet">
437
            <allow
438
                interface="lp.bugs.interfaces.bugtracker.IBugTrackerSet"/>
439
        </securedutility>
440
        <adapter
14600.2.2 by Curtis Hovey
Moved webapp to lp.services.
441
            provides="lp.services.webapp.interfaces.IBreadcrumb"
7675.837.20 by Bryce Harrington
Tidy up code
442
            for="lp.bugs.interfaces.bugtracker.IBugTrackerSet"
443
            factory="lp.bugs.browser.bugtracker.BugTrackerSetBreadcrumb"
444
            permission="zope.Public"/>
445
446
        <!-- BugTrackerAlias -->
447
448
        <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
449
            class="lp.bugs.model.bugtracker.BugTrackerAlias">
7675.837.20 by Bryce Harrington
Tidy up code
450
            <allow
451
                interface="lp.bugs.interfaces.bugtracker.IBugTrackerAlias"/>
452
            <require
453
                permission="zope.Public"
454
                set_schema="lp.bugs.interfaces.bugtracker.IBugTrackerAlias"/>
455
        </class>
456
457
        <!-- BugTrackerAliasSet -->
458
459
        <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
460
            class="lp.bugs.model.bugtracker.BugTrackerAliasSet">
7675.837.20 by Bryce Harrington
Tidy up code
461
            <allow
462
                interface="lp.bugs.interfaces.bugtracker.IBugTrackerAliasSet"/>
463
        </class>
464
        <securedutility
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
465
            class="lp.bugs.model.bugtracker.BugTrackerAliasSet"
7675.837.20 by Bryce Harrington
Tidy up code
466
            provides="lp.bugs.interfaces.bugtracker.IBugTrackerAliasSet">
467
            <allow
468
                interface="lp.bugs.interfaces.bugtracker.IBugTrackerAliasSet"/>
469
        </securedutility>
470
7675.837.8 by Bryce Harrington
Add factory methods for creating component/component_group tests
471
        <!--BugTrackerComponent -->
472
473
        <class
7675.837.43 by Bryce Harrington
salgado indicates "canonical.launchpad.database is deprecated and at
474
            class="lp.bugs.model.bugtracker.BugTrackerComponent">
7675.837.20 by Bryce Harrington
Tidy up code
475
            <require
476
                permission="zope.Public"
7675.837.8 by Bryce Harrington
Add factory methods for creating component/component_group tests
477
                attributes="
7675.837.20 by Bryce Harrington
Tidy up code
478
                    id
7675.837.13 by Bryce Harrington
Attempt to get getAllRemoteComponentGroups() hooked up, but something
479
                    name
7675.837.8 by Bryce Harrington
Add factory methods for creating component/component_group tests
480
                    is_visible
481
                    is_custom
7675.888.21 by Bryce Harrington
Add permissions for distro_source_package
482
                    distro_source_package
7675.888.27 by Bryce Harrington
From Gavin - The component_group attribute needed to be accessible.
483
                    component_group
7675.837.31 by Bryce Harrington
Restrict permission for setting is_visible and is_custom
484
                    "/>
485
            <require
7675.837.35 by Bryce Harrington
Drop accessor for getting all component groups
486
                permission="launchpad.AnyPerson"
7675.837.31 by Bryce Harrington
Restrict permission for setting is_visible and is_custom
487
                set_attributes="
488
                    is_visible
489
                    is_custom
7675.888.19 by Bryce Harrington
Need to permit access to distro_source_package
490
                    distro_source_package
7675.837.8 by Bryce Harrington
Add factory methods for creating component/component_group tests
491
                    "/>
492
            <implements
493
                interface="lp.bugs.interfaces.bugtracker.IBugTrackerComponent"/>
494
        </class>
495
496
        <!--BugTrackerComponentGroup -->
497
498
        <class
7675.837.43 by Bryce Harrington
salgado indicates "canonical.launchpad.database is deprecated and at
499
            class="lp.bugs.model.bugtracker.BugTrackerComponentGroup">
7675.837.20 by Bryce Harrington
Tidy up code
500
            <require
501
                permission="zope.Public"
7675.837.9 by Bryce Harrington
Implement creation of custom (locally added) components, with tests
502
                attributes="
7675.837.20 by Bryce Harrington
Tidy up code
503
                    id
7675.837.13 by Bryce Harrington
Attempt to get getAllRemoteComponentGroups() hooked up, but something
504
                    name
505
                    bug_tracker
7675.837.19 by Bryce Harrington
Add support for retrieving components
506
                    components
7675.837.20 by Bryce Harrington
Tidy up code
507
                    getComponent
7675.837.9 by Bryce Harrington
Implement creation of custom (locally added) components, with tests
508
                    addComponent
509
                    addCustomComponent
510
                    "/>
7675.837.8 by Bryce Harrington
Add factory methods for creating component/component_group tests
511
            <implements
512
                interface="lp.bugs.interfaces.bugtracker.IBugTrackerComponentGroup"/>
513
        </class>
514
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
515
        <!-- RemoteBug -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
516
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
517
        <class
518
            class="lp.bugs.browser.bugtracker.RemoteBug">
519
            <allow
520
                interface="lp.bugs.interfaces.bugtracker.IRemoteBug"/>
521
        </class>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
522
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
523
    <!-- IBugBranch -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
524
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
525
    <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
526
        class="lp.bugs.model.bugbranch.BugBranch">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
527
        <allow
528
            interface="lp.bugs.interfaces.bugbranch.IBugBranch"/>
529
        <require
530
            permission="launchpad.Edit"
531
            attributes="
11116.6.16 by Jonathan Lange
This attribute does not exist.
532
                destroySelf"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
533
    </class>
534
    <adapter
535
        for="lp.bugs.interfaces.bugbranch.IBugBranch"
14600.2.2 by Curtis Hovey
Moved webapp to lp.services.
536
        provides="lp.services.webapp.interfaces.IPrimaryContext"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
537
        factory="lp.bugs.browser.bugbranch.BugBranchPrimaryContext"/>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
538
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
539
    <!-- hierarchy -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
540
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
541
    <subscriber
542
        for="lp.bugs.interfaces.bugbranch.IBugBranch                                                lazr.lifecycle.interfaces.IObjectCreatedEvent"
14477.2.3 by Curtis Hovey
Moved bug karma subscribers to lp.bugs
543
        handler="lp.bugs.subscribers.karma.bug_branch_created"/>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
544
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
545
    <!-- BugBranchSet -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
546
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
547
    <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
548
        class="lp.bugs.model.bugbranch.BugBranchSet">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
549
        <allow
550
            interface="lp.bugs.interfaces.bugbranch.IBugBranchSet"/>
551
    </class>
552
    <securedutility
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
553
        class="lp.bugs.model.bugbranch.BugBranchSet"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
554
        provides="lp.bugs.interfaces.bugbranch.IBugBranchSet">
555
        <allow
556
            interface="lp.bugs.interfaces.bugbranch.IBugBranchSet"/>
557
    </securedutility>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
558
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
559
    <!-- BugCve -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
560
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
561
    <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
562
        class="lp.bugs.model.cve.BugCve">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
563
        <allow
564
            interface="lp.bugs.interfaces.bugcve.IBugCve"/>
565
    </class>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
566
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
567
        <!-- CVE -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
568
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
569
        <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
570
            class="lp.bugs.model.cve.Cve">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
571
            <allow
572
                interface="lp.bugs.interfaces.cve.ICve"/>
573
            <require
574
                permission="launchpad.AnyPerson"
575
                set_schema="lp.bugs.interfaces.cve.ICve"/>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
576
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
577
            <!-- IBugLinkTarget -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
578
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
579
            <allow
580
                attributes="
581
                    bug_links"/>
582
            <require
583
                permission="launchpad.AnyPerson"
584
                attributes="
585
                    linkBug
586
                    unlinkBug"/>
587
        </class>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
588
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
589
        <!-- CveSet -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
590
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
591
        <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
592
            class="lp.bugs.model.cve.CveSet">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
593
            <allow
594
                interface="lp.bugs.interfaces.cve.ICveSet"/>
595
        </class>
596
        <securedutility
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
597
            class="lp.bugs.model.cve.CveSet"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
598
            provides="lp.bugs.interfaces.cve.ICveSet">
599
            <allow
600
                interface="lp.bugs.interfaces.cve.ICveSet"/>
601
        </securedutility>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
602
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
603
    <!-- BugSubscription -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
604
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
605
    <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
606
        class="lp.bugs.model.bugsubscription.BugSubscription">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
607
        <allow
608
            interface="lp.bugs.interfaces.bugsubscription.IBugSubscription"/>
609
        <require
12278.1.1 by Graham Binns
Reverted the reversion of devel r12272.
610
            permission="launchpad.Edit"
611
            set_attributes="bug_notification_level" />
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
612
    </class>
11526.4.40 by Gavin Panella
Security adapter for IBugSubscriptionFilter.
613
614
    <!-- BugSubscriptionFilter -->
615
    <class
616
        class=".model.bugsubscriptionfilter.BugSubscriptionFilter">
617
      <allow
11526.4.44 by Gavin Panella
Sort out permissions for delete().
618
          interface=".interfaces.bugsubscriptionfilter.IBugSubscriptionFilterAttributes"/>
7675.1094.6 by Graham Binns
Refactored the interfaces for IBugSubscriptionFilter.
619
      <allow
620
          interface=".interfaces.bugsubscriptionfilter.IBugSubscriptionFilterMethodsPublic"/>
11526.4.44 by Gavin Panella
Sort out permissions for delete().
621
      <require
622
          permission="launchpad.Edit"
7675.1094.6 by Graham Binns
Refactored the interfaces for IBugSubscriptionFilter.
623
          interface=".interfaces.bugsubscriptionfilter.IBugSubscriptionFilterMethodsProtected"
11526.4.44 by Gavin Panella
Sort out permissions for delete().
624
          set_schema=".interfaces.bugsubscriptionfilter.IBugSubscriptionFilterAttributes" />
11526.4.40 by Gavin Panella
Security adapter for IBugSubscriptionFilter.
625
    </class>
626
7675.1138.5 by Danilo Segan
Move basic mute functionality to BugMute table as tested by TestBugSubscriptionMethods.
627
    <!-- BugMute -->
628
    <class
629
        class=".model.bug.BugMute">
630
      <allow
631
          interface=".interfaces.bug.IBugMute"/>
632
    </class>
633
7675.1092.1 by Graham Binns
Added DB patch and model definitions.
634
    <!-- BugSubscriptionFilterMute -->
635
    <class
636
        class=".model.bugsubscriptionfilter.BugSubscriptionFilterMute">
637
      <allow
638
          interface=".interfaces.bugsubscriptionfilter.IBugSubscriptionFilterMute"/>
639
      <require
640
          permission="launchpad.Edit"
641
          set_schema=".interfaces.bugsubscriptionfilter.IBugSubscriptionFilterMute" />
642
    </class>
643
644
11869.18.1 by Gavin Panella
New method IBug.getSubscriptionInfo(), and security definitions around BugSubscriptionInfo objects.
645
    <!-- BugSubscriptionInfo -->
11869.18.2 by Gavin Panella
Blank line.
646
11869.18.1 by Gavin Panella
New method IBug.getSubscriptionInfo(), and security definitions around BugSubscriptionInfo objects.
647
    <class class=".model.bug.BugSubscriptionInfo">
648
      <!-- Instance variables -->
649
      <require
650
          permission="launchpad.View"
651
          attributes="
652
              bug
653
              level
654
              " />
655
      <!-- Properties -->
656
      <require
657
          permission="launchpad.View"
658
          attributes="
659
              all_assignees
660
              all_pillar_owners_without_bug_supervisors
661
              also_notified_subscribers
662
              direct_subscriptions
11869.18.6 by Gavin Panella
New property for BugSubscriptionInfo, duplicate_only_subscriptions.
663
              duplicate_only_subscriptions
11869.18.1 by Gavin Panella
New method IBug.getSubscriptionInfo(), and security definitions around BugSubscriptionInfo objects.
664
              duplicate_subscriptions
665
              indirect_subscribers
666
              structural_subscriptions
667
              " />
668
    </class>
669
12521.6.16 by Danilo Segan
Re-add forgotten tests.
670
    <!-- PersonSubscriptionInfo -->
671
12556.5.4 by Gary Poster
big refactoring of personsubscriptioninfo to have more information we need.
672
    <class class="lp.bugs.model.personsubscriptioninfo.RealSubscriptionInfo">
673
        <allow
674
            interface="
675
              lp.bugs.interfaces.personsubscriptioninfo.IRealSubscriptionInfo"/>
676
    </class>
677
678
    <class class="lp.bugs.model.personsubscriptioninfo.VirtualSubscriptionInfo">
679
        <allow
680
            interface="
681
              lp.bugs.interfaces.personsubscriptioninfo.IVirtualSubscriptionInfo"/>
682
    </class>
683
12556.5.11 by Gary Poster
tests pass again. direct.personal is now a list like the others
684
    <class class="lp.bugs.model.personsubscriptioninfo.RealSubscriptionInfoCollection">
685
        <allow
686
            interface="
687
              lp.bugs.interfaces.personsubscriptioninfo.IRealSubscriptionInfoCollection"/>
12556.5.4 by Gary Poster
big refactoring of personsubscriptioninfo to have more information we need.
688
    </class>
689
690
    <class class="lp.bugs.model.personsubscriptioninfo.VirtualSubscriptionInfoCollection">
691
        <allow
692
            interface="
693
              lp.bugs.interfaces.personsubscriptioninfo.IVirtualSubscriptionInfoCollection"/>
12521.6.16 by Danilo Segan
Re-add forgotten tests.
694
    </class>
695
12521.6.17 by Danilo Segan
Do not use a utility for what is not a utility.
696
    <class class="lp.bugs.model.personsubscriptioninfo.PersonSubscriptions">
12521.6.16 by Danilo Segan
Re-add forgotten tests.
697
        <allow
12521.6.17 by Danilo Segan
Do not use a utility for what is not a utility.
698
            interface="
699
              lp.bugs.interfaces.personsubscriptioninfo.IPersonSubscriptions"/>
700
    </class>
12521.6.16 by Danilo Segan
Re-add forgotten tests.
701
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
702
        <!-- Bug -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
703
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
704
        <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
705
            class="lp.bugs.model.bug.Bug">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
706
            <implements
707
                interface="lp.bugs.interfaces.bug.IBug"/>
708
            <allow
709
                attributes="
710
                    id
711
                    private
14186.8.1 by William Grant
Bug.access_policy
712
                    access_policy
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
713
                    bugtasks
714
                    default_bugtask
715
                    affected_pillars
716
                    permits_expiration
717
                    can_expire
718
                    subscriptions
719
                    syncUpdate
720
                    date_last_updated
13955.1.1 by Graham Binns
Batched activity now no longer pulls in results that have already been shown.
721
                    getActivityForDateRange
8752.4.16 by Paul Hummer
Implemented linked_bugs into the templates
722
                    getBugTask
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
723
                    getDirectSubscribers
13247.1.1 by Danilo Segan
Reapply bug 772754 fix with packagecopyjob changes removed.
724
                    getDirectSubscribersWithDetails
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
725
                    getDirectSubscriptions
726
                    getIndirectSubscribers
727
                    is_complete
13445.1.6 by Gary Poster
markAsDuplicate autoconfirms appropriately
728
                    maybeConfirmBugtasks
11582.2.2 by Robert Collins
Probably broken, but takes 46 queries off of a baseline BugTask:+index.
729
                    official_tags
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
730
                    who_made_private
8523.3.23 by Gavin Panella
Merge devel.
731
                    date_made_private
9939.1.1 by Graham Binns
Added IBug.personIsDirectSubscriber() and personIsSubscribedToDuplicate() methods.
732
                    userCanView
14302.4.1 by Ian Booth
Allow users in project roles and comment owners to hide comments
733
                    userCanSetCommentVisibility
9939.1.1 by Graham Binns
Added IBug.personIsDirectSubscriber() and personIsSubscribedToDuplicate() methods.
734
                    personIsDirectSubscriber
9939.1.2 by Graham Binns
Added implementation and btests for personIsAlsoNotifiedSubscriber().
735
                    personIsAlsoNotifiedSubscriber
10124.2.2 by Graham Binns
Hotness is now part of IBug.
736
                    personIsSubscribedToDuplicate
13445.1.4 by Gary Poster
add bugtask.transitionToTarget auto-confirm behavior.
737
                    shouldConfirmBugtasks
7675.486.2 by Gary Poster
fix zcml error
738
                    heat
7675.582.4 by Graham Binns
Updated tests for heat_last_updated.
739
                    heat_last_updated
10224.18.1 by Abel Deuring
Property latest_patch_uploaded added to classes IBug and Bug; doc tests of this property
740
                    has_patches
7675.517.1 by Abel Deuring
property Bug.latest_patch added; property used to display details abotu a patch on the +patches view.
741
                    latest_patch
10224.18.1 by Abel Deuring
Property latest_patch_uploaded added to classes IBug and Bug; doc tests of this property
742
                    latest_patch_uploaded"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
743
            <require
744
                permission="launchpad.View"
745
                attributes="
746
                    datecreated
747
                    name
748
                    title
749
                    description
750
                    ownerID
751
                    owner
752
                    duplicateof
753
                    communityscore
754
                    communitytimestamp
755
                    hits
756
                    hitstimestamp
757
                    activityscore
758
                    activitytimestamp
759
                    displayname
760
                    activity
761
                    initial_message
8698.10.4 by Paul Hummer
Fixed references to broken code
762
                    linked_branches
13277.4.16 by Graham Binns
Added a getter and did some funky export stuff at Rob's behest. Man's a magician.
763
                    getVisibleLinkedBranches
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
764
                    watches
11582.2.2 by Robert Collins
Probably broken, but takes 46 queries off of a baseline BugTask:+index.
765
                    has_cves
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
766
                    cves
767
                    cve_links
768
                    duplicates
769
                    attachments
11456.1.7 by Robert Collins
Fix failures uncovered by ec2 test.
770
                    attachments_unpopulated
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
771
                    questions
772
                    specifications
773
                    followup_subject
774
                    isSubscribed
775
                    messages
776
                    getBugNotificationRecipients
777
                    hasBranch
778
                    security_related
779
                    tags
12376.1.2 by Robert Collins
Basic implementation in place, tests not updated.
780
                    getMessagesForView
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
781
                    isSubscribedToDupes
782
                    getSubscribersFromDuplicates
783
                    getSubscriptionsFromDuplicates
11474.2.3 by Robert Collins
Add getSubscribersForPerson to IBug, permitting single query setup of bug index pages, which according to OOPS is about 1.2 seconds (but if we're underestimating could be more) and will make analysing performance on the page easier.
784
                    getSubscribersForPerson
11843.1.3 by Graham Binns
It's now possible to update your subscription. Hurrah.
785
                    getSubscriptionForPerson
11869.18.1 by Gavin Panella
New method IBug.getSubscriptionInfo(), and security definitions around BugSubscriptionInfo objects.
786
                    getSubscriptionInfo
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
787
                    indexed_messages
12403.1.1 by Robert Collins
Expose Bug._indexed_messages and use it to generate a much cheaper query for determining if the bugs description was changed.
788
                    _indexed_messages
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
789
                    getAlsoNotifiedSubscribers
790
                    getBugWatch
791
                    canBeNominatedFor
792
                    getNominationFor
793
                    getNominations
794
                    date_last_message
795
                    number_of_duplicates
796
                    message_count
797
                    comment_count
798
                    getQuestionCreatedFromBug
799
                    canBeAQuestion
800
                    getBugTasksByPackageName
801
                    users_affected_count
802
                    users_unaffected_count
803
                    users_affected
10193.3.1 by Karl Fogel
Fix bug #505845 ("Affected users should be carried through from
804
                    users_unaffected
10193.3.2 by Karl Fogel
Some tweaks resulting from informal review during Bugs Sprint.
805
                    users_affected_count_with_dupes
14189.6.9 by mbp at canonical
Add other_users_affected_count_with_dupes to get the right answers when the current user is affected by a dupe
806
                    other_users_affected_count_with_dupes
10193.3.2 by Karl Fogel
Some tweaks resulting from informal review during Bugs Sprint.
807
                    users_affected_with_dupes
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
808
                    bug_messages
8486.18.11 by Abel Deuring
RF merge; conflicts resolved
809
                    isUserAffected
11057.8.1 by Brian Murray
create IBug.isExpirable() which is hopefully clearer than IBug.can_expire and export it via the API
810
                    getHWSubmissions
12526.2.1 by Graham Binns
Added an isMuted() method to IBug.
811
                    isExpirable
812
                    isMuted
813
                    "/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
814
            <require
815
                permission="launchpad.Edit"
816
                attributes="
11587.5.2 by Brian Murray
move nomination permission checking to addNomination of bug
817
                    addAttachment
818
                    addChange
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
819
                    addCommentNotification
11587.5.2 by Brian Murray
move nomination permission checking to addNomination of bug
820
                    addNomination
821
                    addTask
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
822
                    addWatch
11587.5.2 by Brian Murray
move nomination permission checking to addNomination of bug
823
                    convertToQuestion
824
                    expireNotifications
825
                    findCvesInText
826
                    linkAttachment
827
                    linkBranch
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
828
                    linkCVE
829
                    linkCVEAndReturnNothing
11587.5.2 by Brian Murray
move nomination permission checking to addNomination of bug
830
                    linkHWSubmission
831
                    linkMessage
832
                    markAsDuplicate
833
                    markUserAffected
12599.1.1 by Graham Binns
Added an IBug.mute() method.
834
                    mute
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
835
                    newMessage
11587.5.2 by Brian Murray
move nomination permission checking to addNomination of bug
836
                    removeWatch
14302.4.1 by Ian Booth
Allow users in project roles and comment owners to hide comments
837
                    setCommentVisibility
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
838
                    setPrivate
10699.1.1 by Tom Berger
adjust bug heat immediately when bug privacy and security change.
839
                    setSecurityRelated
13994.2.1 by Ian Booth
Implement new subscription behaviour
840
                    setPrivacyAndSecurityRelated
14186.8.3 by William Grant
Bug.setAccessPolicy
841
                    setAccessPolicy
11587.5.2 by Brian Murray
move nomination permission checking to addNomination of bug
842
                    setStatus
843
                    subscribe
844
                    unlinkBranch
845
                    unlinkCVE
7675.534.1 by Graham Binns
Added an an IBug.linkAttachment() method.
846
                    unlinkHWSubmission
12599.1.1 by Graham Binns
Added an IBug.mute() method.
847
                    unmute
11587.5.2 by Brian Murray
move nomination permission checking to addNomination of bug
848
                    unsubscribe
849
                    unsubscribeFromDupes
7675.706.7 by Graham Binns
Replaced calls to setHeat() in Bug with calls to updateHeat().
850
                    updateHeat"
7675.534.3 by Graham Binns
Driveby cleanup of ZCML at Abel's request.
851
                set_attributes="
852
                    activity initial_message
853
                    activityscore
854
                    activitytimestamp
855
                    communityscore
856
                    communitytimestamp
857
                    date_last_updated
858
                    date_made_private
859
                    datecreated
860
                    hits
861
                    hitstimestamp
862
                    name
863
                    owner
864
                    ownerID
865
                    security_related
866
                    tags
867
                    title description
868
                    who_made_private"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
869
            <require
870
                permission="launchpad.Admin"
871
                attributes="
7675.706.9 by Graham Binns
Fixed test failures in bug-heat.txt.
872
                    setHeat"
873
                set_attributes="heat_last_updated" />
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
874
        </class>
875
        <adapter
876
            for="lp.bugs.interfaces.bug.IBug"
14600.2.2 by Curtis Hovey
Moved webapp to lp.services.
877
            provides="lp.services.webapp.interfaces.ILaunchpadContainer"
14538.2.9 by Curtis Hovey
Moved LaunchpadBugContainer to lp.bugs.publisher.
878
            factory="lp.bugs.publisher.LaunchpadBugContainer"/>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
879
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
880
        <!-- BugSet -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
881
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
882
        <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
883
            class="lp.bugs.model.bug.BugSet">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
884
            <allow
885
                interface="lp.bugs.interfaces.bug.IBugSet"/>
886
        </class>
887
        <securedutility
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
888
            class="lp.bugs.model.bug.BugSet"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
889
            provides="lp.bugs.interfaces.bug.IBugSet">
890
            <allow
891
                interface="lp.bugs.interfaces.bug.IBugSet"/>
892
        </securedutility>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
893
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
894
        <!-- BugDelta -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
895
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
896
        <class
8523.3.2 by Gavin Panella
Resolve migration conflict around lib/lp/bugs/adapters/bug.py.
897
            class="lp.bugs.adapters.bugdelta.BugDelta">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
898
            <allow
899
                interface="lp.bugs.interfaces.bug.IBugDelta"/>
900
        </class>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
901
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
902
    <!-- BugMessage -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
903
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
904
    <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
905
        class="lp.bugs.model.bugmessage.BugMessage">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
906
        <allow
907
            interface="lp.bugs.interfaces.bugmessage.IBugMessage"/>
908
        <require
909
            permission="launchpad.Admin"
7675.1065.3 by j.c.sackett
Removed visible from set of attributes in bugs.
910
            set_attributes="remote_comment_id bugwatch index"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
911
    </class>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
912
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
913
    <!-- BugMessageSet -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
914
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
915
    <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
916
        class="lp.bugs.model.bugmessage.BugMessageSet">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
917
        <allow
918
            interface="lp.bugs.interfaces.bugmessage.IBugMessageSet"/>
919
    </class>
920
    <securedutility
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
921
        class="lp.bugs.model.bugmessage.BugMessageSet"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
922
        provides="lp.bugs.interfaces.bugmessage.IBugMessageSet">
923
        <allow
924
            interface="lp.bugs.interfaces.bugmessage.IBugMessageSet"/>
925
    </securedutility>
926
    <adapter
927
        for="lp.bugs.interfaces.bugnomination.IBugNomination"
14600.2.2 by Curtis Hovey
Moved webapp to lp.services.
928
        provides="lp.services.webapp.interfaces.IPrimaryContext"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
929
        factory="lp.bugs.browser.bugnomination.BugNominationPrimaryContext"/>
930
        <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
931
            class="lp.bugs.model.bugnomination.BugNomination">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
932
            <require
933
                permission="launchpad.View"
934
                attributes="
935
                    id
936
                    date_created
937
                    date_decided
938
                    distroseries
939
                    productseries
940
                    bug
941
                    owner
12482.1.5 by Robert Collins
Eager load task and nomination owners too.
942
                    ownerID
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
943
                    decider
944
                    target
945
                    status
946
                    isApproved
947
                    isDeclined
948
                    isProposed
949
                    canApprove"/>
950
            <require
951
                permission="launchpad.Driver"
952
                attributes="
953
                    approve
954
                    decline"/>
14528.2.1 by Ian Booth
When a bugtask is deleted also delete any associated nomination
955
            <require
956
                permission="launchpad.Edit"
957
                attributes="
958
                    destroySelf"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
959
        </class>
960
        <securedutility
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
961
            class="lp.bugs.model.bugnomination.BugNominationSet"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
962
            provides="lp.bugs.interfaces.bugnomination.IBugNominationSet">
963
            <allow
964
                interface="lp.bugs.interfaces.bugnomination.IBugNominationSet"/>
965
        </securedutility>
966
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
967
        for="lp.bugs.interfaces.bug.IBug                            zope.lifecycleevent.interfaces.IObjectCreatedEvent"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
968
        handler="lp.bugs.subscribers.bugactivity.record_bug_added"/>
969
    <subscriber
970
        for="lp.bugs.interfaces.bugcve.IBugCve                            lazr.lifecycle.interfaces.IObjectCreatedEvent"
971
        handler="lp.bugs.subscribers.bugactivity.record_cve_linked_to_bug"/>
972
    <subscriber
973
        for="lp.bugs.interfaces.bugcve.IBugCve                            lazr.lifecycle.interfaces.IObjectDeletedEvent"
974
        handler="lp.bugs.subscribers.bugactivity.record_cve_unlinked_from_bug"/>
975
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
976
        for="lp.bugs.interfaces.bugsubscription.IBugSubscription                     zope.lifecycleevent.interfaces.IObjectCreatedEvent"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
977
        handler="lp.bugs.subscribers.bugactivity.record_bugsubscription_added"/>
978
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
979
        for="lp.bugs.interfaces.bugsubscription.IBugSubscription                     lazr.lifecycle.interfaces.IObjectModifiedEvent"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
980
        handler="lp.bugs.subscribers.bugactivity.record_bugsubscription_edited"/>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
981
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
982
        <!-- BugWatch -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
983
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
984
        <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
985
            class="lp.bugs.model.bugwatch.BugWatch">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
986
            <implements
987
                interface="lp.bugs.interfaces.bugwatch.IBugWatch"/>
988
            <require
989
                permission="zope.Public"
990
                attributes="
7675.586.8 by Graham Binns
Added tests.
991
                    activity
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
992
                    bug
993
                    bugtasks
994
                    bugtracker
7675.640.3 by Graham Binns
BugWatch.can_be_rescheduled now works on the same basis as BugWatchActivityPortletView.userCanReschedule() did before it.
995
                    can_be_rescheduled
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
996
                    datecreated
7675.640.5 by Graham Binns
Updated BugWatchActivityPortletView to use BugWatch.setNextCheck().
997
                    failed_activity
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
998
                    hasComment
999
                    unpushed_comments
1000
                    id
1001
                    last_error_type
1002
                    lastchanged
1003
                    lastchecked
1004
                    needscheck
7675.595.3 by Graham Binns
Added ZCML runes for next_check.
1005
                    next_check
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1006
                    owner
1007
                    remote_importance
1008
                    remotebug
1009
                    remotestatus
1010
                    title
1011
                    url
1012
                    getImportedBugMessages"/>
1013
            <require
1014
                permission="launchpad.AnyPerson"
1015
                attributes="
7675.586.8 by Graham Binns
Added tests.
1016
                    destroySelf
7675.640.4 by Graham Binns
Added IBugWatch.setNextCheck().
1017
                    addActivity
1018
                    setNextCheck"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1019
                set_attributes="bugtracker remotebug"/>
1020
            <require
1021
                permission="launchpad.Admin"
1022
                attributes="
1023
                    addComment
1024
                    updateImportance
11435.4.1 by Graham Binns
Added tests and implementation for BugWatch.reset().
1025
                    updateStatus
1026
                    reset
1027
                    "
7675.595.3 by Graham Binns
Added ZCML runes for next_check.
1028
                set_attributes="
1029
                    last_error_type
1030
                    lastchanged
1031
                    lastchecked
1032
                    needscheck
1033
                    next_check
1034
                    remote_importance
11435.4.1 by Graham Binns
Added tests and implementation for BugWatch.reset().
1035
                    remotestatus
1036
                    "/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1037
        </class>
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
1038
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1039
        <!-- https://launchpad.net/bugs/98639 -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
1040
1041
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1042
        <!--BugWatchSet -->
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
1043
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1044
        <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
1045
            class="lp.bugs.model.bugwatch.BugWatchSet">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1046
            <allow
1047
                interface="lp.bugs.interfaces.bugwatch.IBugWatchSet"/>
9186.2.11 by Gavin Panella
Reinstate BugSetBase; its removal created too much follow-on work for right now.
1048
            <allow
1049
                interface="zope.app.form.browser.interfaces.IAddFormCustomization"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1050
        </class>
1051
        <securedutility
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
1052
            class="lp.bugs.model.bugwatch.BugWatchSet"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1053
            provides="lp.bugs.interfaces.bugwatch.IBugWatchSet">
1054
            <allow
1055
                interface="lp.bugs.interfaces.bugwatch.IBugWatchSet"/>
1056
        </securedutility>
7675.586.7 by Graham Binns
Added BugWatchActivity interfaces.
1057
1058
        <!-- BugWatchActivity -->
1059
        <class
1060
            class="lp.bugs.model.bugwatch.BugWatchActivity">
1061
            <allow
1062
                interface="lp.bugs.interfaces.bugwatch.IBugWatchActivity"/>
1063
        </class>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1064
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
1065
        for="lp.bugs.interfaces.bugtask.IBugTask                 lazr.lifecycle.interfaces.IObjectCreatedEvent"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1066
        handler="lp.bugs.subscribers.bugactivity.notify_bugtask_added"/>
1067
    <subscriber
14142.1.7 by Ian Booth
Record bug activity and send email when bug task is deleted
1068
        for="lp.bugs.interfaces.bugtask.IBugTask                 lazr.lifecycle.interfaces.IObjectDeletedEvent"
1069
        handler="lp.bugs.subscribers.bugactivity.notify_bugtask_deleted"/>
1070
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
1071
        for="lp.bugs.interfaces.bugtask.IBugTask                 zope.lifecycleevent.interfaces.IObjectCreatedEvent"
14477.2.3 by Curtis Hovey
Moved bug karma subscribers to lp.bugs
1072
        handler="lp.bugs.subscribers.karma.bugtask_created"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1073
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
1074
        for="lp.bugs.interfaces.bugtask.IBugTask                 zope.lifecycleevent.interfaces.IObjectCreatedEvent"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1075
        handler="lp.bugs.subscribers.buglastupdated.update_bug_date_last_updated"/>
1076
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
1077
        for="lp.bugs.interfaces.bugtask.IBugTask                 lazr.lifecycle.interfaces.IObjectModifiedEvent"
11347.14.5 by Gavin Panella
Move notify_bugtask_edited to lp.bugs.
1078
        handler="lp.bugs.subscribers.bugtask.notify_bugtask_edited"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1079
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
1080
        for="lp.bugs.interfaces.bugtask.IBugTask                 lazr.lifecycle.interfaces.IObjectModifiedEvent"
14477.2.3 by Curtis Hovey
Moved bug karma subscribers to lp.bugs
1081
        handler="lp.bugs.subscribers.karma.bugtask_modified"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1082
    <subscriber
10409.5.80 by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml.
1083
        for="lp.bugs.interfaces.bugtask.IBugTask                 lazr.lifecycle.interfaces.IObjectModifiedEvent"
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1084
        handler="lp.bugs.subscribers.buglastupdated.update_bug_date_last_updated"/>
1085
    <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
1086
        class="lp.bugs.model.bugnotification.BugNotification">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1087
        <allow
1088
            interface="lp.bugs.interfaces.bugnotification.IBugNotification"/>
1089
        <require
1090
            permission="launchpad.AnyPerson"
1091
            set_schema="lp.bugs.interfaces.bugnotification.IBugNotification"/>
13506.10.3 by Brad Crittenden
Working version of deferred bug duplicate notifications
1092
	<require
1093
	    permission="launchpad.Edit"
1094
            attributes="destroySelf" />
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1095
    </class>
1096
    <class
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
1097
        class="lp.bugs.model.bugnotification.BugNotificationRecipient">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1098
        <allow
1099
            interface="lp.bugs.interfaces.bugnotification.IBugNotificationRecipient"/>
1100
    </class>
1101
    <class
11015.2.2 by Graham Binns
Changed all import sites for BugNotificationRecipients.
1102
        class="lp.bugs.mail.bugnotificationrecipients.BugNotificationRecipients">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1103
        <allow
14557.1.19 by Curtis Hovey
Fixed imports.
1104
            interface="lp.services.mail.interfaces.INotificationRecipientSet"/>
7675.1059.39 by Danilo Segan
Allow access to new BugNotificationRecipients methods/attributes to avoid test failures.
1105
        <!-- BugNotificationRecipients provides the following
1106
             attributes/methods in addition. -->
1107
        <allow
14098.2.2 by Ian Booth
Add separate notification for project maintainers
1108
            attributes="subscription_filters addFilter addBugSupervisor addMaintainer"/>
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1109
    </class>
1110
    <securedutility
1111
        provides="lp.bugs.interfaces.bugnotification.IBugNotificationSet"
11626.3.12 by Curtis Hovey
Cross fingers and toes and hope for the best--remove all glob imports of bugs from
1112
        class="lp.bugs.model.bugnotification.BugNotificationSet">
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
1113
        <allow
1114
            interface="lp.bugs.interfaces.bugnotification.IBugNotificationSet"/>
1115
    </securedutility>
9087.4.9 by Guilherme Salgado
Fix a couple existing tests and tweak my implementation to not break others
1116
    <adapter
1117
        name="bugs"
14600.2.2 by Curtis Hovey
Moved webapp to lp.services.
1118
        provides="lp.services.webapp.interfaces.IBreadcrumb"
9087.4.9 by Guilherme Salgado
Fix a couple existing tests and tweak my implementation to not break others
1119
        for="lp.bugs.interfaces.bugtarget.IBugTarget"
9565.2.1 by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information
1120
        factory="lp.bugs.browser.bugtarget.BugsVHostBreadcrumb"
9087.4.9 by Guilherme Salgado
Fix a couple existing tests and tweak my implementation to not break others
1121
        permission="zope.Public"/>
11655.1.6 by Brad Crittenden
add page heading and breadcrumbs to bugs page for project groups.
1122
    <adapter
1123
        name="bugs"
14600.2.2 by Curtis Hovey
Moved webapp to lp.services.
1124
        provides="lp.services.webapp.interfaces.IBreadcrumb"
11655.1.6 by Brad Crittenden
add page heading and breadcrumbs to bugs page for project groups.
1125
        for="lp.registry.interfaces.projectgroup.IProjectGroup"
1126
        factory="lp.bugs.browser.bugtarget.BugsVHostBreadcrumb"
1127
        permission="zope.Public"/>
7675.472.10 by Graham Binns
Holy cow it works.
1128
7675.522.1 by Graham Binns
Uploading a BLOB now creates a ProcessApportBlobJob for that BLOB.
1129
    <!-- ProcessApportBlobJobs -->
1130
    <class class="lp.bugs.model.apportjob.ProcessApportBlobJob">
1131
        <allow interface="lp.bugs.interfaces.apportjob.IApportJob" />
1132
        <allow interface="lp.bugs.interfaces.apportjob.IProcessApportBlobJob"/>
1133
    </class>
1134
    <securedutility
1135
        component="lp.bugs.model.apportjob.ProcessApportBlobJob"
1136
        provides="lp.bugs.interfaces.apportjob.IProcessApportBlobJobSource">
1137
        <allow
1138
            interface="lp.bugs.interfaces.apportjob.IProcessApportBlobJobSource"/>
1139
    </securedutility>
7675.547.6 by Graham Binns
FileBugData parsed from a blob by a ProcessApportBlobJob is now used during the filebug process, rather than parsing the blob in the request.
1140
1141
    <!-- FileBugData -->
1142
    <class class="lp.bugs.model.bug.FileBugData">
1143
        <allow interface="lp.bugs.interfaces.bug.IFileBugData" />
1144
    </class>
11015.5.22 by Graham Binns
Fixed ZCML errors.
1145
7675.1025.1 by Gary Poster
structural subscriptions are moved from registry to bugs. moved tests pass.
1146
    <!-- StructuralSubscription -->
1147
1148
    <class
1149
        class="lp.bugs.model.structuralsubscription.StructuralSubscription">
1150
        <allow
1151
            interface=".interfaces.structuralsubscription.IStructuralSubscriptionPublic" />
1152
        <require
1153
            set_schema=".interfaces.structuralsubscription.IStructuralSubscriptionPublic"
1154
            permission="zope.Public" />
1155
        <require
1156
            interface=".interfaces.structuralsubscription.IStructuralSubscriptionRestricted"
1157
            permission="launchpad.Edit" />
1158
    </class>
1159
    <adapter
1160
        factory=".model.structuralsubscription.DistroSeriesTargetHelper"
1161
        permission="zope.Public"/>
1162
    <adapter
1163
        factory=".model.structuralsubscription.ProjectGroupTargetHelper"
1164
        permission="zope.Public"/>
1165
    <adapter
1166
        factory=".model.structuralsubscription.DistributionSourcePackageTargetHelper"
1167
        permission="zope.Public"/>
1168
    <adapter
1169
        factory=".model.structuralsubscription.MilestoneTargetHelper"
1170
        permission="zope.Public"/>
1171
    <adapter
1172
        factory=".model.structuralsubscription.ProductTargetHelper"
1173
        permission="zope.Public"/>
1174
    <adapter
1175
        factory=".model.structuralsubscription.ProductSeriesTargetHelper"
1176
        permission="zope.Public"/>
1177
    <adapter
1178
        factory=".model.structuralsubscription.DistributionTargetHelper"
1179
        permission="zope.Public"/>
1180
12221.9.39 by Tim Penhey
Hook up the moved bug errors.
1181
  <webservice:register module="lp.bugs.errors" />
11882.3.16 by Jonathan Lange
Move all of the webservice declarations to their appropriate packages.
1182
  <webservice:register module="lp.bugs.interfaces.webservice" />
1183
14012.1.2 by Curtis Hovey
Added rudimentary UsesBugsDistributionVocabulary.
1184
  <securedutility
1185
    name="UsesBugsDistribution"
14435.1.8 by Curtis Hovey
Renamed lp/bugs/vocabulary to vocaularies to be consitent with the other modules.
1186
    component="lp.bugs.vocabularies.UsesBugsDistributionVocabulary"
14012.1.2 by Curtis Hovey
Added rudimentary UsesBugsDistributionVocabulary.
1187
    provides="zope.schema.interfaces.IVocabularyFactory"
1188
    >
1189
    <allow interface="zope.schema.interfaces.IVocabularyFactory"/>
1190
  </securedutility>
8339.2.18 by Paul Hummer
Merge from db-devel, resolve conflicts
1191
</configure>