8687.15.30
by Karl Fogel
Add the license header block to all .zcml files. |
1 |
<!-- Copyright 2009 Canonical Ltd. This software is licensed under the |
2 |
GNU Affero General Public License version 3 (see the file LICENSE). |
|
3 |
-->
|
|
7675.1089.9
by j.c.sackett
Removed some unneeded changes to zcml. |
4 |
|
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
5 |
<configure |
6 |
xmlns="http://namespaces.zope.org/zope" |
|
7 |
xmlns:i18n="http://namespaces.zope.org/i18n" |
|
12636.2.1
by j.c.sackett
Added webservice configuration info. |
8 |
xmlns:webservice="http://namespaces.canonical.com/webservice" |
8294.7.4
by Francis J. Lacoste
Define all help folders using ZCML only. |
9 |
xmlns:lp="http://namespaces.canonical.com/lp" |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
10 |
i18n_domain="launchpad"> |
11 |
||
12 |
<include package=".browser" /> |
|
13 |
||
11128.6.1
by Michael Hudson
move answers code out |
14 |
<publisher |
11388.1.7
by Tim Penhey
Register other layers. |
15 |
name="answers" |
16 |
factory="lp.answers.publisher.answers_request_publication_factory"/> |
|
17 |
<utility |
|
18 |
component="lp.answers.publisher.AnswersLayer" |
|
19 |
provides="zope.publisher.interfaces.browser.IDefaultBrowserLayer" |
|
20 |
name="answers" /> |
|
11128.6.1
by Michael Hudson
move answers code out |
21 |
|
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
22 |
<subscriber |
23 |
for=".interfaces.question.IQuestion |
|
24 |
lazr.lifecycle.interfaces.IObjectCreatedEvent"
|
|
25 |
handler=".notification.QuestionAddedNotification" |
|
26 |
/>
|
|
27 |
||
28 |
<subscriber |
|
29 |
for=".interfaces.question.IQuestion |
|
30 |
lazr.lifecycle.interfaces.IObjectCreatedEvent"
|
|
31 |
handler=".notification.QuestionUnsupportedLanguageNotification" |
|
32 |
/>
|
|
33 |
||
34 |
<subscriber |
|
35 |
for=".interfaces.question.IQuestion |
|
36 |
lazr.lifecycle.interfaces.IObjectModifiedEvent"
|
|
37 |
handler=".notification.QuestionModifiedDefaultNotification" |
|
38 |
/>
|
|
39 |
||
40 |
<subscriber |
|
41 |
for=".interfaces.question.IQuestion |
|
42 |
lazr.lifecycle.interfaces.IObjectModifiedEvent"
|
|
43 |
handler=".notification.QuestionModifiedOwnerNotification" |
|
44 |
/>
|
|
45 |
||
46 |
<subscriber |
|
47 |
for=".interfaces.question.IQuestion |
|
48 |
lazr.lifecycle.interfaces.IObjectCreatedEvent"
|
|
49 |
handler=".karma.question_created" |
|
50 |
/>
|
|
51 |
||
52 |
<subscriber |
|
53 |
for=".interfaces.question.IQuestion |
|
54 |
lazr.lifecycle.interfaces.IObjectModifiedEvent"
|
|
55 |
handler=".karma.question_modified" |
|
56 |
/>
|
|
57 |
||
58 |
<subscriber |
|
59 |
for=".interfaces.questionmessage.IQuestionMessage |
|
60 |
lazr.lifecycle.interfaces.IObjectCreatedEvent"
|
|
61 |
handler=".karma.question_comment_added" |
|
62 |
/>
|
|
63 |
||
7944.3.22
by Francis J. Lacoste
Renamed database to model. |
64 |
<class class=".model.questionreopening.QuestionReopening"> |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
65 |
<allow |
66 |
interface=".interfaces.questionreopening.IQuestionReopening" |
|
67 |
/>
|
|
68 |
</class> |
|
69 |
||
12943.1.4
by Curtis Hovey
Added ZCML permissions for QuestionEmailJob. |
70 |
<class class=".model.questionjob.QuestionEmailJob"> |
71 |
<allow interface=".interfaces.questionjob.IQuestionEmailJob"/> |
|
72 |
</class> |
|
73 |
||
74 |
<securedutility |
|
75 |
component=".model.questionjob.QuestionEmailJob" |
|
76 |
provides=".interfaces.questionjob.IQuestionEmailJobSource"> |
|
77 |
<allow interface=".interfaces.questionjob.IQuestionEmailJobSource"/> |
|
78 |
</securedutility> |
|
79 |
||
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
80 |
<!-- QuestionSubscription --> |
7944.3.22
by Francis J. Lacoste
Renamed database to model. |
81 |
<class class=".model.questionsubscription.QuestionSubscription"> |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
82 |
<allow |
83 |
interface=".interfaces.questionsubscription.IQuestionSubscription" |
|
84 |
/>
|
|
85 |
<require |
|
86 |
permission="zope.Public" |
|
87 |
set_schema=".interfaces.questionsubscription.IQuestionSubscription" |
|
88 |
/>
|
|
89 |
</class> |
|
90 |
||
7944.3.22
by Francis J. Lacoste
Renamed database to model. |
91 |
<class class=".model.question.Question"> |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
92 |
<!-- IQuestion --> |
93 |
<allow |
|
94 |
attributes="id title description status priority owner assignee |
|
95 |
answerer answer datecreated datedue datelastquery
|
|
96 |
datelastresponse date_solved faq language messages
|
|
97 |
whiteboard product distribution sourcepackagename
|
|
98 |
target can_be_reopened reopenings canReject
|
|
99 |
can_request_info can_give_info can_give_answer
|
|
100 |
can_confirm_answer can_reopen
|
|
101 |
subscriptions isSubscribed getRecipients
|
|
12906.3.8
by Curtis Hovey
Give properties proper names |
102 |
direct_recipients indirect_recipients
|
13487.1.5
by Ian Booth
Add QuestionPortletSubscribersWithDetails view and associated test classes |
103 |
getDirectSubscribers getIndirectSubscribers
|
13673.1.1
by Ian Booth
Add view to support ajax question contacts portlet |
104 |
getDirectSubscribersWithDetails"
|
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
105 |
/>
|
106 |
<require |
|
107 |
permission="launchpad.Owner" |
|
108 |
attributes="giveInfo reopen confirmAnswer" |
|
109 |
/>
|
|
110 |
<require |
|
111 |
permission="launchpad.AnyPerson" |
|
112 |
attributes="requestInfo giveAnswer expireQuestion addComment |
|
113 |
addCommentWithoutNotify linkFAQ subscribe unsubscribe"
|
|
114 |
set_attributes="title description datedue target language" |
|
115 |
/>
|
|
116 |
<require |
|
11326.2.11
by Brad Crittenden
Updated permissions for distro, FAQ, and questions. |
117 |
permission="launchpad.Append" |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
118 |
attributes="reject" |
8848.2.1
by Curtis Hovey
Allow answer contacts to assign questions. |
119 |
set_attributes="assignee" |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
120 |
/>
|
121 |
<require |
|
7675.1089.3
by j.c.sackett
Added the new hiding function and secured it to launchpad.Moderate |
122 |
permission="launchpad.Moderate" |
123 |
attributes="setCommentVisibility" |
|
124 |
/>
|
|
125 |
<require |
|
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
126 |
permission="launchpad.Admin" |
127 |
attributes="setStatus" |
|
8848.2.1
by Curtis Hovey
Allow answer contacts to assign questions. |
128 |
set_attributes="priority whiteboard" |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
129 |
/>
|
130 |
<!-- IBugLinkTarget --> |
|
131 |
<allow attributes="bugs bug_links" /> |
|
132 |
<require |
|
133 |
permission="launchpad.AnyPerson" |
|
134 |
attributes="linkBug unlinkBug" |
|
135 |
/>
|
|
136 |
</class> |
|
137 |
||
138 |
||
7944.3.22
by Francis J. Lacoste
Renamed database to model. |
139 |
<class class=".model.questionmessage.QuestionMessage"> |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
140 |
<allow interface=".interfaces.questionmessage.IQuestionMessage"/> |
141 |
</class> |
|
142 |
||
7675.113.1
by Guilherme Salgado
Split question-related attributes/methods out of IPerson and into IQuestionsPerson |
143 |
<adapter |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
144 |
for=".interfaces.question.IQuestion" |
145 |
provides=".interfaces.questiontarget.IQuestionTarget" |
|
146 |
factory=".adapters.question_to_questiontarget" |
|
147 |
/>
|
|
148 |
<adapter |
|
149 |
for=".interfaces.question.IQuestion" |
|
150 |
provides=".interfaces.faqtarget.IFAQTarget" |
|
151 |
factory=".adapters.question_to_faqtarget" |
|
152 |
/>
|
|
153 |
<adapter |
|
154 |
provides=".interfaces.faqtarget.IFAQTarget" |
|
10409.5.80
by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml. |
155 |
for="lp.registry.interfaces.distributionsourcepackage.IDistributionSourcePackage" |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
156 |
factory=".adapters.distrosourcepackage_to_faqtarget" |
157 |
/>
|
|
158 |
<adapter |
|
10409.5.80
by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml. |
159 |
for="lp.registry.interfaces.distroseries.IDistroSeries" |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
160 |
provides=".interfaces.questiontarget.IQuestionTarget" |
161 |
factory=".adapters.series_to_questiontarget" |
|
162 |
/>
|
|
163 |
<adapter |
|
10409.5.80
by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml. |
164 |
for="lp.registry.interfaces.productseries.IProductSeries" |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
165 |
provides=".interfaces.questiontarget.IQuestionTarget" |
166 |
factory=".adapters.series_to_questiontarget" |
|
167 |
/>
|
|
168 |
<adapter |
|
10409.5.80
by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml. |
169 |
for="lp.soyuz.interfaces.sourcepackagerelease.ISourcePackageRelease" |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
170 |
provides=".interfaces.questiontarget.IQuestionTarget" |
171 |
factory=".adapters.sourcepackagerelease_to_questiontarget" |
|
172 |
/>
|
|
13014.2.4
by Curtis Hovey
Added sourcepackage_to_questiontarget to preserve code that is working with |
173 |
<adapter |
174 |
for="lp.registry.interfaces.sourcepackage.ISourcePackage" |
|
175 |
provides=".interfaces.questiontarget.IQuestionTarget" |
|
176 |
factory=".adapters.sourcepackage_to_questiontarget" |
|
177 |
/>
|
|
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
178 |
|
179 |
<adapter |
|
180 |
provides=".interfaces.faqtarget.IFAQTarget" |
|
10409.5.80
by Curtis Hovey
deglobed all the canonical.launchpad.interfaces in zcml. |
181 |
for="lp.registry.interfaces.sourcepackage.ISourcePackage" |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
182 |
factory=".adapters.sourcepackage_to_faqtarget" |
183 |
/>
|
|
184 |
||
14022.1.4
by Curtis Hovey
Use QuestionTargetWidget to retarget questions. |
185 |
<securedutility |
186 |
name="UsesAnswersDistribution" |
|
187 |
component=".vocabulary.UsesAnswersDistributionVocabulary" |
|
188 |
provides="zope.schema.interfaces.IVocabularyFactory" |
|
189 |
>
|
|
190 |
<allow interface="zope.schema.interfaces.IVocabularyFactory"/> |
|
191 |
</securedutility> |
|
192 |
||
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
193 |
<!-- QuestionSet --> |
7944.3.22
by Francis J. Lacoste
Renamed database to model. |
194 |
<class class=".model.question.QuestionSet"> |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
195 |
<allow interface=".interfaces.questioncollection.IQuestionSet" /> |
196 |
</class> |
|
197 |
||
198 |
<securedutility |
|
7944.3.22
by Francis J. Lacoste
Renamed database to model. |
199 |
class=".model.question.QuestionSet" |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
200 |
provides=".interfaces.questioncollection.IQuestionSet" |
201 |
>
|
|
202 |
<allow interface=".interfaces.questioncollection.IQuestionSet" /> |
|
203 |
</securedutility> |
|
204 |
||
205 |
||
7944.3.22
by Francis J. Lacoste
Renamed database to model. |
206 |
<class class=".model.faq.FAQ"> |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
207 |
<!-- IFAQ--> |
208 |
<allow interface=".interfaces.faq.IFAQ" /> |
|
209 |
<require |
|
210 |
permission="launchpad.Edit" |
|
211 |
set_attributes="title keywords content |
|
212 |
last_updated_by date_last_updated"
|
|
213 |
/>
|
|
214 |
</class> |
|
215 |
||
216 |
<adapter |
|
217 |
for=".interfaces.faq.IFAQ" |
|
218 |
provides=".interfaces.faqtarget.IFAQTarget" |
|
219 |
factory=".adapters.faq_to_faqtarget" |
|
220 |
/>
|
|
221 |
<subscriber |
|
222 |
for=".interfaces.faq.IFAQ |
|
223 |
lazr.lifecycle.interfaces.IObjectModifiedEvent"
|
|
224 |
handler=".subscribers.update_last_updated" |
|
225 |
/>
|
|
226 |
<subscriber |
|
227 |
for=".interfaces.faq.IFAQ |
|
228 |
lazr.lifecycle.interfaces.IObjectCreatedEvent"
|
|
229 |
handler=".karma.faq_created" |
|
230 |
/>
|
|
231 |
<subscriber |
|
232 |
for=".interfaces.faq.IFAQ |
|
233 |
lazr.lifecycle.interfaces.IObjectModifiedEvent"
|
|
234 |
handler=".karma.faq_edited" |
|
235 |
/>
|
|
236 |
||
237 |
<!-- IFAQSet --> |
|
238 |
<securedutility |
|
7944.3.22
by Francis J. Lacoste
Renamed database to model. |
239 |
class=".model.faq.FAQSet" |
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
240 |
provides=".interfaces.faq.IFAQSet" |
241 |
>
|
|
242 |
<allow interface=".interfaces.faq.IFAQSet" /> |
|
243 |
</securedutility> |
|
244 |
||
10124.1.1
by Edwin Grubbs
Changed <utility> for vocabs to <securedutility>. |
245 |
<securedutility |
7944.3.24
by Francis J. Lacoste
Extracted out FAQVocabulary. |
246 |
name="FAQ" |
247 |
component=".vocabulary.FAQVocabulary" |
|
248 |
provides="zope.schema.interfaces.IVocabularyFactory" |
|
10124.1.2
by Edwin Grubbs
Mostly working. |
249 |
>
|
250 |
<allow interface="zope.schema.interfaces.IVocabularyFactory"/> |
|
251 |
</securedutility> |
|
252 |
||
253 |
<class class=".vocabulary.FAQVocabulary"> |
|
14600.2.2
by Curtis Hovey
Moved webapp to lp.services. |
254 |
<allow interface="lp.services.webapp.vocabulary.IHugeVocabulary"/> |
10124.1.2
by Edwin Grubbs
Mostly working. |
255 |
</class> |
256 |
||
7944.3.24
by Francis J. Lacoste
Extracted out FAQVocabulary. |
257 |
|
14388.1.1
by William Grant
Rework help. No longer layer-specific, instead under +help-registry, +help-bugs, etc. References not updated. |
258 |
<lp:help-folder folder="help" name="+help-answers"/> |
9087.4.16
by Guilherme Salgado
Add VHost-specific breadcrumbs for IQuestionTarget,IProject,IPerson |
259 |
<adapter |
260 |
name="answers" |
|
14600.2.2
by Curtis Hovey
Moved webapp to lp.services. |
261 |
provides="lp.services.webapp.interfaces.IBreadcrumb" |
9087.4.16
by Guilherme Salgado
Add VHost-specific breadcrumbs for IQuestionTarget,IProject,IPerson |
262 |
for="lp.answers.interfaces.questiontarget.IQuestionTarget" |
9565.2.1
by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information |
263 |
factory="lp.answers.browser.questiontarget.AnswersVHostBreadcrumb" |
9087.4.16
by Guilherme Salgado
Add VHost-specific breadcrumbs for IQuestionTarget,IProject,IPerson |
264 |
permission="zope.Public"/> |
265 |
<adapter |
|
266 |
name="answers" |
|
14600.2.2
by Curtis Hovey
Moved webapp to lp.services. |
267 |
provides="lp.services.webapp.interfaces.IBreadcrumb" |
10326.1.2
by Henning Eggers
Renamed project interfaces module to projectgroup. |
268 |
for="lp.registry.interfaces.projectgroup.IProjectGroup" |
9565.2.1
by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information |
269 |
factory="lp.answers.browser.questiontarget.AnswersVHostBreadcrumb" |
9087.4.16
by Guilherme Salgado
Add VHost-specific breadcrumbs for IQuestionTarget,IProject,IPerson |
270 |
permission="zope.Public"/> |
271 |
<adapter |
|
272 |
name="answers" |
|
14600.2.2
by Curtis Hovey
Moved webapp to lp.services. |
273 |
provides="lp.services.webapp.interfaces.IBreadcrumb" |
9087.4.16
by Guilherme Salgado
Add VHost-specific breadcrumbs for IQuestionTarget,IProject,IPerson |
274 |
for="lp.registry.interfaces.person.IPerson" |
9565.2.1
by Gary Poster
fix vhost breadcrumbs so that we do not duplicate information |
275 |
factory="lp.answers.browser.questiontarget.AnswersVHostBreadcrumb" |
9087.4.16
by Guilherme Salgado
Add VHost-specific breadcrumbs for IQuestionTarget,IProject,IPerson |
276 |
permission="zope.Public"/> |
12636.2.1
by j.c.sackett
Added webservice configuration info. |
277 |
|
278 |
<webservice:register module="lp.answers.interfaces.webservice" /> |
|
7944.3.11
by Francis J. Lacoste
Moved ZCML, templates and adapters. Split out karma and notifications. |
279 |
</configure> |