parameters: (self)
return_statement: return "%03d-%s" %(node_number, self._generateRandomId())
docstring: Generate id base on node number, useful for import and mass creation
      of objects inside a module using activities
      We also append random id
docstring_summary: Generate id base on node number, useful for import and mass creation
      of objects inside a module using activities
      We also append random id
docstring_tokens: Generate id base on node number useful for import and mass creation of objects inside a module using activities We also append random id
function: def _generatePerNodeNumberId(self):
      """
      Generate id base on node number, useful for import and mass creation
      of objects inside a module using activities
      We also append random id
      """
      activity_tool = self.getPortalObject().portal_activities
      node_list = list(activity_tool.getNodeList())
      current_node = getCurrentNode()
      try:
        node_number = node_list.index(current_node) + 1
      except ValueError:
        # Not a processing node
        node_number = 0
      return "%03d-%s" %(node_number, self._generateRandomId())
function_tokens: def _generatePerNodeNumberId ( self ) : activity_tool = self . getPortalObject ( ) . portal_activities node_list = list ( activity_tool . getNodeList ( ) ) current_node = getCurrentNode ( ) try : node_number = node_list . index ( current_node ) + 1 except ValueError : # Not a processing node node_number = 0 return "%03d-%s" % ( node_number , self . _generateRandomId ( ) )