当前位置: 首页>>代码示例>>Python>>正文


Python FormatterBase.__init__方法代码示例

本文整理汇总了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 = ''
开发者ID:IvanLogvinov,项目名称:soar,代码行数:9,代码来源:groups.py

示例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', {})]
开发者ID:steveyen,项目名称:moingo,代码行数:9,代码来源:dom_xml.py

示例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
开发者ID:pombredanne,项目名称:akara,代码行数:11,代码来源:application_xml.py

示例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!!!!!
开发者ID:steveyen,项目名称:moingo,代码行数:11,代码来源:text_plain.py

示例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
开发者ID:IvanLogvinov,项目名称:soar,代码行数:19,代码来源:text_plain.py

示例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
开发者ID:Kartstig,项目名称:engineering-inventions-wiki,代码行数:21,代码来源:text_docbook.py

示例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
开发者ID:Kartstig,项目名称:engineering-inventions-wiki,代码行数:8,代码来源:groups.py

示例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
开发者ID:Glottotopia,项目名称:aagd,代码行数:6,代码来源:TableOfContents.py

示例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
开发者ID:ismaelbej,项目名称:moin2rst,代码行数:76,代码来源:text_x-rst.py

示例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
开发者ID:IvanLogvinov,项目名称:soar,代码行数:7,代码来源:text_xml.py

示例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)
开发者ID:graphingwiki,项目名称:graphingwiki,代码行数:5,代码来源:nullformatter.py


注:本文中的MoinMoin.formatter.FormatterBase.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。