Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

renamed 'uber' to 'location'

  • Loading branch information...
commit 34a4a083a565a5e50f25f6fe95631c2b918c9a48 1 parent 68bee3a
@zackdever authored
Showing with 20 additions and 20 deletions.
  1. +1 −1  .gitignore
  2. +4 −4 {uber → location}/__init__.py
  3. +1 −1  {uber → location}/api/__init__.py
  4. +1 −1  {uber → location}/api/errors.py
  5. 0  {uber → location}/api/models.py
  6. +1 −1  {uber → location}/api/utils.py
  7. +4 −4 {uber → location}/api/views.py
  8. +2 −2 {uber → location}/auth/__init__.py
  9. 0  {uber → location}/auth/models.py
  10. +2 −2 {uber → location}/auth/views.py
  11. +1 −1  {uber → location}/config.py
  12. 0  {uber → location}/db.py
  13. +1 −1  {uber → location}/ui/__init__.py
  14. 0  {uber → location}/ui/static/css/index.css
  15. 0  {uber → location}/ui/static/imgs/destroy.png
  16. 0  {uber → location}/ui/static/index.css
  17. 0  {uber → location}/ui/static/js/collections.locations.js
  18. 0  {uber → location}/ui/static/js/index.js
  19. 0  {uber → location}/ui/static/js/models.location.js
  20. 0  {uber → location}/ui/static/js/vendor/backbone.js
  21. 0  {uber → location}/ui/static/js/vendor/jquery.js
  22. 0  {uber → location}/ui/static/js/vendor/underscore.js
  23. 0  {uber → location}/ui/static/js/views.address.js
  24. 0  {uber → location}/ui/static/js/views.app.js
  25. 0  {uber → location}/ui/static/js/views.location.js
  26. 0  {uber → location}/ui/static/js/views.map.js
  27. 0  {uber → location}/ui/static/js/views.namelocation.js
  28. 0  {uber → location}/ui/templates/index.html
  29. 0  {uber → location}/ui/templates/layout.html
  30. 0  {uber → location}/ui/templates/login.html
  31. 0  {uber → location}/ui/templates/register.html
  32. +1 −1  {uber → location}/ui/views.py
  33. +1 −1  runserver.py
