def _save_rev_and_notify(rev_form, creator, document, based_on_id=None, base_rev=None):
 new_rev = rev_form.save(creator, document, based_on_id, base_rev)
 statsd.incr('wiki.revision')
 ReviewableRevisionInLocaleEvent(new_rev).fire(exclude=new_rev.creator)
 EditDocumentEvent(new_rev).fire(exclude=new_rev.creator)

def _save_rev_and_notify ( rev_form , creator , document , based_on_id = None , base_rev = None ) : new_rev = rev_form . save ( creator , document , based_on_id , base_rev ) statsd . incr ( 'wiki.revision' ) ReviewableRevisionInLocaleEvent ( new_rev ) . fire ( exclude = new_rev . creator ) EditDocumentEvent ( new_rev ) . fire ( exclude = new_rev . creator )
save the given revisionform and send notifications .