Author: jmorliaguet
Date: Tue Oct  4 11:38:21 2005
New Revision: 27912

Modified:
   z3lab/cpsskins/branches/jmo-perspectives/browser/renderers/filters/widget.py
Log:

- added a <div> container to basicHTML widget to make it possible to assign
  a CSS class name to it.



Modified: 
z3lab/cpsskins/branches/jmo-perspectives/browser/renderers/filters/widget.py
==============================================================================
--- 
z3lab/cpsskins/branches/jmo-perspectives/browser/renderers/filters/widget.py    
    (original)
+++ 
z3lab/cpsskins/branches/jmo-perspectives/browser/renderers/filters/widget.py    
    Tue Oct  4 11:38:21 2005
@@ -168,14 +168,16 @@
     """Display the data with minimal formatting.
     """
 
-    _preview = '<h1 label="H1">Header level 1</h1>' \
+    _preview = '<div>' \
+               '<h1 label="H1">Header level 1</h1>' \
                '<h2 label="H2">Header level 2</h2>' \
                '<h3 label="H3">Header level 3</h3>' \
                '<h4 label="H4">Header level 4</h4>' \
-               '<p label="paragraph">Some paragraph</p>'
+               '<p label="paragraph">Some paragraph</p>' \
+               '</div>'
 
     def __call__(self, data, **kw):
-        return data.content()
+        return '<div>%s</div>' % data.content()
 
 class BasicImageView(WidgetView):
     """Display an image with minimal formatting
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to