Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on Apr 02, 2013
@pborreli pborreli Fixed typos 605e5da
Commits on Apr 03, 2013
@kennethreitz Merge pull request #11 from pborreli/typos
Fixed typos
325e7ba
Showing with 5 additions and 5 deletions.
  1. +1 −1  README.rst
  2. +4 −4 elephant.py
View
2  README.rst
@@ -64,7 +64,7 @@ Reseeding ElasticSearch is super simple::
Indexing...
[#### ] 29/378
-Inpsiration
+Inspiration
-----------
Extracted out of the in-progress `blackbox <https://github.com/kennethreitz/blackbox>`_ project.
View
8 elephant.py
@@ -100,7 +100,7 @@ def mkdir_p(path):
def epoch(dt=None):
- """Returns the epoch value for the given datetime, defulting to now."""
+ """Returns the epoch value for the given datetime, defaulting to now."""
if not dt:
dt = datetime.utcnow()
@@ -126,7 +126,7 @@ def iter_search(self, query, **kwargs):
if query is None:
query = '*'
- # Pepare elastic search queries.
+ # Prepare elastic search queries.
params = {}
for (k, v) in kwargs.items():
params['es_{0}'.format(k)] = v
@@ -276,7 +276,7 @@ def seed():
@app.before_request
def require_apikey():
- """Blocks aunauthorized requests."""
+ """Blocks unauthorized requests."""
# TODO: Convert this to a decorator
if app.debug:
@@ -325,7 +325,7 @@ def post_collection(collection):
@app.route('/<collection>/<uuid>')
def get_record(collection, uuid):
- """Get a record from a given colection."""
+ """Get a record from a given collection."""
return jsonify(record=Collection(collection)[uuid].dict)
@app.route('/<collection>/<uuid>', methods=['POST'])

No commit comments for this range

Something went wrong with that request. Please try again.