Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
HongzheWang
slapos
Commits
172e0d50
Commit
172e0d50
authored
Nov 26, 2020
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more eggs & update patch
parent
5830f1d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
25 deletions
+37
-25
component/egg-patch/Products.DCWorkflow/workflow_method.patch
...onent/egg-patch/Products.DCWorkflow/workflow_method.patch
+12
-12
stack/erp5/buildout-py3.cfg
stack/erp5/buildout-py3.cfg
+24
-12
stack/erp5/zope-versions.cfg
stack/erp5/zope-versions.cfg
+1
-1
No files found.
component/egg-patch/Products.DCWorkflow/workflow_method.patch
View file @
172e0d50
diff -uNr Products.DCWorkflow-2.2.4/Products/DCWorkflow/DCWorkflow.py Products.DCWorkflow-2.2.4nxd001/Products/DCWorkflow/DCWorkflow.py
diff -uNr Products.DCWorkflow-2.2.4/Products/DCWorkflow/DCWorkflow.py Products.DCWorkflow-2.2.4nxd001/Products/DCWorkflow/DCWorkflow.py
--- Products.DCWorkflow-2.2.4/Products/DCWorkflow/DCWorkflow.py 2011-11-01 18:55:01.000000000 +0100
--- Products.DCWorkflow-2.2.4/Products/DCWorkflow/DCWorkflow.py 2011-11-01 18:55:01.000000000 +0100
+++ Products.DCWorkflow-2.2.4nxd001/Products/DCWorkflow/DCWorkflow.py 2013-10-31 16:42:05.021141352 +0100
+++ Products.DCWorkflow-2.2.4nxd001/Products/DCWorkflow/DCWorkflow.py 2013-10-31 16:42:05.021141352 +0100
@@ -
40,6 +40
,7 @@
@@ -
38,6 +38
,7 @@
from Products.DCWorkflow.
permissions import ManagePortal
from Products.DCWorkflow.
interfaces import IDCWorkflowDefinition
from Products.DCWorkflow.Transitions import TRIGGER_AUTOMATIC
from Products.DCWorkflow.Transitions import TRIGGER_AUTOMATIC
from Products.DCWorkflow.Transitions import TRIGGER_USER_ACTION
from Products.DCWorkflow.Transitions import TRIGGER_USER_ACTION
+from Products.DCWorkflow.Transitions import TRIGGER_WORKFLOW_METHOD
+from Products.DCWorkflow.Transitions import TRIGGER_WORKFLOW_METHOD
from Products.DCWorkflow.utils import Message as _
from Products.DCWorkflow.utils import Message as _
from Products.DCWorkflow.utils import modifyRolesForGroup
from Products.DCWorkflow.utils import modifyRolesForGroup
from Products.DCWorkflow.utils import modifyRolesForPermission
from Products.DCWorkflow.utils import modifyRolesForPermission
@@ -281,6 +282,52 @@
@@ -279,6 +280,52 @@
raise Unauthorized(action)
self._changeStateOf(ob, tdef, kw)
self._changeStateOf(ob, tdef, kw)
+ security.declarePrivate('isWorkflowMethodSupported')
@security.private
+ def isWorkflowMethodSupported(self, ob, method_id):
+ def isWorkflowMethodSupported(self, ob, method_id):
+ '''
+ '''
+ Returns a true value if the given workflow method
+ Returns a true value if the given workflow method
...
@@ -30,7 +29,7 @@ diff -uNr Products.DCWorkflow-2.2.4/Products/DCWorkflow/DCWorkflow.py Products.D
...
@@ -30,7 +29,7 @@ diff -uNr Products.DCWorkflow-2.2.4/Products/DCWorkflow/DCWorkflow.py Products.D
+ return 1
+ return 1
+ return 0
+ return 0
+
+
+
security.declarePrivate('wrapWorkflowMethod')
+
@security.private
+ def wrapWorkflowMethod(self, ob, method_id, func, args, kw):
+ def wrapWorkflowMethod(self, ob, method_id, func, args, kw):
+ '''
+ '''
+ Allows the user to request a workflow action. This method
+ Allows the user to request a workflow action. This method
...
@@ -59,9 +58,10 @@ diff -uNr Products.DCWorkflow-2.2.4/Products/DCWorkflow/DCWorkflow.py Products.D
...
@@ -59,9 +58,10 @@ diff -uNr Products.DCWorkflow-2.2.4/Products/DCWorkflow/DCWorkflow.py Products.D
+ raise ObjectMoved(ex.getNewObject(), res)
+ raise ObjectMoved(ex.getNewObject(), res)
+ return res
+ return res
+
+
security.declarePrivate('isInfoSupported')
+ @security.private
def isInfoSupported(self, ob, name):
def isInfoSupported(self, ob, name):
'''
'''
Returns a true value if the given info name is supported.
diff -uNr Products.DCWorkflow-2.2.4/Products/DCWorkflow/dtml/transition_properties.dtml Products.DCWorkflow-2.2.4nxd001/Products/DCWorkflow/dtml/transition_properties.dtml
diff -uNr Products.DCWorkflow-2.2.4/Products/DCWorkflow/dtml/transition_properties.dtml Products.DCWorkflow-2.2.4nxd001/Products/DCWorkflow/dtml/transition_properties.dtml
--- Products.DCWorkflow-2.2.4/Products/DCWorkflow/dtml/transition_properties.dtml 2011-11-01 18:55:01.000000000 +0100
--- Products.DCWorkflow-2.2.4/Products/DCWorkflow/dtml/transition_properties.dtml 2011-11-01 18:55:01.000000000 +0100
+++ Products.DCWorkflow-2.2.4nxd001/Products/DCWorkflow/dtml/transition_properties.dtml 2013-10-31 16:42:05.021141352 +0100
+++ Products.DCWorkflow-2.2.4nxd001/Products/DCWorkflow/dtml/transition_properties.dtml 2013-10-31 16:42:05.021141352 +0100
...
@@ -98,12 +98,12 @@ diff -uNr Products.DCWorkflow-2.2.4/Products/DCWorkflow/dtml/transitions.dtml Pr
...
@@ -98,12 +98,12 @@ diff -uNr Products.DCWorkflow-2.2.4/Products/DCWorkflow/dtml/transitions.dtml Pr
diff -uNr Products.DCWorkflow-2.2.4/Products/DCWorkflow/exportimport.py Products.DCWorkflow-2.2.4nxd001/Products/DCWorkflow/exportimport.py
diff -uNr Products.DCWorkflow-2.2.4/Products/DCWorkflow/exportimport.py Products.DCWorkflow-2.2.4nxd001/Products/DCWorkflow/exportimport.py
--- Products.DCWorkflow-2.2.4/Products/DCWorkflow/exportimport.py 2011-11-01 18:55:01.000000000 +0100
--- Products.DCWorkflow-2.2.4/Products/DCWorkflow/exportimport.py 2011-11-01 18:55:01.000000000 +0100
+++ Products.DCWorkflow-2.2.4nxd001/Products/DCWorkflow/exportimport.py 2013-10-31 16:42:09.221141578 +0100
+++ Products.DCWorkflow-2.2.4nxd001/Products/DCWorkflow/exportimport.py 2013-10-31 16:42:09.221141578 +0100
@@ -34,7 +34,7 @@
@@ -40,7 +40,7 @@
from Products.GenericSetup.interfaces import ISetupEnviron
from Products.DCWorkflow.utils import _xmldir
from Products.GenericSetup.utils import BodyAdapterBase
-TRIGGER_TYPES = ( 'AUTOMATIC', 'USER' )
+TRIGGER_TYPES = ( 'AUTOMATIC', 'USER', 'METHOD' )
-TRIGGER_TYPES = ('AUTOMATIC', 'USER')
+TRIGGER_TYPES = ('AUTOMATIC', 'USER', 'METHOD')
_FILENAME = 'workflows.xml'
_FILENAME = 'workflows.xml'
...
...
stack/erp5/buildout-py3.cfg
View file @
172e0d50
...
@@ -21,12 +21,26 @@ eggs =
...
@@ -21,12 +21,26 @@ eggs =
Paste
Paste
ZEO
ZEO
# Former zope dependencies
# Former zope dependencies
pylint
zLOG
zLOG
docutils
docutils
Missing
Missing
pytz
pytz
zope.sendmail
zope.sendmail
zope.structuredtext
zope.structuredtext
Products.CMFCore
#Products.BTreeFolder2
#Products.ExternalMethod
#Products.MIMETools
Products.PythonScripts
Products.SiteErrorLog
Products.DCWorkflow
#Products.StandardCacheManagers
#Products.ZCatalog
#Record
Products.DCWorkflow-patches = ${:_profile_base_location_}/../../component/egg-patch/Products.DCWorkflow/workflow_method.patch#975b49e96bae33ac8563454fe5fa9899
Products.DCWorkflow-patch-options = -p1
[python]
[python]
part = python3
part = python3
...
@@ -155,18 +169,6 @@ eggs -=
...
@@ -155,18 +169,6 @@ eggs -=
jupyterlab-launcher
jupyterlab-launcher
pytesseract
pytesseract
# ${neoppod:eggs}
# ${neoppod:eggs}
eggs +=
Zope
Paste
zLOG
docutils
Missing
pytz
zope.sendmail
zope.structuredtext
pylint
Products.CMFCore
Acquisition-patches = ${:_profile_base_location_}/../../component/egg-patch/Acquisition/aq_dynamic-4.5.patch#e923ab436d53282df536de3ef7d3e127
Acquisition-patches = ${:_profile_base_location_}/../../component/egg-patch/Acquisition/aq_dynamic-4.5.patch#e923ab436d53282df536de3ef7d3e127
...
@@ -197,3 +199,13 @@ python-ldap = 3.1.0
...
@@ -197,3 +199,13 @@ python-ldap = 3.1.0
ipython = 0.10.2
ipython = 0.10.2
cryptography = 3.2.1
cryptography = 3.2.1
Products.CMFCore = 2.4.8
Products.CMFCore = 2.4.8
Products.MailHost = 4.0
Products.GenericSetup = 2.0
mccabe = 0.6
isort = 4.2.5
astroid = 2.4.0
wrapt = 1.11
typed-ast = 1.4.0
Products.SiteErrorLog = 5.4
Products.PythonScripts = 4.12
Products.DCWorkflow = 2.4.0+SlapOSPatched001
\ No newline at end of file
stack/erp5/zope-versions.cfg
View file @
172e0d50
...
@@ -16,7 +16,7 @@ Persistence = 2.13.2
...
@@ -16,7 +16,7 @@ Persistence = 2.13.2
Products.BTreeFolder2 = 2.13.5
Products.BTreeFolder2 = 2.13.5
Products.ExternalMethod = 2.13.1
Products.ExternalMethod = 2.13.1
Products.MIMETools = 2.13.0
Products.MIMETools = 2.13.0
Products.MailHost = 2.13.4
#
Products.MailHost = 2.13.4
Products.OFSP = 2.13.2
Products.OFSP = 2.13.2
Products.PythonScripts = 2.13.2
Products.PythonScripts = 2.13.2
Products.Sessions = 3.0
Products.Sessions = 3.0
...
...
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