Skip to content

Commit

Permalink
Disabled themeish behavior by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikko committed Jun 25, 2012
1 parent d0163bb commit bd6a6ea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
10 changes: 5 additions & 5 deletions youraddon/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
xmlns:cmf="http://namespaces.zope.org/cmf"
xmlns:grok="http://namespaces.zope.org/grok"
xmlns:i18n="http://namespaces.zope.org/i18n"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
xmlns:browser="http://namespaces.zope.org/browser"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
xmlns:browser="http://namespaces.zope.org/browser"
i18n_domain="youraddon">

<include package="five.grok" />
Expand All @@ -26,15 +26,15 @@

<cmf:registerDirectory name="skins" directory="skins" recursive="True"/>

<!-- Declare mapping between portal_skins theme name and Zope 3 browser layers -->
<!-- Declare mapping between portal_skins theme name and Zope 3 browser layers -->
<interface
interface=".interfaces.IThemeSpecific"
type="zope.publisher.interfaces.browser.IBrowserSkinType"
name="youraddon"
/>

<!--
Load template overrides using z3c.jbot
<!--
Load template overrides using z3c.jbot
-->
<include package="z3c.jbot" file="meta.zcml" />

Expand Down
8 changes: 7 additions & 1 deletion youraddon/profiles/default/skins.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
<?xml version="1.0"?>
<!-- Activate this if you want to your code to behave as theme
<object name="portal_skins" allow_any="False" cookie_persistence="False"
default_skin="youraddon">
-->
<object name="portal_skins" allow_any="False" cookie_persistence="False">

<object name="youraddon"
meta_type="Filesystem Directory View"
directory="youraddon:skins/youraddon"/>


<!-- Activate this if you want to your code to behave as theme -->


<!--
<skin-path name="youraddon" based-on="Sunburst Theme">
<layer name="youraddon"
insert-before="custom"/>
</skin-path>
-->

</object>
2 changes: 1 addition & 1 deletion youraddon/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""

# Disable unused imports pylint warning as they are here
# Disable unused imports pylint warning as they are here
# here for example purposes
# W0611: 12,0: Unused import Interface

Expand Down

0 comments on commit bd6a6ea

Please sign in to comment.