Ejemplo n.º 1
0
Archivo: plugin.py Proyecto: w0de/sal
    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__)
Ejemplo n.º 2
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__)
Ejemplo n.º 3
0
 def display_name(cls):
     return text_utils.class_to_title(cls.__name__)
Ejemplo n.º 4
0
 def display_name(cls):
     return text_utils.class_to_title(cls.__name__)