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
Ophélie Gagnard
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
Hide 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
():
if
'vifib_trigger_build'
in
self
.
portal
.
portal_alarms
.
objectIds
():
sm
=
getSecurityManager
()
self
.
portal
.
portal_alarms
.
vifib_trigger_build
.
Alarm_buildVifibPath
()
self
.
login
()
try
:
if
'vifib_trigger_build'
in
self
.
portal
.
portal_alarms
.
objectIds
():
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