Skip to content

Commit

Permalink
remove unused stuff
Browse files Browse the repository at this point in the history
the view code is for docs later
  • Loading branch information
Reed O'Brien committed Sep 23, 2011
1 parent 3e6d9a6 commit bb93fce
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lumin/grid_fs.py
Expand Up @@ -11,7 +11,6 @@
from pyramid.response import Response
from pyramid.security import Allow
from pyramid.url import route_url
from pyramid.view import view_config


class MongoUploadTmpStore(object):
Expand Down Expand Up @@ -112,12 +111,8 @@ def response(self):


#@view_config(route_name='files')
def grid_files(request):
"""Return a file from the GridFS based on its OID.
Set MimeType, ContentLength, etc appropriately.
If our GridFS object doesn't have these, omit them from HTTP headers.
"""
return request.context.response()
# def grid_files(request):
# return request.context.response()


#def add_gridfs_routes(config):
Expand Down

0 comments on commit bb93fce

Please sign in to comment.