Index: /main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py	(revision 5965)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py	(revision 5966)
@@ -14,5 +14,5 @@
 from waeup.sirp.interfaces import IWAeUPObject
 from waeup.sirp.browser.interfaces import ITheme
-from waeup.sirp.browser.theming import get_all_themes
+from waeup.sirp.browser.theming import get_all_themes, WAeUPThemeGray1
 
 grok.templatedir('templates')
@@ -99,4 +99,7 @@
     grok.context(IWAeUPObject)
 
+    #: An instance of the default theme to use for the site layout
+    default_theme = WAeUPThemeGray1()
+
     @property
     def site(self):
@@ -127,6 +130,20 @@
 
     def update(self):
-        theme_name = getattr(grok.getSite(), 'skin', 'gray waeup theme')
-        theme = getUtility(ITheme, name=theme_name)
+        """Include the resources required by the chosen skin/theme.
+
+        University instances provide a 'skin' attribute, that should
+        hold the internal name of a theme.
+
+        A theme in the waeup.sirp sense consists of a list of
+        CSS/JavaScript resources defined in the
+        :mod:`waeup.sirp.browser.resources` module.
+
+        If the context University object has no such attribute or the
+        set value is not a valid theme name, we pick 'gray waeup
+        theme' as default.
+        """
+        theme_name = getattr(grok.getSite(), 'skin', '')
+        theme = queryUtility(ITheme, name=theme_name,
+                             default=self.default_theme)
         for resource in theme.getResources():
             resource.need()
