Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Paul Graydon
slapos.core
Commits
9277c236
Commit
9277c236
authored
Dec 11, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent calling HostingSubscription_requestUpdateOpenSaleOrder in URL.
parent
959edf00
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/HostingSubscription_requestUpdateOpenSaleOrder.xml
...unting/HostingSubscription_requestUpdateOpenSaleOrder.xml
+6
-2
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingAlarm.py
..._accounting/TestTemplateItem/testSlapOSAccountingAlarm.py
+9
-0
master/bt5/slapos_accounting/bt/revision
master/bt5/slapos_accounting/bt/revision
+1
-1
No files found.
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/HostingSubscription_requestUpdateOpenSaleOrder.xml
View file @
9277c236
...
@@ -50,7 +50,11 @@
...
@@ -50,7 +50,11 @@
</item>
</item>
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
if context.getCausalityState() != \'diverged\':\n
<value>
<string>
from zExceptions import Unauthorized\n
if REQUEST is not None:\n
raise Unauthorized\n
\n
if context.getCausalityState() != \'diverged\':\n
return\n
return\n
person = context.getDestinationSectionValue()\n
person = context.getDestinationSectionValue()\n
if person is not None:\n
if person is not None:\n
...
@@ -60,7 +64,7 @@ context.converge()\n
...
@@ -60,7 +64,7 @@ context.converge()\n
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
REQUEST=None
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingAlarm.py
View file @
9277c236
...
@@ -14,6 +14,7 @@ import os
...
@@ -14,6 +14,7 @@ import os
import
tempfile
import
tempfile
from
DateTime
import
DateTime
from
DateTime
import
DateTime
from
Products.ERP5Type.DateUtils
import
addToDate
from
Products.ERP5Type.DateUtils
import
addToDate
from
zExceptions
import
Unauthorized
class
Simulator
:
class
Simulator
:
def
__init__
(
self
,
outfile
,
method
,
to_return
=
None
):
def
__init__
(
self
,
outfile
,
method
,
to_return
=
None
):
...
@@ -748,6 +749,14 @@ class TestOpenSaleOrderAlarm(testSlapOSMixin):
...
@@ -748,6 +749,14 @@ class TestOpenSaleOrderAlarm(testSlapOSMixin):
subscription
.
workflow_history
[
'edit_workflow'
][
-
1
][
'comment'
])
subscription
.
workflow_history
[
'edit_workflow'
][
-
1
][
'comment'
])
class
TestHostingSubscription_requestUpdateOpenSaleOrder
(
testSlapOSMixin
):
class
TestHostingSubscription_requestUpdateOpenSaleOrder
(
testSlapOSMixin
):
def
test_REQUEST_disallowed
(
self
):
subscription
=
self
.
portal
.
hosting_subscription_module
\
.
template_hosting_subscription
.
Base_createCloneDocument
(
batch_mode
=
1
)
self
.
assertRaises
(
Unauthorized
,
subscription
.
HostingSubscription_requestUpdateOpenSaleOrder
,
REQUEST
=
{})
def
test_empty_HostingSubscription
(
self
):
def
test_empty_HostingSubscription
(
self
):
person
=
self
.
portal
.
person_module
.
template_member
\
person
=
self
.
portal
.
person_module
.
template_member
\
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
Base_createCloneDocument
(
batch_mode
=
1
)
...
...
master/bt5/slapos_accounting/bt/revision
View file @
9277c236
205
206
\ No newline at end of file
\ No newline at end of file
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