Author: jmorliaguet
Date: Fri Jun 30 10:33:33 2006
New Revision: 3573

Modified:
   cpsskins/branches/paris-sprint-2006/standard/filters/style/__init__.py

Log:

- added assertion for debugging



Modified: cpsskins/branches/paris-sprint-2006/standard/filters/style/__init__.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/standard/filters/style/__init__.py      
(original)
+++ cpsskins/branches/paris-sprint-2006/standard/filters/style/__init__.py      
Fri Jun 30 10:33:33 2006
@@ -40,5 +40,6 @@
     def __call__(self, markup, info):
         """Apply the style to the markup.
         """
+        assert isinstance(markup, basestring), "style filter: string required"
         return utils.insertCSSClass(markup, str(ICSSRenderer(self.context)))
 
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to