Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
7b5e6301
Commit
7b5e6301
authored
Dec 31, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factorise end-of-transaction cleanup code.
parent
d067ddf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
product/ERP5Type/Tool/MemcachedTool.py
product/ERP5Type/Tool/MemcachedTool.py
+4
-5
No files found.
product/ERP5Type/Tool/MemcachedTool.py
View file @
7b5e6301
...
@@ -145,13 +145,12 @@ if memcache is not None:
...
@@ -145,13 +145,12 @@ if memcache is not None:
LOG
(
'MemcacheTool'
,
0
,
'delete command to memcached server (%r) failed'
%
(
self
.
server_list
,))
LOG
(
'MemcacheTool'
,
0
,
'delete command to memcached server (%r) failed'
%
(
self
.
server_list
,))
except
:
except
:
LOG
(
'MemcachedDict'
,
0
,
'An exception occured during _finish'
,
error
=
True
)
LOG
(
'MemcachedDict'
,
0
,
'An exception occured during _finish'
,
error
=
True
)
self
.
scheduled_action_dict
.
clear
()
self
.
__cleanup
()
self
.
local_cache
.
clear
()
def
_abort
(
self
,
*
ignored
):
def
_abort
(
self
,
*
ignored
):
"""
self
.
__cleanup
()
Cleanup the action dict and invalidate local cache.
"""
def
__cleanup
(
self
):
self
.
local_cache
.
clear
()
self
.
local_cache
.
clear
()
self
.
scheduled_action_dict
.
clear
()
self
.
scheduled_action_dict
.
clear
()
...
...
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