コード例 #1
0
ファイル: theme.py プロジェクト: okamototk/kanonconductor
 def __init__(self, section, name, default=None, sep=',', itemsep=':',
              doc=''):
     Option.__init__(self, section, name, default, doc)
     self.sep = sep
     self.itemsep = itemsep
コード例 #2
0
 def __init__(self, section, name, choices, doc=''):
     Option.__init__(self, section, name, to_utf8(choices[0]), doc)
コード例 #3
0
ファイル: theme.py プロジェクト: okamototk/kanonconductor
 def __init__(self, section, name, choices, doc=''):
   Option.__init__(self, section, name, _to_utf8(choices[0]), doc)
   self.choices = set(_to_utf8(choice).strip() for choice in choices)
コード例 #4
0
 def __init__(self, section, name, choices, doc=''):
     Option.__init__(self, section, name, to_utf8(choices[0]), doc)
コード例 #5
0
 def __init__(self, section, prefix, default=None, doc=''):
     Option.__init__(self, section, prefix, default, doc)
     self.prefix = prefix
     self._options = []
コード例 #6
0
ファイル: web_ui.py プロジェクト: nyuhuhuu/trachacks
 def __init__(self, section, name, default=None, choices='', doc=''):
     Option.__init__(self, section, name, default, doc)
     self.choices = filter(None, [c.strip() for c in choices.split(',')])
コード例 #7
0
 def __init__(self, section, name, default=None, choices='', doc=''):
     Option.__init__(self, section, name, default, doc)
     self.choices = filter(None, [c.strip() for c in choices.split(',')])
コード例 #8
0
 def __init__(self, section, prefix, default=None, doc=''):
     Option.__init__(self, section, prefix, default, doc)
     self.prefix = prefix
     self._options = []