From b54e32e70d7e8825d8a00385b057c3b5bc97b36e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 22 Jul 2011 14:58:53 +0200 Subject: [PATCH] Going themal --- themis/looks/browser/__init__.py | 0 themis/looks/browser/logo.py | 5 +++++ themis/looks/browser/templates/logo.pt | 9 ++++++++ themis/looks/configure.zcml | 25 +++++++++++++++++++++- themis/looks/profiles/default/metadata.xml | 3 +++ themis/looks/profiles/default/viewlets.xml | 10 +++++++++ 6 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 themis/looks/browser/__init__.py create mode 100644 themis/looks/browser/logo.py create mode 100644 themis/looks/browser/templates/logo.pt create mode 100644 themis/looks/profiles/default/metadata.xml create mode 100644 themis/looks/profiles/default/viewlets.xml diff --git a/themis/looks/browser/__init__.py b/themis/looks/browser/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/themis/looks/browser/logo.py b/themis/looks/browser/logo.py new file mode 100644 index 0000000..bbc64a4 --- /dev/null +++ b/themis/looks/browser/logo.py @@ -0,0 +1,5 @@ +from plone.app.layout.viewlets.common import LogoViewlet +from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile + +class ThemisLogoViewlet(LogoViewlet): + render = ViewPageTemplateFile('templates/logo.pt') diff --git a/themis/looks/browser/templates/logo.pt b/themis/looks/browser/templates/logo.pt new file mode 100644 index 0000000..c3c96ee --- /dev/null +++ b/themis/looks/browser/templates/logo.pt @@ -0,0 +1,9 @@ + + diff --git a/themis/looks/configure.zcml b/themis/looks/configure.zcml index 5e1f3c6..71988d2 100644 --- a/themis/looks/configure.zcml +++ b/themis/looks/configure.zcml @@ -3,13 +3,22 @@ xmlns:five="http://namespaces.zope.org/five" xmlns:i18n="http://namespaces.zope.org/i18n" xmlns:browser="http://namespaces.zope.org/browser" + xmlns:genericsetup="http://namespaces.zope.org/genericsetup" i18n_domain="themis.looks"> - + + + + + + diff --git a/themis/looks/profiles/default/metadata.xml b/themis/looks/profiles/default/metadata.xml new file mode 100644 index 0000000..05fa4b8 --- /dev/null +++ b/themis/looks/profiles/default/metadata.xml @@ -0,0 +1,3 @@ + + 1 + diff --git a/themis/looks/profiles/default/viewlets.xml b/themis/looks/profiles/default/viewlets.xml new file mode 100644 index 0000000..4c10b3e --- /dev/null +++ b/themis/looks/profiles/default/viewlets.xml @@ -0,0 +1,10 @@ + + + + + + + +