Skip to content

Commit

Permalink
Got Zope to start up again. I had to add a bunch of XXX to view
Browse files Browse the repository at this point in the history
registrations, but that's okay. Now I can at least concentrate on 
developing the new Site Management screens.
  • Loading branch information
strichter committed Jan 10, 2005
1 parent cb1aa9e commit c577c07
Showing 1 changed file with 92 additions and 0 deletions.
92 changes: 92 additions & 0 deletions browser/configure.zcml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser">

<defaultLayer
type="zope.publisher.interfaces.browser.IBrowserRequest"
layer="zope.publisher.interfaces.browser.IDefaultBrowserLayer" />

<browser:layer name="default"
interface="zope.publisher.interfaces.browser.IDefaultBrowserLayer" />

<content class="zope.publisher.browser.BrowserRequest">
<allow
interface="zope.publisher.interfaces.browser.IBrowserApplicationRequest"
attributes="response locale __str__"
/>
<allow
interface="zope.component.interfaces.IPresentationRequest" />
</content>

<content class="zope.publisher.browser.TestRequest">
<allow
interface="zope.publisher.interfaces.browser.IBrowserApplicationRequest"
attributes="response"
/>
<allow
interface="zope.component.interfaces.IPresentationRequest" />
</content>

<content class="zope.publisher.browser.BrowserResponse">
<allow
interface="zope.publisher.interfaces.http.IHTTPResponse"
/>
</content>

<content class="zope.app.publisher.browser.fileresource.FileResource">
<allow interface="zope.publisher.interfaces.browser.IBrowserPublisher" />
<allow attributes="GET HEAD __call__" />
</content>

<content class="zope.app.publisher.browser.i18nfileresource.I18nFileResource">
<allow interface="zope.publisher.interfaces.browser.IBrowserPublisher" />
<allow attributes="GET HEAD __call__" />
</content>

<content class=".pagetemplateresource.PageTemplateResource">
<allow interface="zope.publisher.interfaces.browser.IBrowserPublisher" />
<allow attributes="__call__" />
</content>

<content class=".directoryresource.DirectoryResource">
<allow interface="zope.publisher.interfaces.browser.IBrowserPublisher" />
<allow attributes="get __getitem__" />
</content>

<browser:page
name=""
for="zope.app.component.interfaces.ISite"
class="zope.app.publisher.browser.resources.Resources"
permission="zope.Public"
allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
/>

<!-- Management view selector -->
<!-- Get first accessible item from zmi_views menu -->
<browser:page
for="*"
name="SelectedManagementView.html"
permission="zope.Public"
class=".managementviewselector.ManagementViewSelector"
allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
/>

<!-- Make manage an alias for same -->
<browser:page
for="*"
name="manage"
permission="zope.ManageContent"
class=".managementviewselector.ManagementViewSelector"
allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
/>

<!-- Menu access -->
<browser:page
for="*"
name="view_get_menu"
permission="zope.Public"
class=".menu.MenuAccessView"
allowed_interface="zope.app.publisher.interfaces.browser.IMenuAccessView"
/>

</configure>

0 comments on commit c577c07

Please sign in to comment.