示例#1
0
 def __init__(self, date_format=None, locale=None):
     TemplateAttribNode.__init__(self)
     if date_format is None:
         self._format = "%c"
     else:
         self._format = date_format
     self._locale = locale
示例#2
0
文件: date.py 项目: lilnana00/3ddd
    def __init__(self, date_format=None, locale=None):
        TemplateAttribNode.__init__(self)

        if date_format is None:
            self._format = TemplateWordNode("%c")
        else:
            self._format = TemplateWordNode(date_format)

        self._locale = None
        if locale is not None:
            self._locale = TemplateWordNode(locale)
示例#3
0
 def __init__(self, index=1):
     TemplateAttribNode.__init__(self)
     self._index = index
示例#4
0
 def __init__(self):
     TemplateAttribNode.__init__(self)
     self.pairs = {}
示例#5
0
 def __init__(self, question=1, sentence=1):
     TemplateAttribNode.__init__(self)
     self._question = question
     self._sentence = sentence
示例#6
0
 def __init__(self, index=1):
     TemplateAttribNode.__init__(self)
     self._index = index
示例#7
0
文件: date.py 项目: Freiza/program-y
 def __init__(self, date_format=None):
     TemplateAttribNode.__init__(self)
     if date_format is None:
         self._format = "%c"
     else:
         self._format = date_format
示例#8
0
文件: log.py 项目: Freiza/program-y
 def __init__(self):
     TemplateAttribNode.__init__(self)
     self._level = "debug"
     self._output = "logging"
示例#9
0
 def __init__(self):
     TemplateAttribNode.__init__(self)
     self._timeout = 0
示例#10
0
 def __init__(self):
     TemplateAttribNode.__init__(self)
     self._timeout = 0
示例#11
0
 def __init__(self):
     TemplateAttribNode.__init__(self)
     self._name = None
     self._attribs = {}
示例#12
0
文件: system.py 项目: lilnana00/3ddd
 def __init__(self):
     TemplateAttribNode.__init__(self)
     self._timeout = TemplateWordNode("0")
示例#13
0
 def __init__(self, index=1):
     TemplateAttribNode.__init__(self)
     self._index = TemplateWordNode(str(index))
示例#14
0
 def __init__(self):
     TemplateAttribNode.__init__(self)
     self._level = "debug"
示例#15
0
 def __init__(self, question=1, sentence=1):
     TemplateAttribNode.__init__(self)
     self._question = question
     self._sentence = sentence
示例#16
0
 def __init__(self):
     TemplateAttribNode.__init__(self)
     self._level = TemplateWordNode("debug")
     self._output = TemplateWordNode("logging")
示例#17
0
文件: log.py 项目: rkc007/program-y
 def __init__(self):
     TemplateAttribNode.__init__(self)
     self._level = "debug"
     self._output = "logging"
示例#18
0
 def test_node(self):
     attrib = TemplateAttribNode()
     self.assertIsNotNone(attrib)
     with self.assertRaises(Exception):
         attrib.set_attrib("Something", "Other")
示例#19
0
文件: xml.py 项目: Freiza/program-y
 def __init__(self):
     TemplateAttribNode.__init__(self)
     self._name = None
     self._attribs = {}