Author: ianb
Date: 2008-03-25 21:21:57 -0600 (Tue, 25 Mar 2008)
New Revision: 3358

Modified:
   FormEncode/trunk/docs/news.txt
   FormEncode/trunk/formencode/htmlfill.py
Log:
Pass through error_class option (#1922986)

Modified: FormEncode/trunk/docs/news.txt
===================================================================
--- FormEncode/trunk/docs/news.txt      2008-03-26 03:17:04 UTC (rev 3357)
+++ FormEncode/trunk/docs/news.txt      2008-03-26 03:21:57 UTC (rev 3358)
@@ -9,6 +9,10 @@
 * ``chained_validators`` were removed from Schema somehow; now
   replaced and working.
 
+* Put in missing ``htmlfill.render(error_class=...)`` parameter (was
+  documented and implemented, but ``render()`` did not pass it
+  through).
+
 1.0
 ---
 

Modified: FormEncode/trunk/formencode/htmlfill.py
===================================================================
--- FormEncode/trunk/formencode/htmlfill.py     2008-03-26 03:17:04 UTC (rev 
3357)
+++ FormEncode/trunk/formencode/htmlfill.py     2008-03-26 03:21:57 UTC (rev 
3358)
@@ -15,7 +15,8 @@
 def render(form, defaults=None, errors=None, use_all_keys=False,
            error_formatters=None, add_attributes=None,
            auto_insert_errors=True, auto_error_formatter=None,
-           text_as_default=False, listener=None, encoding=None):
+           text_as_default=False, listener=None, encoding=None,
+           error_class='error'):
     """
     Render the ``form`` (which should be a string) given the defaults
     and errors.  Defaults are the values that go in the input fields
@@ -69,6 +70,7 @@
         auto_error_formatter=auto_error_formatter,
         text_as_default=text_as_default,
         listener=listener, encoding=encoding,
+        error_class=error_class,
         )
     p.feed(form)
     p.close()


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs

Reply via email to