def formatters(self):
event_dict = dict(<EOL>title=self.title,<EOL>remaining=self.time_remaining,<EOL>humanize_remaining=self.humanize_time_remaining,<EOL>)<EOL>def is_formatter(x):<EOL><INDENT>return inspect.ismethod(x) and hasattr(x, '<STR_LIT>') and getattr(x, '<STR_LIT>')<EOL><DEDENT>for method_name, method in inspect.getmembers(self, is_formatter):<EOL><INDENT>event_dict[method_name] = method()<EOL><DEDENT>return event_dict<EOL>
Build a dictionary containing all those key/value pairs that will be exposed to the user via formatters.