map_app.lib module

class map_app.lib.FlowClient(request, client_secret_json='/home/docs/checkouts/readthedocs.org/user_builds/django-google-app/checkouts/latest/client_id.json', scope='https://www.googleapis.com/auth/fusiontables', redirect_url='http://localhost:8000/oauth2callback')[source]

FlowClient to manage credentials.

class map_app.lib.FusionTableMixin[source]

Mixin to manage Interactions with google fusion table.

classmethod address_model_to_dict(address)[source]

Convert the map_app.models.Address instance to a dict.

Parameters:address (map_app.models.Address) – The address model instance.
Return type:dict
map_app.lib.verify_client_id_json(filename)[source]

Verify the required client_id.json values are set.

A context manager to parse the client_id.json and set the missing values with the env vars. :param filename: Client id json filename. :type filename: str