~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/browser/configure.zcml

  • Committer: Curtis Hovey
  • Date: 2011-05-27 20:26:32 UTC
  • mto: This revision was merged to the branch mainline in revision 13136.
  • Revision ID: curtis.hovey@canonical.com-20110527202632-z7loc9jas6276nax
Moved Lp error pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
          attribute="__call__"
193
193
          permission="zope.Public"
194
194
          />
 
195
 
 
196
      <browser:page
 
197
          for="*"
 
198
          name="+maintenancemessage"
 
199
          template="../templates/launchpad-maintenance.pt"
 
200
          class="canonical.launchpad.browser.MaintenanceMessage"
 
201
          permission="zope.Public"
 
202
          />
 
203
 
 
204
      <!-- Macros for the forbidden pages; used by launchpad-forbidden.pt,
 
205
      initially. -->
 
206
      <browser:page
 
207
          for="*"
 
208
          name="+forbidden-page-macros"
 
209
          template="../templates/launchpad-forbidden-macros.pt"
 
210
          permission="zope.Public"
 
211
          />
 
212
 
 
213
 
 
214
      <!-- The +basiclogin view is registered using Python code so that we can do
 
215
           it only for development and tests. Below is what its declaration would
 
216
           look like, and it's here so that someone grepping zcml files for its
 
217
           name will find it.
 
218
      <browser:page
 
219
          for="canonical.launchpad.webapp.interfaces.ILaunchpadApplication"
 
220
          class="canonical.launchpad.webapp.login.BasicLoginPage"
 
221
          name="+basiclogin"
 
222
          permission="zope.Public" />
 
223
      -->
 
224
 
 
225
      <class class="canonical.launchpad.webapp.login.BasicLoginPage">
 
226
        <allow attributes="__call__" />
 
227
        <allow interface="zope.publisher.interfaces.browser.IBrowserPublisher" />
 
228
      </class>
 
229
 
 
230
      <subscriber
 
231
          for="zope.processlifetime.ProcessStarting"
 
232
          handler="canonical.launchpad.webapp.login.register_basiclogin"
 
233
          />
 
234
 
 
235
      <!-- OpenID RP views -->
 
236
      <browser:page
 
237
          for="canonical.launchpad.webapp.interfaces.ILaunchpadApplication"
 
238
          class="canonical.launchpad.webapp.login.OpenIDLogin"
 
239
          permission="zope.Public"
 
240
          name="+login"
 
241
          />
 
242
      <browser:page
 
243
          for="canonical.launchpad.webapp.interfaces.ILaunchpadApplication"
 
244
          class="canonical.launchpad.webapp.login.OpenIDCallbackView"
 
245
          permission="zope.Public"
 
246
          name="+openid-callback"
 
247
          />
 
248
 
 
249
      <browser:page
 
250
          for="*"
 
251
          attribute="logout"
 
252
          class="canonical.launchpad.webapp.login.CookieLogoutPage"
 
253
          permission="zope.Public"
 
254
          name="+logout"
 
255
          />
 
256
 
 
257
      <browser:page
 
258
          for="*"
 
259
          name="login_status"
 
260
          template="../templates/launchpad-loginstatus.pt"
 
261
          class="canonical.launchpad.browser.LoginStatus"
 
262
          permission="zope.Public"
 
263
          />
195
264
    </facet>
196
265
 
 
266
  <!-- Error pages -->
 
267
  <!-- System Errors -->
 
268
  <browser:page
 
269
      for="zope.interface.common.interfaces.IException"
 
270
      name="index.html"
 
271
      template="../templates/oops.pt"
 
272
      permission="zope.Public"
 
273
      class="canonical.launchpad.webapp.error.SystemErrorView"
 
274
      />
 
275
 
 
276
  <!-- Unauthorized -->
 
277
  <browser:page
 
278
      for="zope.exceptions.IUnauthorized"
 
279
      name="index.html"
 
280
      permission="zope.Public"
 
281
      class="canonical.launchpad.webapp.login.UnauthorizedView"
 
282
      attribute="__call__"
 
283
      />
 
284
 
 
285
  <!-- NotFound -->
 
286
  <browser:page
 
287
      for="zope.publisher.interfaces.NotFound"
 
288
      name="index.html"
 
289
      permission="zope.Public"
 
290
      template="../templates/launchpad-notfound.pt"
 
291
      class="canonical.launchpad.webapp.error.NotFoundView"
 
292
      />
 
293
 
 
294
  <!-- Gone -->
 
295
  <browser:page
 
296
      for="lp.app.errors.GoneError"
 
297
      name="index.html"
 
298
      permission="zope.Public"
 
299
      template="../templates/launchpad-gone.pt"
 
300
      class="canonical.launchpad.webapp.error.GoneView"
 
301
      />
 
