src/pyams_skin/configuration.py
changeset 58 0fe2f8f8b90b
parent 16 bc06fca47fc7
child 68 fd8fb93e1b6a
--- a/src/pyams_skin/configuration.py	Mon Apr 20 15:57:53 2015 +0200
+++ b/src/pyams_skin/configuration.py	Wed May 20 12:32:12 2015 +0200
@@ -9,6 +9,7 @@
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
 #
+from pyams_file.property import FileProperty
 
 __docformat__ = 'restructuredtext'
 
@@ -76,7 +77,7 @@
 class StaticConfigurationTalesExtension(ContextRequestViewAdapter):
     """extension:static_configuration TALES expression"""
 
-    def render(self, context):
+    def render(self, context=None):
         if context is None:
             context = self.context
         registry = self.request.registry
@@ -90,6 +91,8 @@
     title = FieldProperty(IConfiguration['title'])
     description = FieldProperty(IConfiguration['description'])
     author = FieldProperty(IConfiguration['author'])
+    icon = FileProperty(IConfiguration['icon'])
+    logo = FileProperty(IConfiguration['logo'])
 
 
 @adapter_config(context=IConfigurationManager, provides=IConfiguration)
@@ -110,7 +113,7 @@
 class ConfigurationTalesExtension(ContextRequestViewAdapter):
     """extension:configuration TALES expression"""
 
-    def render(self, context):
+    def render(self, context=None):
         if context is None:
             context = self.context
         manager = get_parent(context, IConfigurationManager)