Module Expr Str Expr Str Import alias Import alias Import alias Import alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return NameLoad ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return NameLoad ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr attr keyword NameLoad attr keyword NameLoad attr keyword NameLoad attr keyword NameLoad attr keyword NameLoad attr Str If UnaryOpNot Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad orelse Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list
N/A N/A 
   Copyright 2010 Daniel Graziotin <daniel.graziotin@acm.org>

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 N/A This module holds all the methods that a Driver needs. N/A datetime N/A models N/A utils N/A django.core.exceptions insertTrip N/A N/A trip author source destination modality preferences N/A N/A N/A 
    Inserts a trip in the system. It may be either started or not. It also
    checks the validity of each object supplied
     N/A N/A N/A N/A N/A source full_clean N/A N/A N/A destination full_clean N/A N/A N/A modality full_clean N/A N/A N/A preferences full_clean N/A N/A N/A source save N/A N/A N/A destination save N/A N/A N/A modality save N/A N/A N/A preferences save N/A N/A N/A N/A N/A N/A django core exceptions ValidationError N/A e N/A N/A resp N/A N/A models Response N/A N/A models Response BAD_REQUEST Message e N/A resp N/A N/A Exception N/A e N/A N/A resp N/A N/A models Response N/A N/A models Response BAD_REQUEST Message e N/A resp N/A N/A trip author author N/A N/A trip modality modality N/A N/A trip preferences preferences N/A N/A N/A N/A N/A trip full_clean N/A N/A N/A trip save N/A N/A N/A N/A N/A N/A django core exceptions ValidationError N/A e N/A N/A resp N/A N/A models Response N/A N/A models Response BAD_REQUEST Message e N/A resp N/A N/A Exception N/A e N/A N/A resp N/A N/A models Response N/A N/A models Response BAD_REQUEST Message e N/A resp N/A N/A N/A N/A trip locations add source N/A N/A N/A N/A trip locations add destination N/A participation N/A N/A models Participation author author trip trip role driver N/A N/A N/A participation save N/A resp N/A N/A models Response N/A N/A models Response CREATED Trip trip N/A resp N/A startTrip N/A N/A trip driver N/A N/A N/A 
    Sets a Trip as started. 
     N/A participation N/A N/A N/A N/A models Participation objects get trip N/A trip id role driver N/A N/A participation started N/A N/A resp N/A N/A models Response N/A N/A models Response DUPLICATE_ENTRY Message N/A N/A models Response TRIP_ALREADY_STARTED N/A resp N/A N/A N/A trip author driver N/A N/A resp N/A N/A models Response N/A N/A models Response FORBIDDEN Message N/A N/A models Response PERSON_NOT_AUTHORIZED N/A resp N/A N/A participation started True N/A N/A participation started_timestamp N/A N/A N/A datetime datetime now N/A N/A N/A N/A participation started_position_id N/A driver location_id N/A N/A N/A N/A N/A models Location DoesNotExist N/A N/A N/A participation started_position None N/A N/A N/A participation save N/A N/A trip active True N/A N/A N/A trip save N/A resp N/A N/A models Response N/A N/A models Response ALL_OK Trip trip N/A resp N/A getRides N/A N/A trip driver N/A N/A N/A 
    Returns all pending ride requests for a trip
     N/A N/A N/A trip author driver N/A N/A resp N/A N/A models Response N/A N/A models Response FORBIDDEN Message N/A N/A models Response PERSON_NOT_AUTHORIZED N/A resp N/A participations_for_trip N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A models Participation objects filter trip N/A trip id exclude author driver filter started False filter finished False filter requested True filter requested_deleted False only author N/A N/A N/A len participations_for_trip N/A N/A resp N/A N/A models Response N/A N/A models Response NOT_FOUND Message N/A N/A models Response RIDE_REQUESTS_NOT_FOUND N/A resp N/A N/A participations N/A N/A participation author N/A participation participations_for_trip N/A resp N/A N/A models Response N/A N/A models Response ALL_OK Person[] participations N/A resp N/A acceptRide N/A N/A trip driver passenger N/A N/A N/A 
    Accept a ride request of a passenger
     N/A N/A N/A passenger_participation N/A N/A N/A N/A models Participation objects get trip N/A trip id author N/A passenger id N/A N/A N/A N/A N/A models Participation DoesNotExist N/A N/A resp N/A N/A models Response N/A N/A models Response NOT_FOUND Message N/A N/A models Response PERSON_NOT_FOUND N/A resp N/A N/A N/A passenger_participation requested N/A N/A passenger_participation accepted N/A N/A N/A passenger_participation accepted True N/A N/A passenger_participation accepted_timestamp N/A N/A N/A datetime datetime now N/A N/A N/A N/A passenger_participation accepted_position_id N/A passenger location_id N/A N/A N/A N/A N/A models Location DoesNotExist N/A N/A N/A passenger_participation accepted_position None N/A N/A N/A passenger_participation save N/A resp N/A N/A models Response N/A N/A models Response ALL_OK Participation passenger_participation N/A resp N/A resp N/A N/A models Response N/A N/A models Response DUPLICATE_ENTRY Message N/A N/A models Response RIDE_REQUEST_REFUSED N/A resp N/A refuseRide N/A N/A trip passenger N/A N/A N/A 
    Refuse a ride request of a passenger
     N/A N/A N/A passenger_participation N/A N/A N/A N/A models Participation objects get trip N/A trip id author N/A passenger id N/A N/A N/A N/A N/A models Participation DoesNotExist N/A N/A resp N/A N/A models Response N/A N/A models Response NOT_FOUND Message N/A N/A models Response PERSON_NOT_FOUND N/A resp N/A N/A passenger_participation refused True N/A N/A passenger_participation refused_timestamp N/A N/A N/A datetime datetime now N/A N/A N/A N/A passenger_participation refused_position_id N/A passenger location_id N/A N/A N/A N/A N/A models Location DoesNotExist N/A N/A N/A passenger_participation accepted_position None N/A N/A N/A passenger_participation save N/A resp N/A N/A models Response N/A N/A models Response DELETED Participation N/A N/A models Response RIDE_REQUEST_REFUSED N/A resp N/A finishTrip N/A N/A trip driver N/A N/A N/A 
    Sets a Trip as finished.
     N/A N/A N/A driver is_participating N/A N/A participation N/A N/A driver get_active_participation N/A N/A participation finished True N/A N/A participation finished_timestamp N/A N/A utils now N/A N/A N/A participation save N/A N/A trip active False N/A N/A N/A trip save N/A resp N/A N/A models Response N/A N/A models Response DELETED Message N/A N/A models Response TRIP_DELETED N/A resp N/A