本文整理汇总了Python中outwiker.pages.wiki.parser.command.Command.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Command.__init__方法的具体用法?Python Command.__init__怎么用?Python Command.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类outwiker.pages.wiki.parser.command.Command
的用法示例。
在下文中一共展示了Command.__init__方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from outwiker.pages.wiki.parser.command import Command [as 别名]
# 或者: from outwiker.pages.wiki.parser.command.Command import __init__ [as 别名]
def __init__ (self, parser):
"""
parser - экземпляр парсера
"""
Command.__init__ (self, parser)
NameHarvester.counters = set()
示例2: __init__
# 需要导入模块: from outwiker.pages.wiki.parser.command import Command [as 别名]
# 或者: from outwiker.pages.wiki.parser.command.Command import __init__ [as 别名]
def __init__(self, parser, application):
"""
parser - экземпляр парсера
"""
Command.__init__(self, parser)
self._application = application
self._enabled = True
示例3: __init__
# 需要导入模块: from outwiker.pages.wiki.parser.command import Command [as 别名]
# 或者: from outwiker.pages.wiki.parser.command.Command import __init__ [as 别名]
def __init__ (self, parser):
"""
parser - экземпляр парсера
"""
Command.__init__ (self, parser)
self._fileNameFormat = u"__diagram_{}.png"
global _
_ = get_()
示例4: __init__
# 需要导入模块: from outwiker.pages.wiki.parser.command import Command [as 别名]
# 或者: from outwiker.pages.wiki.parser.command.Command import __init__ [as 别名]
def __init__ (self, parser):
"""
parser - экземпляр парсера
"""
Command.__init__ (self, parser)
# Счетчики на странице.
# Ключ - имя счетчика, значение - экземпляр класса _Counter
self._counters = {}
示例5: __init__
# 需要导入模块: from outwiker.pages.wiki.parser.command import Command [as 别名]
# 或者: from outwiker.pages.wiki.parser.command.Command import __init__ [as 别名]
def __init__ (self, parser, config):
"""
parser - экземпляр парсера
"""
Command.__init__ (self, parser)
self.__config = SourceConfig (config)
# Стили CSS, добавленные в заголовок
self.__appendCssClasses = []
global _
_ = get_()
示例6: __init__
# 需要导入模块: from outwiker.pages.wiki.parser.command import Command [as 别名]
# 或者: from outwiker.pages.wiki.parser.command.Command import __init__ [as 别名]
def __init__ (self, parser, name, lang):
"""
parser - экземпляр парсера
"""
Command.__init__ (self, parser)
global _
_ = lang
self.__name = name
self.__style1 = u"""<STYLE>div.spoiler_style1 {
padding: 3px;
border: 1px solid #d8d8d8;
}</STYLE>"""
self.__style2 = u"""<STYLE>div.spoiler_style2 {
text-transform: uppercase;
border-bottom: 1px solid #CCCCCC;
margin-bottom: 3px;
font-size: 0.8em;
font-weight: bold;
display: block;
}</STYLE>"""
self.__blockTemplate = ur"""
<div class="spoiler_style1"><div class="spoiler_style2"><span onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '<b></b><a href=\'#\' onClick=\'return false;\'>{collapsetext}</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b></b><a href=\'#\' onClick=\'return false;\'>{expandtext}</a>'; }" /><b></b><a href="#" onClick="return false;">{expandtext}</a></span></div><div class="spoiler_quotecontent"><div style="display: none;">{content}</div></div></div>"""
self.__inlineTemplate = ur"""<span><span onClick="this.parentNode.getElementsByTagName('span')[1].style.display = ''; this.style.display = 'none';"><a href="#">{expandtext}</a></span><span style="display: none;" onClick="this.parentNode.getElementsByTagName('span')[0].style.display = ''; this.style.display = 'none';">{content}</span></span>"""
self.__expandParam = u"expandtext"
self.__collapseParam = u"collapsetext"
self.__inlineParam = u"inline"
# Надписи по умолчанию
self.__expandTextDefault = _(u"Expand")
self.__collapseTextDefault = _(u"Collapse")
# Добавлены ли стили в заголовок
self.__styleAppend = False
示例7: __init__
# 需要导入模块: from outwiker.pages.wiki.parser.command import Command [as 别名]
# 或者: from outwiker.pages.wiki.parser.command.Command import __init__ [as 别名]
def __init__ (self, parser):
Command.__init__ (self, parser)
示例8: __init__
# 需要导入模块: from outwiker.pages.wiki.parser.command import Command [as 别名]
# 或者: from outwiker.pages.wiki.parser.command.Command import __init__ [as 别名]
def __init__ (self, application, parser):
Command.__init__ (self, parser)
self._application = application
self._renamer = Renamer(application)
示例9: __init__
# 需要导入模块: from outwiker.pages.wiki.parser.command import Command [as 别名]
# 或者: from outwiker.pages.wiki.parser.command.Command import __init__ [as 别名]
def __init__ (self, parser):
"""
parser - экземпляр парсера
"""
Command.__init__ (self, parser)
self.__scriptAppend = False