Commit c7b11dcd authored by Boxiang Sun's avatar Boxiang Sun

Use random number as the uid of an activity.

Stop using portal_ids in CMFActivity.
parent 1f1a57fc
......@@ -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:
......
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