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
Sven Franck
erp5
Commits
4889d523
Commit
4889d523
authored
Dec 31, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define property's default value at class level.
parent
2834ff70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5Type/Tool/MemcachedTool.py
product/ERP5Type/Tool/MemcachedTool.py
+2
-1
No files found.
product/ERP5Type/Tool/MemcachedTool.py
View file @
4889d523
...
@@ -308,6 +308,7 @@ if memcache is not None:
...
@@ -308,6 +308,7 @@ if memcache is not None:
},)
+
BaseTool
.
manage_options
},)
+
BaseTool
.
manage_options
memcached_tool_configure
=
DTMLFile
(
'memcached_tool_configure'
,
_dtmldir
)
memcached_tool_configure
=
DTMLFile
(
'memcached_tool_configure'
,
_dtmldir
)
erp5_site_global_id
=
''
def
_getMemcachedDict
(
self
,
plugin_path
):
def
_getMemcachedDict
(
self
,
plugin_path
):
"""
"""
...
@@ -344,7 +345,7 @@ if memcache is not None:
...
@@ -344,7 +345,7 @@ if memcache is not None:
plugin_path
plugin_path
relative_url of dedicated Memcached Plugin
relative_url of dedicated Memcached Plugin
"""
"""
global_prefix
=
getattr
(
self
,
'erp5_site_global_id'
,
''
)
global_prefix
=
self
.
erp5_site_global_id
if
global_prefix
:
if
global_prefix
:
key_prefix
=
'%s_%s'
%
(
global_prefix
,
key_prefix
)
key_prefix
=
'%s_%s'
%
(
global_prefix
,
key_prefix
)
return
SharedDict
(
self
.
_getMemcachedDict
(
plugin_path
),
prefix
=
key_prefix
)
return
SharedDict
(
self
.
_getMemcachedDict
(
plugin_path
),
prefix
=
key_prefix
)
...
...
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