Issues

Issue #9 new

loop redis keys

magik cypress
created an issue

For python 2.6

$ src/storage.py

77 > for key in self.redis.keys('title:*'):
77 < for key in self.redis.keys('title:*').split():

redis.keys send a string with python 2.6. use split for create string to list

Comments (4)

  1. magik cypress reporter

    Yes i use redis-2.7.2-py2.6 for my remote server with Python 2.6. On my local desktop, I use redis-2.7.2-py2.7 with Python 2.7 and I doesn't have any problem.

    title:http://www.kloh.fr/debuter-avec-sass-et-compass-68 title:http://sametmax.com/feed/atom/ title:http://rezo.net/ title:https://larlet.fr/ title:http://angular-ui.github.com/bootstrap/
    INFO:werkzeug:127.0.0.1 - - [26/Mar/2013 14:00:19] "GET /a HTTP/1.0" 500 -
    ERROR:werkzeug:Error on request:
    Traceback (most recent call last):
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/lib/python2.6/site-packages/werkzeug/serving.py", line 159, in run_wsgi
        execute(app)
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/lib/python2.6/site-packages/werkzeug/serving.py", line 146, in execute
        application_iter = app(environ, start_response)
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/src/browser.py", line 167, in __call__
        return self.wsgi_app(environ, start_response)
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/lib/python2.6/site-packages/werkzeug/wsgi.py", line 411, in __call__
        return self.app(environ, start_response)
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/src/browser.py", line 163, in wsgi_app
        response = self.dispatch_request(request)
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/src/browser.py", line 157, in dispatch_request
        return getattr(self, 'on_' + endpoint)(request, **values)
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/src/browser.py", line 135, in on_render_archives
        archives = self.storage.retrieve_archives()
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/src/storage.py", line 80, in retrieve_archives
        'url': key.split(':', 1)[1],
    IndexError: list index out of range
    
  2. Log in to comment