本文整理汇总了Python中MoinMoin.formatter.FormatterBase.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python FormatterBase.__init__方法的具体用法?Python FormatterBase.__init__怎么用?Python FormatterBase.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MoinMoin.formatter.FormatterBase
的用法示例。
在下文中一共展示了FormatterBase.__init__方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from MoinMoin.formatter import FormatterBase [as 别名]
# 或者: from MoinMoin.formatter.FormatterBase import __init__ [as 别名]
def __init__(self, request, **kw):
FormatterBase.__init__(self, request, **kw)
self.members = []
self._bullet_list_level = 0
self._inside_link = False
self._new_member = ''
示例2: __init__
# 需要导入模块: from MoinMoin.formatter import FormatterBase [as 别名]
# 或者: from MoinMoin.formatter.FormatterBase import __init__ [as 别名]
def __init__(self, request, **kw):
FormatterBase.__init__(self, request, **kw)
self.document = minidom.Document()
self.document.documentElement = self.document.createElement('xml')
self.position = self.document.documentElement
self.tag_stack = [('xml', {})]
示例3: __init__
# 需要导入模块: from MoinMoin.formatter import FormatterBase [as 别名]
# 或者: from MoinMoin.formatter.FormatterBase import __init__ [as 别名]
def __init__(self, request, **kw):
FormatterBase.__init__(self, request, **kw)
self._current_depth = 1
self._base_depth = 0
self.in_pre = 0
self._doc = tree.entity()
self._curr = self._doc
# self._writer = structwriter(indent=u"yes", encoding=config.charset)
return
示例4: __init__
# 需要导入模块: from MoinMoin.formatter import FormatterBase [as 别名]
# 或者: from MoinMoin.formatter.FormatterBase import __init__ [as 别名]
def __init__(self, request, **kw):
FormatterBase.__init__(self, request, **kw)
self._in_code_area = 0
self._in_code_line = 0
self._code_area_state = [0, -1, -1, 0]
self._in_list = 0
self._did_para = 0
self._url = None
self._text = None # XXX does not work with links in headings!!!!!
示例5: __init__
# 需要导入模块: from MoinMoin.formatter import FormatterBase [as 别名]
# 或者: from MoinMoin.formatter.FormatterBase import __init__ [as 别名]
def __init__(self, request, **kw):
FormatterBase.__init__(self, request, **kw)
self._in_code_area = 0
self._in_code_line = 0
self._code_area_state = [0, -1, -1, 0]
self._lists = []
self._url = None
self._text = None # XXX does not work with links in headings!!!!!
self._text_stack = []
self._skip_text = False
self._wrap_skip_text = False
self._textbuf = ''
self._indent = 0
self._listitem_on = []
self._empty_line_count = 2
self._paragraph_ended = False
self._paragraph_skip_begin = True
示例6: __init__
# 需要导入模块: from MoinMoin.formatter import FormatterBase [as 别名]
# 或者: from MoinMoin.formatter.FormatterBase import __init__ [as 别名]
def __init__(self, request, doctype="article", **kw):
FormatterBase.__init__(self, request, **kw)
self.request = request
'''
If the formatter is used by the Include macro, it will set
is_included=True in which case we know we need to call startDocument
and endDocument from startContent and endContent respectively, since
the Include macro will not be calling them, and the formatter doesn't
work properly unless they are called.
'''
if kw.has_key("is_included") and kw["is_included"]:
self.include_kludge = True
else:
self.include_kludge = False
self.doctype = doctype
self.curdepth = 0
self.cur = None
示例7: __init__
# 需要导入模块: from MoinMoin.formatter import FormatterBase [as 别名]
# 或者: from MoinMoin.formatter.FormatterBase import __init__ [as 别名]
def __init__(self, request, **kw):
FormatterBase.__init__(self, request, **kw)
self.members = []
self._bullet_list_level = 0
self._catch_name = False
示例8: __init__
# 需要导入模块: from MoinMoin.formatter import FormatterBase [as 别名]
# 或者: from MoinMoin.formatter.FormatterBase import __init__ [as 别名]
def __init__(self, request, **kw):
FormatterBase.__init__(self, request, **kw)
self.in_heading = False
self.collected_headings = request._tocfm_collected_headings
示例9: __init__
# 需要导入模块: from MoinMoin.formatter import FormatterBase [as 别名]
# 或者: from MoinMoin.formatter.FormatterBase import __init__ [as 别名]
def __init__(self, request, **kw):
# Initialize globally accessible flags
FormatterBase.__init__(self, request, **kw)
"""
Current indentation in characters.
@type: int
"""
self._indentation = 0
"""
Was last line completed by a linefeed?
@type: bool
"""
self._lastLineComplete = True
"""
Maps substitution names to images.
@type: { str: str, ... }
"""
self._substitution2Image = { }
"""
Current list of strings collecting text which is meant to be output.
@type: [ str, ... ]
"""
self._collectors = [ ]
"""
Current list of open lists.
@type: [ Formatter.List, ... ]
"""
self._openLists = [ ]
"""
Text output since last linefeed.
@type: str
"""
self._sinceEOL = u""
"""
Text output since last block start.
@type: str
"""
self._sinceBLK = u""
"""
Current inline style.
@type: Style
"""
self._currentStyle = None
"""
A space pends to be output.
@type: bool
"""
self._spacePending = u""
"""
Maps descriptions to URLs
@type: [ ( str, str, ), ... ]
"""
self._description_urls = [ ]
"""
Number of last footnote.
@type: int
"""
self._lastFootNote = 0
"""
Maps numbers to footnote texts not output so far.
@type: { int: str, ... ]
"""
self._number2Footnote = { }
"""
Name of the rendered page.
@type: str
"""
self._pageName = None
"""
Depth of the table of contents or ``None``. ``0`` means unlimited.
@type: int
"""
self._contentsDepth = None
self._table = None
示例10: __init__
# 需要导入模块: from MoinMoin.formatter import FormatterBase [as 别名]
# 或者: from MoinMoin.formatter.FormatterBase import __init__ [as 别名]
def __init__(self, request, **kw):
FormatterBase.__init__(self, request, **kw)
self._current_depth = 1
self._base_depth = 0
self.in_pre = 0
示例11: __init__
# 需要导入模块: from MoinMoin.formatter import FormatterBase [as 别名]
# 或者: from MoinMoin.formatter.FormatterBase import __init__ [as 别名]
def __init__(self, request, **kw):
self.textstorage = list()
FormatterBase.__init__(self, request, **kw)