#NEWLINE# def create_notice_types( app , created_models , verbosity , **kwargs ) : #NEWLINE# #INDENT# notices = ( ( 'badge_edited' , _ ( 'Badge edited' ) , _ ( 'one of your badges has been edited' ) ) , ( 'badge_awarded' , _ ( 'Badge awarded' ) , _ ( 'one of your badges has been awarded to someone' ) ) , ( 'award_received' , _ ( 'Award received' ) , _ ( 'you have been awarded a badge' ) ) , ( 'nomination_submitted' , _ ( 'Nomination submitted' ) , _ ( 'someone has submitted a nomination for one of your badges' ) ) , ( 'nomination_approved' , _ ( 'Nomination approved' ) , _ ( 'a nomination you submitted for an award has been approved' ) ) , ( 'nomination_rejected' , _ ( 'Nomination rejected' ) , _ ( 'a nomination you submitted for an award has been rejected' ) ) , ( 'nomination_received' , _ ( 'Nomination received' ) , _ ( 'a nomination to award you a badge was approved' ) ) , ( 'nomination_accepted' , _ ( 'Nomination accepted' ) , _ ( 'a nomination you submitted for an award has been accepted' ) ) ) #NEWLINE# for notice in notices : #NEWLINE# #INDENT# notification . create_notice_type ( * notice )