Don't use the validate decorator in the first-page example
--HG-- extra : rebase_source : 153daebe942416e88c82099eb362aeb757d7d6e7
This commit is contained in:
parent
a1ec8103a7
commit
dfeaea4f77
@ -26,8 +26,8 @@ Here is a standalone wsgi example::
|
||||
from wsme import WSRoot, expose, validate
|
||||
|
||||
class MyService(WSRoot):
|
||||
@expose(unicode)
|
||||
@validate(unicode)
|
||||
@expose(unicode, unicode) # First parameter is the return type,
|
||||
# then the function argument types
|
||||
def hello(self, who=u'World'):
|
||||
return u"Hello {0} !".format(who)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user