Skip to content

Commit

Permalink
Use <interface /> instead of <browser:skin /> to register the skins t…
Browse files Browse the repository at this point in the history
…hat already

exist as interfaces.
  • Loading branch information
philikon committed Feb 18, 2006
0 parents commit 1d1855f
Showing 1 changed file with 158 additions and 0 deletions.
158 changes: 158 additions & 0 deletions browser/configure.zcml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
<configure
xmlns="http://namespaces.zope.org/browser"
xmlns:zope="http://namespaces.zope.org/zope"
i18n_domain="zope">

<layer
name="apidoc"
interface=".skin.apidoc" />

<zope:interface
interface=".skin.APIDOC"
type="zope.publisher.interfaces.browser.IBrowserSkinType"
name="APIDOC"
/>

<resource
name="apidoc.css"
file="apidoc.css"
/>

<page
for="*"
name="apidoc_macros"
permission="zope.View"
class=".macros.APIDocumentationMacros"
allowed_interface="zope.interface.common.mapping.IItemMapping"
layer=".skin.apidoc"
/>

<page
for="*"
name="menu_macros"
permission="zope.View"
template="menu_macros.pt"
layer=".skin.apidoc"
/>

<page
for="*"
name="static_menu_macros"
permission="zope.View"
template="static_menu_macros.pt"
layer=".skin.apidoc"
/>

<page
for="*"
name="details_macros"
permission="zope.View"
template="details_macros.pt"
layer=".skin.apidoc"
/>

<resource
name="utilities.js"
file="utilities.js"
/>

<resource
name="harrow.png"
file="harrow.png"
/>

<resource
name="varrow.png"
file="varrow.png"
/>

<pages
for="zope.app.apidoc.apidoc.APIDocumentation"
class=".apidoc.APIDocumentationView"
permission="zope.app.apidoc.UseAPIDoc"
layer=".skin.apidoc">

<page
name="index.html"
template="index.pt" />

<page
name="modulelist.html"
template="modules.pt" />

<page
name="menu.html"
template="menu.pt" />

<page
name="contents.html"
template="contents.pt" />

</pages>

<!-- Static apidoc -->

<pages
for="zope.app.apidoc.apidoc.APIDocumentation"
class=".apidoc.APIDocumentationView"
permission="zope.app.apidoc.UseAPIDoc"
layer=".skin.apidoc">

<page
name="static.html"
template="static_index.pt" />

<page
name="staticmodulelist.html"
template="static_modules.pt" />

<page
name="staticmenu.html"
template="static_menu.pt" />

<page
name="staticcontents.html"
template="static_contents.pt" />

</pages>

<!-- Error Views -->

<page
for="zope.publisher.interfaces.INotFound"
name="index.html"
permission="zope.Public"
template="notfound.pt"
class="zope.app.exception.browser.notfound.NotFound"
layer=".skin.apidoc"
/>

<!-- Preference Views -->

<page
name="apidocTree"
for="zope.app.preference.interfaces.IPreferenceGroup"
class=".preference.APIDocPreferencesTree"
permission="zope.View"
attribute="apidocTree"
layer=".skin.apidoc"
/>

<page
for="zope.app.preference.interfaces.IPreferenceGroup"
permission="zope.Public"
name="apidocMenu.html"
template="prefmenu.pt"
layer=".skin.apidoc"
/>

<page
for="zope.app.preference.interfaces.IPreferenceGroup"
permission="zope.Public"
name="apidocIndex.html"
template="prefIndex.pt"
class=".preference.ApidocEditPreferenceGroup"
/>

</configure>

0 comments on commit 1d1855f

Please sign in to comment.