Formatting...
authorThierry Florac <tflorac@ulthar.net>
Wed, 04 Sep 2019 16:06:52 +0200
changeset 457 2c473861fcc2
parent 456 ea22252ccee1
child 458 9b9c178bcf87
Formatting...
src/pyams_default_theme/component/paragraph/html.py
src/pyams_default_theme/component/paragraph/templates/raw-default.pt
--- a/src/pyams_default_theme/component/paragraph/html.py	Fri Jul 26 19:21:06 2019 +0200
+++ b/src/pyams_default_theme/component/paragraph/html.py	Wed Sep 04 16:06:52 2019 +0200
@@ -10,8 +10,6 @@
 # FOR A PARTICULAR PURPOSE.
 #
 
-__docformat__ = 'restructuredtext'
-
 from fanstatic import ConfigurationError
 
 from pyams_content.component.illustration import IIllustration
@@ -26,6 +24,9 @@
 from pyams_utils.interfaces.text import IHTMLRenderer
 from pyams_utils.pygments import IPygmentsCodeConfiguration, render_source
 
+
+__docformat__ = 'restructuredtext'
+
 from pyams_default_theme import _
 
 
@@ -100,7 +101,8 @@
     def source(self):
         code = self.body
         if code:
-            renderer = self.request.registry.queryMultiAdapter((code, self.request), IHTMLRenderer, name='rest')
+            renderer = self.request.registry.queryMultiAdapter((code, self.request), IHTMLRenderer,
+                                                               name='rest')
             if renderer is not None:
                 return renderer.render()
         return ''
@@ -120,7 +122,8 @@
     def source(self):
         code = self.body
         if code:
-            renderer = self.request.registry.queryMultiAdapter((code, self.request), IHTMLRenderer, name='markdown')
+            renderer = self.request.registry.queryMultiAdapter((code, self.request), IHTMLRenderer,
+                                                               name='markdown')
             if renderer is not None:
                 return renderer.render()
         return ''
--- a/src/pyams_default_theme/component/paragraph/templates/raw-default.pt	Fri Jul 26 19:21:06 2019 +0200
+++ b/src/pyams_default_theme/component/paragraph/templates/raw-default.pt	Wed Sep 04 16:06:52 2019 +0200
@@ -1,2 +1,2 @@
-<h3 tal:content="view.title">title</h3>
-<div tal:content="structure view.body">body</div>
+<h3>${view.title}</h3>
+<div>${structure:view.body}</div>
\ No newline at end of file