Answered on StackOverflow: http://stackoverflow.com/a/14341931/440323

On Tuesday, January 15, 2013 3:19:13 AM UTC-5, Mihir Lade wrote:
>
> Hi Anthony, 
>
> Thanks for your reply.
>
> The code to searchFlights is as below:
>
> def searchFlights():
>     return dict()
>
> def show():
> *    receivedFlights = 
> request.vars.originCity+','+request.vars.destCity+','+request.vars.type+','+request.vars.deptDate+','+request.vars.arrivalDate+','+request.vars.vlassType+','+request.vars.noOfAdults+','+request.vars.noOfChildren+','+request.vars.noOfInfants
> *
>     return dict(txt1=recievedflights, 
> flights=db().select(db.Flight.request.originCity+','+request.vars.destCity+','+request.vars.type+','+request.vars.deptDate+','+request.vars.arrivalDate+','+request.vars.classType+','+request.vars.noOfAdults+','+request.vars.noOfChildren+','+request.vars.noOfInfants))
>
> However I am currently getting an error with this:-
>
>     receivedFlights = 
> request.vars.originCity+','+request.vars.destCity+','+request.vars.type+','+request.vars.deptDate+','+request.vars.arrivalDate+','+request.vars.vlassType+','+request.vars.noOfAdults+','+request.vars.noOfChildren+','+request.vars.noOfInfants
> TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
>
> The error is with the line being highlighted above.. 
>
> I am not to sure as to how I can fix this error... 
>
>
>

-- 



Reply via email to