Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
erp5
Commits
66932d5f
Commit
66932d5f
authored
Jan 04, 2016
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve previous commit by minimizing number of function calls
parent
9b5d954a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
product/ERP5/mixin/solver.py
product/ERP5/mixin/solver.py
+3
-3
No files found.
product/ERP5/mixin/solver.py
View file @
66932d5f
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
import
zope.interface
import
zope.interface
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type.UnrestrictedMethod
import
UnrestrictedMethod
from
Products.ERP5Type.UnrestrictedMethod
import
super_user
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.ERP5.mixin.configurable
import
ConfigurableMixin
from
Products.ERP5.mixin.configurable
import
ConfigurableMixin
...
@@ -50,8 +50,8 @@ class SolverMixin(object):
...
@@ -50,8 +50,8 @@ class SolverMixin(object):
# Implementation of ISolver
# Implementation of ISolver
security
.
declarePrivate
(
'solve'
)
security
.
declarePrivate
(
'solve'
)
@
UnrestrictedMethod
def
solve
(
self
,
activate_kw
=
None
):
def
solve
(
self
,
activate_kw
=
None
):
with
super_user
():
self
.
_solve
(
activate_kw
=
activate_kw
)
self
.
_solve
(
activate_kw
=
activate_kw
)
def
getPortalTypeValue
(
self
):
def
getPortalTypeValue
(
self
):
...
...
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