Exemple #1
0
    def title(self):
        """Return the title of the plugin.

        This uses the class name, broken along capital letters (and
        handling multiple capitals in a row). Subclasses can simply
        declare a `title` str if they just want to set something
        other than the class name.
        """
        return class_to_title(self.__class__.__name__)
Exemple #2
0
 def display_name(cls):
     return text_utils.class_to_title(cls.__name__)