Commit 0345d19e authored by Titouan Soulard's avatar Titouan Soulard

ERP5Type: fix dummy memcached placeholder

When trying to use `MemcachedTool` without the `python-memcached` package,
a dummy implementation is supposed to allow installation while giving a
warning when called.

This dummy implementation was broken because it was calling a wrong class,
named `_MemcachedTool`, which did not exist. Instead, `_MemcacheTool` did
exist and was used for the real implementation.

This commit renames `_MemcacheTool` to `_MemcachedTool` to allow dummy
implementation to work.
parent e9c62981
......@@ -37,7 +37,7 @@ from quopri import encodestring
import six
MEMCACHED_TOOL_MODIFIED_FLAG_PROPERTY_ID = '_v_memcached_edited'
class _MemcacheTool(BaseTool):
class _MemcachedTool(BaseTool):
id = "portal_memcached"
meta_type = "ERP5 Memcached Tool"
portal_type = "Memcached Tool"
......@@ -275,7 +275,7 @@ if memcache is not None:
allow_class(SharedDict)
class MemcachedTool(_MemcacheTool):
class MemcachedTool(_MemcachedTool):
"""
Memcached interface available as a tool.
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment