示例#1
0
文件: plugin.py 项目: 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__)
示例#2
0
文件: plugin.py 项目: bdemetris/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__)
示例#3
0
文件: models.py 项目: bdemetris/sal
 def display_name(cls):
     return text_utils.class_to_title(cls.__name__)
示例#4
0
 def display_name(cls):
     return text_utils.class_to_title(cls.__name__)