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
Labels
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
30d65069
Commit
30d65069
authored
Jan 03, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just like in real alarm, switch to super user.
parent
248eb9e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
master/product/Vifib/tests/VifibMixin.py
master/product/Vifib/tests/VifibMixin.py
+9
-3
No files found.
master/product/Vifib/tests/VifibMixin.py
View file @
30d65069
...
@@ -28,7 +28,8 @@
...
@@ -28,7 +28,8 @@
##############################################################################
##############################################################################
import
transaction
import
transaction
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
AccessControl.SecurityManagement
import
newSecurityManager
from
AccessControl.SecurityManagement
import
newSecurityManager
,
\
getSecurityManager
,
setSecurityManager
from
Products.ERP5Type.tests.utils
import
DummyMailHost
from
Products.ERP5Type.tests.utils
import
DummyMailHost
import
os
import
os
from
DateTime
import
DateTime
from
DateTime
import
DateTime
...
@@ -334,8 +335,13 @@ class testVifibMixin(ERP5TypeTestCase):
...
@@ -334,8 +335,13 @@ class testVifibMixin(ERP5TypeTestCase):
def
stepTic
(
self
,
**
kw
):
def
stepTic
(
self
,
**
kw
):
def
build
():
def
build
():
sm
=
getSecurityManager
()
self
.
login
()
try
:
if
'vifib_trigger_build'
in
self
.
portal
.
portal_alarms
.
objectIds
():
if
'vifib_trigger_build'
in
self
.
portal
.
portal_alarms
.
objectIds
():
self
.
portal
.
portal_alarms
.
vifib_trigger_build
.
Alarm_buildVifibPath
()
self
.
portal
.
portal_alarms
.
vifib_trigger_build
.
Alarm_buildVifibPath
()
finally
:
setSecurityManager
(
sm
)
if
kw
.
get
(
'sequence'
,
None
)
is
None
:
if
kw
.
get
(
'sequence'
,
None
)
is
None
:
# in case of using not in sequence commit transaction
# in case of using not in sequence commit transaction
...
...
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