Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
d0b77dd27740
Commit
c5fa0dd7
authored
Aug 21, 2009
by
Sylvain Thénault
Browse files
[wf] BaseTransition is a virtual type
--HG-- branch : 3.5
parent
643570a7770f
Changes
2
Hide whitespace changes
Inline
Side-by-side
entities/wfobjs.py
View file @
d0b77dd2
...
...
@@ -120,9 +120,12 @@ class BaseTransition(AnyEntity):
provides a specific may_be_fired method to check if the relation may be
fired by the logged user
"""
id
=
'Transition'
id
=
'
Base
Transition'
fetch_attrs
,
fetch_order
=
fetch_config
([
'name'
])
def
__init__
(
self
,
*
args
,
**
kwargs
):
raise
Exception
(
'should not be instantiated'
)
def
may_be_fired
(
self
,
eid
):
"""return true if the logged user may fire this transition
...
...
web/uicfg.py
View file @
d0b77dd2
...
...
@@ -149,12 +149,14 @@ primaryview_display_ctrl = DisplayCtrlRelationTags('primaryview_display_ctrl',
# * 'application'
# * 'system'
# * 'schema'
# * 'hidden'
# * 'subobject' (not displayed by default)
indexview_etype_section
=
{
'EmailAddress'
:
'subobject'
,
'CWUser'
:
'system'
,
'CWGroup'
:
'system'
,
'CWPermission'
:
'system'
,
'BaseTransition'
:
'hidden'
,
}
...
...
Write
Preview
Supports
Markdown
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