More improvements to the sounds tutorial, reintroduced generalized app name. Why is this implemented as a list of tuples, wouldn't this be better implemented as a dictionary?

This commit is contained in:
Bill Dengler 2015-04-17 19:32:30 -04:00
parent d0924a6e15
commit a9405e32e9

View File

@ -1,25 +1,26 @@
# -*- coding: utf-8 -*-
#-*- coding: utf-8 -*-
import reverse_sort
import application
actions = reverse_sort.reverse_sort([ ("audio", _(u"Audio tweet.")),
("create_timeline", _(u"User-defined buffer created.")),
("delete_timeline", _(u"User-defined buffer destroied.")),
("dm_received", _(u"Direct message received.")),
("dm_sent", _(u"Direct message sent.")),
("error", _(u"Error.")),
("favourite", _(u"You favorited a tweet.")),
("favourite", _(u"Tweet favorited.")),
("favourites_timeline_updated", _(u"Someone's favourites have been updated.")),
("geo", _(u"Geotweet.")),
("limit", _(u"Boundary reached.")),
("list_tweet", _(u"List updated.")),
("max_length", _(u"Too many characters.")),
("mention_received", _(u"You've been mentioned.")),
("mention_received", _(u"Mension received.")),
("new_event", _(u"New event.")),
("ready", _(u"Application is ready.")),
("reply_send", _(u"You've replied publicly.")),
("retweet_send", _(u"You've retweeted.")),
("ready", _(unicode(application.name+" is ready."))),
("reply_send", _(u"Mention sent.")),
("retweet_send", _(u"Tweet retweeted.")),
("search_updated", _(u"A search buffer has been updated.")),
("tweet_received", _(u"New tweet in home buffer.")),
("tweet_send", _(u"You've sent a tweet.")),
("tweet_received", _(u"Tweet received.")),
("tweet_send", _(u"Tweet sent.")),
("trends_updated", _(u"A trending topic buffer has been updated.")),
("tweet_timeline", _(u"New tweet in user-defined buffer.")),
("update_followers", _(u"New follower.")),