Commit d4304e2e authored by Aurel's avatar Aurel

remove duplicated code coming from merge

parent e4fc1d9c
......@@ -188,20 +188,6 @@ class FolderMixIn(ExtensionClass.Base):
my_id = self._generateRandomId()
return "%s-%s" %(current_date, my_id)
def _generatePerNodeNumberId(self):
"""
Generate an id base on node number that is processing the creation
"""
activity_tool = self.getPortalObject().portal_activities
node_list = list(activity_tool.getNodeList())
current_node = activity_tool.getCurrentNode()
try:
node_number = node_list.index(current_node)
except ValueError:
# Not a processing node
node_number = 111
return "%03d-%s" %(node_number, self._generateRandomId())
def _generateRandomId(self):
"""
Generate a random Id.
......
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