Commit 73aa6fe9 authored by Romain Courteaud's avatar Romain Courteaud

Use UnrestrictedMethod to allow non Manager users to create solver process.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37239 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4e7d3bf7
...@@ -32,6 +32,7 @@ from AccessControl import ClassSecurityInfo ...@@ -32,6 +32,7 @@ from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, interfaces from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
from Products.CMFActivity.ActiveProcess import ActiveProcess from Products.CMFActivity.ActiveProcess import ActiveProcess
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
class SolverProcess(XMLObject, ActiveProcess): class SolverProcess(XMLObject, ActiveProcess):
""" """
...@@ -76,6 +77,7 @@ class SolverProcess(XMLObject, ActiveProcess): ...@@ -76,6 +77,7 @@ class SolverProcess(XMLObject, ActiveProcess):
) )
# Implementation # Implementation
@UnrestrictedMethod
def buildTargetSolverList(self): def buildTargetSolverList(self):
""" """
Builds target solvers from solver decisions Builds target solvers from solver decisions
......
...@@ -35,6 +35,7 @@ from Products.ERP5Type import Permissions, interfaces ...@@ -35,6 +35,7 @@ from Products.ERP5Type import Permissions, interfaces
from Products.ERP5Type.Tool.BaseTool import BaseTool from Products.ERP5Type.Tool.BaseTool import BaseTool
from Products.ERP5 import _dtmldir from Products.ERP5 import _dtmldir
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
class SolverProcessTool(BaseTool): class SolverProcessTool(BaseTool):
""" Container for solver processes. """ Container for solver processes.
...@@ -72,6 +73,7 @@ class SolverProcessTool(BaseTool): ...@@ -72,6 +73,7 @@ class SolverProcessTool(BaseTool):
return True return True
return False return False
@UnrestrictedMethod
def newSolverProcess(self, delivery_or_movement=None, temp_object=False): def newSolverProcess(self, delivery_or_movement=None, temp_object=False):
""" """
Builds a new solver process from the divergence Builds a new solver process from the divergence
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment