(self, *args, **kw)
return BaseTool.newContent(self, *args, **kw)
the newContent is overriden to not use generateNewId
the newContent is overriden to not use generateNewId
the newContent is overriden to not use generateNewId
def newContent(self, *args, **kw):
    """
      the newContent is overriden to not use generateNewId
    """
    if not kw.has_key(id):
      new_id = self._generateNextId()
      if new_id is not None:
        kw['id'] = new_id
      else:
        raise ValueError('Failed to gererate id')
    return BaseTool.newContent(self, *args, **kw)
def newContent ( self , * args , * * kw ) : if not kw . has_key ( id ) : new_id = self . _generateNextId ( ) if new_id is not None : kw [ 'id' ] = new_id else : raise ValueError ( 'Failed to gererate id' ) return BaseTool . newContent ( self , * args , * * kw )