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
cubes
cmt
Commits
e8828ef8c54c
Commit
8efdb96d
authored
Jun 22, 2011
by
Nicolas Chauvat
Browse files
[views] fix wrong message in registration box (closes #1765191)
parent
6b4faeb31031
Changes
1
Hide whitespace changes
Inline
Side-by-side
views.py
View file @
e8828ef8
...
...
@@ -78,9 +78,10 @@ class ConferenceRegistrationComponent(component.CtxComponent):
if
reg_open
:
self
.
label
=
register_now
else
:
has_cart
=
self
.
_cw
.
execute
(
'Any C WHERE U eid %(x)s, C buyer U'
,
{
'x'
:
self
.
_cw
.
user
.
eid
})
items
=
self
.
_cw
.
execute
(
'Any I WHERE U eid %(x)s, C buyer U, C items_in_cart I'
,
{
'x'
:
self
.
_cw
.
user
.
eid
})
has_cart
=
self
.
_cw
.
execute
(
'Any SC WHERE U eid %(x)s, SC buyer U'
,
{
'x'
:
self
.
_cw
.
user
.
eid
})
items
=
self
.
_cw
.
execute
(
'Any I WHERE U eid %(u)s, SC buyer U, SC items_in_cart I, '
'I item_type T, C has_shoppingitemtype T, C eid %(c)s'
,
{
'u'
:
self
.
_cw
.
user
.
eid
,
'c'
:
self
.
conf
.
eid
})
if
has_cart
:
if
items
:
state
=
has_cart
.
get_entity
(
0
,
0
).
cw_adapt_to
(
'IWorkflowable'
).
state
...
...
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