On Wed, Apr 10, 2019 at 11:37 PM David Marteau wrote:
>
> > Le 10 avr. 2019 à 23:21, pblottiere a
> écrit :
> >
> > Hi David,
> >
> >
> >> If you try:
> >>
> >> request.setParameter('FOOBAR','foobar')
> >>
> >> then
> >>
> >> request.parameter('FOOBAR')
> >>
> >> then you get an empty string,
>
> Le 10 avr. 2019 à 23:21, pblottiere a écrit :
>
> Hi David,
>
>
>> If you try:
>>
>> request.setParameter('FOOBAR','foobar')
>>
>> then
>>
>> request.parameter('FOOBAR')
>>
>> then you get an empty string,
>>> Even if I add an 'allowed' parameter by hand:
>>>
Hi David,
> If you try:
>
> request.setParameter('FOOBAR','foobar')
>
> then
>
> request.parameter('FOOBAR')
>
> then you get an empty string,
>> Even if I add an 'allowed' parameter by hand:
>>
>>> request.setParameter('FI_POINT_TOLERANCE','25')
Actually, QgsServerRequest and
To add some precision:
Even if I add an 'allowed' parameter by hand:
> request.setParameter('FI_POINT_TOLERANCE','25')
then
> request.parameter('FI_POINT_TOLERANCE')
return an empty string
> Le 10 avr. 2019 à 19:46, David Marteau a écrit :
>
>
> Hi devs,
>
> I found a strange and
Hi devs,
I found a strange and seemingly inconsistent behavior when accessing
QgsServerRequest parameters:
If you try:
request.setParameter('FOOBAR','foobar')
then
request.parameter('FOOBAR')
then you get an empty string,
If you call
request.parameters()
Then your get a dictionary with