def new_promotion(is_self, title, content, author, ip):
 sr = Subreddit._byID(Subreddit.get_promote_srid())
 l = Link._submit(is_self=is_self, title=title, content=content, author=author, sr=sr, ip=ip)
 l.promoted = True
 l.disable_comments = False
 l.sendreplies = True
 PromotionLog.add(l, 'promotion created')
 update_promote_status(l, PROMOTE_STATUS.unpaid)
 if (author.pref_show_promote is not False):
  author.pref_show_promote = True
  author._commit()
 emailer.new_promo(l)
 return l

def new_promotion ( is_self , title , content , author , ip ) : sr = Subreddit . _byID ( Subreddit . get_promote_srid ( ) ) l = Link . _submit ( is_self = is_self , title = title , content = content , author = author , sr = sr , ip = ip ) l . promoted = True l . disable_comments = False l . sendreplies = True PromotionLog . add ( l , 'promotion created' ) update_promote_status ( l , PROMOTE_STATUS . unpaid ) if ( author . pref_show_promote is not False ) : author . pref_show_promote = True author . _commit ( ) emailer . new_promo ( l ) return l
creates a new promotion with the provided title .