Don't use the validate decorator in the first-page example

--HG--
extra : rebase_source : 153daebe942416e88c82099eb362aeb757d7d6e7
This commit is contained in:
Christophe de Vienne 2013-02-08 21:42:39 +01:00
parent a1ec8103a7
commit dfeaea4f77

View File

@ -26,8 +26,8 @@ Here is a standalone wsgi example::
from wsme import WSRoot, expose, validate from wsme import WSRoot, expose, validate
class MyService(WSRoot): class MyService(WSRoot):
@expose(unicode) @expose(unicode, unicode) # First parameter is the return type,
@validate(unicode) # then the function argument types
def hello(self, who=u'World'): def hello(self, who=u'World'):
return u"Hello {0} !".format(who) return u"Hello {0} !".format(who)