Author: ianb
Date: 2008-12-10 21:08:21 -0700 (Wed, 10 Dec 2008)
New Revision: 3724
Modified:
FormEncode/trunk/formencode/schema.py
Log:
Make SimpleFormValidate try to replicate the function's __doc__
Modified: FormEncode/trunk/formencode/schema.py
===================================================================
--- FormEncode/trunk/formencode/schema.py 2008-12-11 02:59:33 UTC (rev
3723)
+++ FormEncode/trunk/formencode/schema.py 2008-12-11 04:08:21 UTC (rev
3724)
@@ -457,7 +457,12 @@
def decorate(cls, **kw):
def decorator(func):
- return cls(func, **kw)
+ result = cls(func, **kw)
+ try:
+ result.__doc__ = func.__doc__
+ except:
+ pass
+ return result
return decorator
decorate = classmethod(decorate)
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs