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
1
Merge Requests
1
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
Boxiang Sun
erp5
Commits
c7b11dcd
Commit
c7b11dcd
authored
Jan 03, 2018
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use random number as the uid of an activity.
Stop using portal_ids in CMFActivity.
parent
1f1a57fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/CMFActivity/ActiveProcess.py
product/CMFActivity/ActiveProcess.py
+2
-1
No files found.
product/CMFActivity/ActiveProcess.py
View file @
c7b11dcd
...
...
@@ -35,6 +35,7 @@ from Products.ERP5Type.ConflictFree import ConflictFreeLog
from
BTrees.Length
import
Length
from
random
import
randrange
from
.ActiveResult
import
ActiveResult
import
uuid
manage_addActiveProcessForm
=
DTMLFile
(
'dtml/ActiveProcess_add'
,
globals
())
...
...
@@ -44,7 +45,7 @@ def addActiveProcess(self, id, title='', REQUEST=None, activate_kw=None, **kw):
o
=
ActiveProcess
(
id
)
if
activate_kw
is
not
None
:
o
.
__of__
(
self
).
setDefaultActivateParameterDict
(
activate_kw
)
o
.
uid
=
self
.
portal_catalog
.
newUid
()
o
.
uid
=
uuid
.
uuid1
().
int
>>
64
self
.
_setObject
(
id
,
o
)
o
=
self
.
_getOb
(
id
)
if
kw
:
...
...
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