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
Labels
Merge Requests
146
Merge Requests
146
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
4889d523
Commit
4889d523
authored
Dec 31, 2012
by
Vincent Pelletier
3
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:
},)
+
BaseTool
.
manage_options
memcached_tool_configure
=
DTMLFile
(
'memcached_tool_configure'
,
_dtmldir
)
erp5_site_global_id
=
''
def
_getMemcachedDict
(
self
,
plugin_path
):
"""
...
...
@@ -344,7 +345,7 @@ if memcache is not None:
plugin_path
relative_url of dedicated Memcached Plugin
"""
global_prefix
=
getattr
(
self
,
'erp5_site_global_id'
,
''
)
global_prefix
=
self
.
erp5_site_global_id
if
global_prefix
:
key_prefix
=
'%s_%s'
%
(
global_prefix
,
key_prefix
)
return
SharedDict
(
self
.
_getMemcachedDict
(
plugin_path
),
prefix
=
key_prefix
)
...
...
Jérome Perrin
@jerome
mentioned in commit
6c60d2f5
·
Jul 05, 2023
mentioned in commit
6c60d2f5
mentioned in commit 6c60d2f59c15ae0ce2086cf02328c27fb8b5450a
Toggle commit list
Jérome Perrin
@jerome
mentioned in merge request
!1797
·
Jul 05, 2023
mentioned in merge request
!1797
mentioned in merge request !1797
Toggle commit list
Jérome Perrin
@jerome
mentioned in commit
df9a0b92
·
Apr 08, 2024
mentioned in commit
df9a0b92
mentioned in commit df9a0b92209583db450bd8aff3c9f1e0da58b299
Toggle commit list
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