Skip to content

AttributeError: 'TimeGate' object has no attribute 'cache' #21

Description

@skbly7
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/local.py", line 224, in application
    return ClosingIterator(app(environ, start_response), self.cleanup)
  File "./timegate/application.py", line 290, in application
    return app(environ, start_response)
  File "./timegate/application.py", line 178, in __call__
    return self.wsgi_app(environ, start_response)
  File "./timegate/application.py", line 173, in wsgi_app
    response = self.dispatch_request(request)
  File "./timegate/application.py", line 165, in dispatch_request
    return getattr(self, endpoint)(**values)
  File "./timegate/application.py", line 230, in timegate
    mementos = self.get_all_mementos(uri_r)
  File "./timegate/application.py", line 201, in get_all_mementos
    if hasattr(self, 'cache') and request.cache_control != 'no-cache':
AttributeError: 'TimeGate' object has no attribute 'cache'

System:
Ubuntu 14.10
Python 2.7.6

Command used:
uwsgi --http :9999 -s /tmp/mysock.sock --module timegate.application --callable application --ini timegate/conf/config.ini

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions