[Soap-Python] Missing import in soaplib "Quick examples"
Uku Loskit
ukuloskit at gmail.com
Thu Sep 1 18:42:35 CEST 2011
Hello!
I think there is a missing import here:
http://soaplib.github.com/soaplib/2_0/pages/helloworld.html#declaring-a-soaplib-service
import soaplibfrom soaplib.core.service import rpc, DefinitionBasefrom
soaplib.core.model.primitive import String, Integerfrom
soaplib.core.server import wsgifrom soaplib.core.model.clazz import
Array
class HelloWorldService(DefinitionBase):
@soap(String,Integer,_returns=Array(String))
...
It should read
from soaplib.core.service import rpc, DefinitionBase, soap
Otherwise the soap decorator will show up as undefined.
Uku Loskit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/soap/attachments/20110901/48f5f444/attachment.html>
More information about the Soap
mailing list