Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mukul
erp5
Commits
c254f2e7
Commit
c254f2e7
authored
May 05, 2011
by
Nicolas Delaby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use _getPersistentMemcachedServerDict in order to configure
distributed cache plugins correctly
parent
51c9f711
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
product/ERP5Type/tests/testCacheTool.py
product/ERP5Type/tests/testCacheTool.py
+4
-1
No files found.
product/ERP5Type/tests/testCacheTool.py
View file @
c254f2e7
...
...
@@ -32,6 +32,7 @@ import unittest
from
Testing
import
ZopeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
_getPersistentMemcachedServerDict
from
Products.ERP5Type.CachePlugins.DummyCache
import
DummyCache
from
AccessControl.SecurityManagement
import
newSecurityManager
from
Products.ERP5Type.Cache
import
CachingMethod
...
...
@@ -98,9 +99,11 @@ class TestCacheTool(ERP5TypeTestCase):
portal_memcached
=
self
.
getPortal
().
portal_memcached
memcached_plugin_id
=
'flare'
if
getattr
(
portal_memcached
,
memcached_plugin_id
,
None
)
is
None
:
connection_dict
=
_getPersistentMemcachedServerDict
()
url_string
=
'%(hostname)s:%(port)s'
%
connection_dict
portal_memcached
.
newContent
(
portal_type
=
'Memcached Plugin'
,
id
=
memcached_plugin_id
,
url_string
=
'127.0.0.1:12121'
,
url_string
=
url_string
,
server_max_key_length
=
0
,
server_max_value_length
=
0
,
priority
=
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment