#NEWLINE# def get_user_location( self ) : #NEWLINE# #INDENT# 'Returns a Point object that represent the location of a user, if\n        the user did not allow us to use his location it returns a Point with\n        a default predefined location.' #NEWLINE# session = self . request . session #NEWLINE# lat = float ( session . get ( 'location' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . get ( 'lat' , settings . LATITUDE ) ) #NEWLINE# lon = float ( session . get ( 'location' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . get ( 'lon' , settings . LONGITUDE ) ) #NEWLINE# return Point ( lon , lat )