302
 
 
303
  <!-- RequestExpired -->
 
304
  <browser:page
 
305
      for="canonical.database.interfaces.IRequestExpired"
 
306
      name="index.html"
 
307
      permission="zope.Public"
 
308
      template="../templates/launchpad-requestexpired.pt"
 
309
      class="canonical.launchpad.webapp.error.RequestExpiredView"
 
310
      />
 
311
 
 
312
  <!-- TimeoutError -->
 
313
  <browser:page
 
314
      for="canonical.lazr.timeout.TimeoutError"
 
315
      name="index.html"
 
316
      permission="zope.Public"
 
317
      template="../templates/launchpad-requestexpired.pt"
 
318
      class="canonical.launchpad.webapp.error.RequestExpiredView"
 
319
      />
 
320
 
 
321
  <!-- UnexpectedFormData -->
 
322
  <browser:page
 
323
      for="lp.app.errors.UnexpectedFormData"
 
324
      name="index.html"
 
325
      permission="zope.Public"
 
326
      template="../templates/launchpad-unexpectedformdata.pt"
 
327
      class="canonical.launchpad.webapp.error.SystemErrorView"
 
328
      />
 
329
 
 
330
  <!-- OffsiteFormPostError -->
 
331
  <browser:page
 
332
      for="canonical.launchpad.webapp.interfaces.OffsiteFormPostError"
 
333
      name="index.html"
 
334
      permission="zope.Public"
 
335
      template="../templates/launchpad-unexpectedformdata.pt"
 
336
      class="canonical.launchpad.webapp.error.SystemErrorView"
 
337
      />
 
338
 
 
339
  <!-- NoReferrerError -->
 
340
  <browser:page
 
341
      for="canonical.launchpad.webapp.interfaces.NoReferrerError"
 
342
      name="index.html"
 
343
      permission="zope.Public"
 
344
      template="../templates/launchpad-noreferrer.pt"
 
345
      class="canonical.launchpad.webapp.error.NoReferrerErrorView"
 
346
      />
 
347
 
 
348
  <!-- UnsafeFormGetSubmissionError -->
 
349
  <browser:page
 
350
      for="canonical.launchpad.webapp.interfaces.UnsafeFormGetSubmissionError"
 
351
      name="index.html"
 
352
      permission="zope.Public"
 
353
      template="../templates/launchpad-unexpectedformdata.pt"
 
354
      class="canonical.launchpad.webapp.error.SystemErrorView"
 
355
      />
 
356
 
 
357
  <!-- InvalidBatchSizeError -->
 
358
  <browser:page
 
359
      for="lazr.batchnavigator.interfaces.InvalidBatchSizeError"
 
360
      name="index.html"
 
361
      permission="zope.Public"
 
362
      template="../templates/launchpad-invalidbatchsize.pt"
 
363
      class="canonical.launchpad.webapp.error.InvalidBatchSizeView"
 
364
      />
 
365
 
 
366
  <!-- TranslationUnavailable -->
 
367
  <browser:page
 
368
      for="lp.app.errors.TranslationUnavailable"
 
369
      name="index.html"
 
370
      permission="zope.Public"
 
371
      template="../templates/launchpad-translationunavailable.pt"
 
372
      class="canonical.launchpad.webapp.error.TranslationUnavailableView"
 
373
      />
 
374
 
 
375
  <!-- ReadOnlyModeViolation -->
 
376
  <browser:page
 
377
      for="canonical.launchpad.webapp.interfaces.ReadOnlyModeViolation"
 
378
      name="index.html"
 
379
      permission="zope.Public"
 
380
      template="../templates/launchpad-readonlyfailure.pt"
 
381
      class="canonical.launchpad.webapp.error.ReadOnlyErrorView"
 
382
      />
 
383
 
 
384
  <!-- Vocabularies -->
 
385
  <browser:page
 
386
    for="*"
 
387
    permission="zope.Public"
 
388
    class="canonical.launchpad.browser.vocabulary.HugeVocabularyJSONView"
 
389
    name="+huge-vocabulary"
 
390
    />
 
391
 
 
392
  <adapter
 
393
    factory="canonical.launchpad.browser.vocabulary.default_pickerentry_adapter"
 
394
    />
 
395
 
 
396
  <adapter
 
397
    factory="canonical.launchpad.browser.vocabulary.person_to_pickerentry"
 
398
    />
 
399
 
 
400
  <adapter
 
401
    factory="canonical.launchpad.browser.vocabulary.branch_to_pickerentry"
 
402
    />
 
403
 
 
404
  <adapter
 
405
    factory="canonical.launchpad.browser.vocabulary.sourcepackagename_to_pickerentry"
 
406
    />
 
407
 
197
408
  <!-- TALES namespaces. -->
198
409
 
199
410
  <!-- TALES lp: namespace (should be deprecated) -->