Skip to content

Commit

Permalink
Actually using the provided params for client
Browse files Browse the repository at this point in the history
  • Loading branch information
thekad committed Nov 26, 2012
1 parent 9fd709e commit a97ca6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bottle_memcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ def setup(self, app):

def apply(self, callback, context):
conf = context['config'].get('memcache') or {}
servers = conf.get('servers', self.servers)
keyword = conf.get('keyword', self.keyword)
server_max_value_length = conf.get('server_max_value_length',
self.servers = conf.get('servers', self.servers)
self.keyword = conf.get('keyword', self.keyword)
self.server_max_value_length = conf.get('server_max_value_length',
self.server_max_value_length)

args = inspect.getargspec(context['callback'])[0]
if keyword not in args:
if self.keyword not in args:
return callback

def wrapper(*args, **kwargs):
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@

setup(
name = 'bottle-memcache',
version = '0.2',
version = '0.2.1',
url = 'http://github.com/bottlepy/bottle-extras/',
description = 'Memcache integration for Bottle.',
author = 'Jorge Gallegos',
author_email = '[email protected]',
license = 'MIT',
platforms = 'any',
zip_safe = False,
py_modules = [
'bottle_memcache'
],
Expand Down

0 comments on commit a97ca6d

Please sign in to comment.