~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2011-12-30 10:01:49 UTC
  • mto: This revision was merged to the branch mainline in revision 14612.
  • Revision ID: william.grant@canonical.com-20111230100149-zcepvmk4q01qzomx
Merge canonical's ZCML into lp.app and lp

Show diffs side-by-side

added added

removed removed

Lines of Context:
279
279
      class="lp.services.webapp.error.SystemErrorView"
280
280
      />
281
281
 
 
282
  <!-- Protocol errors (eg. HTTP 405 or 415 errors) should be published
 
283
       with a minimalist template. -->
 
284
  <browser:page
 
285
      for="lp.services.webapp.interfaces.ILaunchpadProtocolError"
 
286
      class="lp.services.webapp.error.ProtocolErrorView"
 
287
      template="../templates/protocol-error.pt"
 
288
      name="index.html"
 
289
      permission="zope.Public"
 
290
      />
 
291
 
282
292
  <!-- Unauthorized -->
283
293
  <browser:page
284
294
      for="zope.exceptions.IUnauthorized"
1059
1069
  <adapter
1060
1070
      factory="lp.app.browser.webservice.text_xhtml_representation"/>
1061
1071
 
 
1072
    <!-- The following directives set up root front pages for the different
 
1073
         virtual host layers.  The directives come in pairs.
 
1074
         The separate registration for the resources namespace (@@) is needed
 
1075
         because otherwise the lookup for /@@/ will fail because the
 
1076
         layer-specific defaultView directive also registers the
 
1077
         default view name as an unnamed adapter.
 
1078
         -->
 
1079
      -->
 
1080
    <!-- virtual host: blueprints -->
 
1081
    <browser:defaultView
 
1082
        for="lp.services.webapp.interfaces.ILaunchpadRoot"
 
1083
        name="specs"
 
1084
        layer="lp.blueprints.publisher.BlueprintsLayer"
 
1085
        />
 
1086
    <browser:page
 
1087
        name=""
 
1088
        for="lp.services.webapp.interfaces.ILaunchpadRoot"
 
1089
        class="lp.app.browser.launchpad.LaunchpadImageFolder"
 
1090
        permission="zope.Public"
 
1091
        layer="lp.blueprints.publisher.BlueprintsLayer"
 
1092
        />
 
1093
 
 
1094
    <!-- virtual host: code -->
 
1095
    <browser:defaultView
 
1096
        for="lp.services.webapp.interfaces.ILaunchpadRoot"
 
1097
        name="+code"
 
1098
        layer="lp.code.publisher.CodeLayer"
 
1099
        />
 
1100
    <browser:page
 
1101
        name=""
 
1102
        for="lp.services.webapp.interfaces.ILaunchpadRoot"
 
1103
        class="lp.app.browser.launchpad.LaunchpadImageFolder"
 
1104
        permission="zope.Public"
 
1105
        layer="lp.code.publisher.CodeLayer"
 
1106
        />
 
1107
 
 
1108
    <!-- virtual host: translations -->
 
1109
    <browser:defaultView
 
1110
        for="lp.services.webapp.interfaces.ILaunchpadRoot"
 
1111
        name="translations"
 
1112
        layer="lp.translations.publisher.TranslationsLayer"
 
1113
        />
 
1114
    <browser:page
 
1115
        name=""
 
1116
        for="lp.services.webapp.interfaces.ILaunchpadRoot"
 
1117
        class="lp.app.browser.launchpad.LaunchpadImageFolder"
 
1118
        permission="zope.Public"
 
1119
        layer="lp.translations.publisher.TranslationsLayer"
 
1120
        />
 
1121
 
 
1122
    <!-- virtual host: bugs -->
 
1123
    <browser:defaultView
 
1124
        for="lp.services.webapp.interfaces.ILaunchpadRoot"
 
1125
        name="bugs"
 
1126
        layer="lp.bugs.publisher.BugsLayer"
 
1127
        />
 
1128
    <browser:page
 
1129
        name=""
 
1130
        for="lp.services.webapp.interfaces.ILaunchpadRoot"
 
1131
        class="lp.app.browser.launchpad.LaunchpadImageFolder"
 
1132
        permission="zope.Public"
 
1133
        layer="lp.bugs.publisher.BugsLayer"
 
1134
        />
 
1135
 
 
1136
    <!-- virtual host: answers -->
 
1137
    <browser:defaultView
 
1138
        for="lp.services.webapp.interfaces.ILaunchpadRoot"
 
1139
        name="questions"
 
1140
        layer="lp.answers.publisher.AnswersLayer"
 
1141
        />
 
1142
    <browser:page
 
1143
        name=""
 
1144
        for="lp.services.webapp.interfaces.ILaunchpadRoot"
 
1145
        class="lp.app.browser.launchpad.LaunchpadImageFolder"
 
1146
        permission="zope.Public"
 
1147
        layer="lp.answers.publisher.AnswersLayer"
 
1148
        />
 
1149
 
1062
1150
</configure>