|
|
@ -606,14 +606,17 @@ class Interface(object): |
|
|
|
# message) |
|
|
|
# message) |
|
|
|
|
|
|
|
|
|
|
|
if not data.read: |
|
|
|
if not data.read: |
|
|
|
message_values['read_status'] = ' ●' |
|
|
|
message_values['read_status'] = (' ' + |
|
|
|
|
|
|
|
self._options[self.NAMESPACE]['unread_char']) |
|
|
|
else: |
|
|
|
else: |
|
|
|
message_values['read_status'] = '' |
|
|
|
message_values['read_status'] = '' |
|
|
|
|
|
|
|
|
|
|
|
if data.favourite: |
|
|
|
if data.favourite: |
|
|
|
message_values['favourite_star'] = '★' |
|
|
|
message_values['favourite_star'] = ( |
|
|
|
|
|
|
|
self._options[self.NAMESPACE]['unfavourite_char']) |
|
|
|
else: |
|
|
|
else: |
|
|
|
message_values['favourite_star'] = '☆' |
|
|
|
message_values['favourite_star'] = ( |
|
|
|
|
|
|
|
self._options[self.NAMESPACE]['favourite_char']) |
|
|
|
|
|
|
|
|
|
|
|
info = [] |
|
|
|
info = [] |
|
|
|
if data.reposted_by: |
|
|
|
if data.reposted_by: |
|
|
@ -1517,3 +1520,26 @@ class Interface(object): |
|
|
|
default=False, |
|
|
|
default=False, |
|
|
|
conflict_group='interface', |
|
|
|
conflict_group='interface', |
|
|
|
is_cmd_option=False) |
|
|
|
is_cmd_option=False) |
|
|
|
|
|
|
|
options.add_option( |
|
|
|
|
|
|
|
group=self.NAMESPACE, |
|
|
|
|
|
|
|
option='unread_char', |
|
|
|
|
|
|
|
help='String to be used to indicate a message is unread.', |
|
|
|
|
|
|
|
metavar='CHAR', |
|
|
|
|
|
|
|
default='●', |
|
|
|
|
|
|
|
is_cmd_option=False) |
|
|
|
|
|
|
|
options.add_option( |
|
|
|
|
|
|
|
group=self.NAMESPACE, |
|
|
|
|
|
|
|
option='unfavourite_char', |
|
|
|
|
|
|
|
help='String to be used to indicate a message is not ' \ |
|
|
|
|
|
|
|
'marked as favourite.', |
|
|
|
|
|
|
|
metavar='CHAR', |
|
|
|
|
|
|
|
default='★', |
|
|
|
|
|
|
|
is_cmd_option=False) |
|
|
|
|
|
|
|
options.add_option( |
|
|
|
|
|
|
|
group=self.NAMESPACE, |
|
|
|
|
|
|
|
option='favourite_char', |
|
|
|
|
|
|
|
help='String to be used to indicate a message is marked ' \ |
|
|
|
|
|
|
|
'as favourite.', |
|
|
|
|
|
|
|
metavar='CHAR', |
|
|
|
|
|
|
|
default='☆', |
|
|
|
|
|
|
|
is_cmd_option=False) |
|
|
|