View
2  .gitignore
@@ -34,4 +34,4 @@ nosetests.xml
.project
.pydevproject
-uber/local_config.py
+location/local_config.py
View
8 uber/__init__.py → location/__init__.py
@@ -2,10 +2,10 @@
from flask import Flask
-from uber import db
-from uber.api import api
-from uber.auth import auth, setup_auth
-from uber.ui import ui
+from location import db
+from location.api import api
+from location.auth import auth, setup_auth
+from location.ui import ui
# create a Flask app
app = Flask(__name__, static_folder='./ui/static')
View
2  uber/api/__init__.py → location/api/__init__.py
@@ -2,4 +2,4 @@
api = Blueprint('api', __name__)
-import uber.api.views
+import location.api.views
View
2  uber/api/errors.py → location/api/errors.py
@@ -1,7 +1,7 @@
from flask import request, jsonify
from pymongo.errors import OperationFailure
-from uber.api import api
+from location.api import api
@api.errorhandler(400)
def bad_request(message=None):
View
0  uber/api/models.py → location/api/models.py
File renamed without changes
View
2  uber/api/utils.py → location/api/utils.py
@@ -3,7 +3,7 @@
from bson.objectid import ObjectId
from flask import request, abort
-from uber.api.errors import bad_request
+from location.api.errors import bad_request
def ensure_json_content_type(f):
"""Ensure the 'Content-Type' header is 'application/json'.
View
8 uber/api/views.py → location/api/views.py
@@ -6,10 +6,10 @@
from flask.ext.login import current_user, login_required
from pymongo.errors import OperationFailure
-from uber.api import api
-from uber.api.errors import server_error
-from uber.api.utils import ensure_json_content_type, get_or_404
-from uber.api.models import Location
+from location.api import api
+from location.api.errors import server_error
+from location.api.utils import ensure_json_content_type, get_or_404
+from location.api.models import Location
class LocationAPI(MethodView):
"""A simple REST API for locations (named address with lat/lng).
View
4 uber/auth/__init__.py → location/auth/__init__.py
@@ -2,7 +2,7 @@
from flask import Blueprint, current_app
from flask.ext.login import LoginManager
-from uber.auth.models import User
+from location.auth.models import User
auth = Blueprint('auth', __name__)
@@ -20,4 +20,4 @@ def load_user(userid):
user = current_app.db.users.find_one(ObjectId(userid))
return User(user['username'], user['_id']) if user else None
-import uber.auth.views
+import location.auth.views
View
0  uber/auth/models.py → location/auth/models.py
File renamed without changes
View
4 uber/auth/views.py → location/auth/views.py
@@ -4,8 +4,8 @@
from flask.ext.login import current_user, logout_user, login_user
from pymongo.errors import DuplicateKeyError
-from uber.auth import auth
-from uber.auth.models import User
+from location.auth import auth
+from location.auth.models import User
@auth.route('/login', methods=['GET', 'POST'])
def login():
View
2  uber/config.py → location/config.py
@@ -7,7 +7,7 @@
DB_HOST = 'localhost'
DB_PORT = 27017
-DATABASE = 'uber'
+DATABASE = 'location'
# https://developers.google.com/maps/documentation/javascript/tutorial#api_key
MAPS_API_KEY = ''
View
0  uber/db.py → location/db.py
File renamed without changes
View
2  uber/ui/__init__.py → location/ui/__init__.py
@@ -2,4 +2,4 @@
ui = Blueprint('ui', __name__, template_folder='templates')
-import uber.ui.views
+import location.ui.views
View
0  uber/ui/static/css/index.css → location/ui/static/css/index.css
File renamed without changes
View
0  uber/ui/static/imgs/destroy.png → location/ui/static/imgs/destroy.png
File renamed without changes
View
0  uber/ui/static/index.css → location/ui/static/index.css
File renamed without changes
View
0  uber/ui/static/js/collections.locations.js → location/ui/static/js/collections.locations.js
File renamed without changes
View
0  uber/ui/static/js/index.js → location/ui/static/js/index.js
File renamed without changes
View
0  uber/ui/static/js/models.location.js → location/ui/static/js/models.location.js
File renamed without changes
View
0  uber/ui/static/js/vendor/backbone.js → location/ui/static/js/vendor/backbone.js
File renamed without changes
View
0  uber/ui/static/js/vendor/jquery.js → location/ui/static/js/vendor/jquery.js
File renamed without changes
View
0  uber/ui/static/js/vendor/underscore.js → location/ui/static/js/vendor/underscore.js
File renamed without changes
View
0  uber/ui/static/js/views.address.js → location/ui/static/js/views.address.js
File renamed without changes
View
0  uber/ui/static/js/views.app.js → location/ui/static/js/views.app.js
File renamed without changes
View
0  uber/ui/static/js/views.location.js → location/ui/static/js/views.location.js
File renamed without changes
View
0  uber/ui/static/js/views.map.js → location/ui/static/js/views.map.js
File renamed without changes
View
0  uber/ui/static/js/views.namelocation.js → location/ui/static/js/views.namelocation.js
File renamed without changes
View
0  uber/ui/templates/index.html → location/ui/templates/index.html
File renamed without changes
View
0  uber/ui/templates/layout.html → location/ui/templates/layout.html
File renamed without changes
View
0  uber/ui/templates/login.html → location/ui/templates/login.html
File renamed without changes
View
0  uber/ui/templates/register.html → location/ui/templates/register.html
File renamed without changes
View
2  uber/ui/views.py → location/ui/views.py
@@ -1,7 +1,7 @@
from flask import current_app, render_template
from flask.ext.login import login_required
-from uber.ui import ui
+from location.ui import ui
@ui.route('/')
@login_required
View
2  runserver.py
@@ -2,6 +2,6 @@
Starts the server, as you might expect.
"""
-from uber import app
+from location import app
app.run()
Please sign in to comment.
Something went wrong with that request. Please try again.