[Pywps-devel] ComplexInput (instance) nature
Jorge de Jesus
jorge.de-jesus at jrc.it
Mon Jan 26 14:22:24 CET 2009
Hi Jachym et al.
I am a bit confused with the nature of the ComplexInput.
Considering the following process
# init process
WPSProcess.__init__(self,
identifier="crossvalidationprocess", #the
same as the file name
title="K-fold CrossValidation Process",
version = "0.1",
storeSupported = "true",
statusSupported = "false",
abstract="boooo",
grassLocation =False)
#Process inputs
self.DataIn =
self.addComplexInput(identifier="ObservationCollection",
title = "dummy",
abstract="boo2")
self.Kfold=self.addLiteralInput(identifier = "kfold",
title = "dummy2",
default="10",
minOccurs=0,
allowedValues=[1, 100]
)
self.ResultOut=self.addComplexOutput(identifier="CVResult",
title="foo")
In the execute I need to access the raw xml input so I can parse the
inputs and to some calculations
Doing the following in the execute function of the process:
XMLData=self.DataIn.getValue()
The XMLData will be a small str object with something like:
pywpsInputBvg3ir, it is not even an instance but a str type object
If i do something like:
self.ResultOut.setValue(self.getInputValue('ObservationCollection'))
I get the result output with the XML content of the data input, and
things seem ok
Could someone give me an indication on how to access the raw XML
content ?! or what is going on with this pywpsInputBvg3ir string ?!
Also, I am not familiar with the version numbering policy but shouldn't
the wps.py file in the SNV have
__version__="3.0.1rc1-svn"
Thanks in advance
Jorge
PS: I att the request file
--
Ph.D. Jorge Samuel Mendes de Jesus
European Commission (EC)
Joint Research Centre Directorate (DG JRC)
Institute for Environment and Sustainability (IES)
TP 441, Via Fermi 1
21020 Ispra (VA)
Italy
Phone: +39 0332 78 3536
Fax: +39 0332 78 5466
http://rem.jrc.ec.europa.eu
"The views expressed are purely those of the writer and may not in any circumstances be regarded as stating an official position of the European Commission"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crossvalidationrequest.xml
Type: text/xml
Size: 13280 bytes
Desc: not available
Url : http://lists.wald.intevation.org/pipermail/pywps-devel/attachments/20090126/edcadd43/crossvalidationrequest.bin
More information about the Pywps-devel
mailing list