cosmetic
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 21 Dec 2012 12:16:28 +0000 (13:16 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 21 Dec 2012 12:16:28 +0000 (13:16 +0100)
plugins/raw.py
plugins/simplelist.py

index 0a0be1d..6da0c90 100644 (file)
@@ -4,5 +4,9 @@ from engine.plugin import Plugin
 
 class Raw (Plugin):
 
+    def __init__ (self, html, **kwds):
+        Plugin.__init__ (self, **kwds)
+        self.html=html
+
     def render_content (self, request):
-        return self.get_setting('html')
+        return self.html
index d49118d..cdbe540 100644 (file)
@@ -8,7 +8,8 @@ class SimpleList (Plugin) :
     def __init__ (self, list=[], with_datatables=False, **settings):
         Plugin.__init__ (self, **settings)
         self.list=list
-        self.add_to_settings ('list')
+# don't expose this as it's big and 
+#        self.add_to_settings ('list')
         self.with_datatables = with_datatables
         self.add_to_settings ('with_datatables')