Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
d3cd8bd20ee5
Commit
f4623bfb
authored
Aug 21, 2009
by
Sylvain Thénault
Browse files
override clear_all_caches to clear cwetype_workflow cache
--HG-- branch : 3.5
parent
083593802120
Changes
1
Hide whitespace changes
Inline
Side-by-side
entities/wfobjs.py
View file @
d3cd8bd2
...
...
@@ -9,7 +9,7 @@ __docformat__ = "restructuredtext en"
from
warnings
import
warn
from
logilab.common.decorators
import
cached
from
logilab.common.decorators
import
cached
,
clear_cache
from
logilab.common.deprecation
import
deprecated
from
cubicweb.entities
import
AnyEntity
,
fetch_config
...
...
@@ -370,6 +370,11 @@ class WorkflowableMixIn(object):
(
'wf_info_for'
,
'E'
),
S
=
state
.
eid
,
E
=
self
.
eid
,
**
self
.
_get_tr_kwargs
(
comment
,
commentformat
))
def
clear_all_caches
(
self
):
super
(
WorkflowableMixIn
,
self
).
clear_all_caches
()
clear_cache
(
self
,
'cwetype_workflow'
)
@
deprecated
(
'get transition from current workflow and use its may_be_fired method'
)
def
can_pass_transition
(
self
,
trname
):
"""return the Transition instance if the current user can fire the
...
...
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