-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_options.py
56 lines (52 loc) · 2.08 KB
/
user_options.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# vim:tabstop=8:shiftwidth=4:smarttab:expandtab:softtabstop=4:autoindent:
from base_options import Option, OptionsBase
class UserOptions(OptionsBase):
def __init__(self):
OptionsBase.__init__(self)
options = []
self.Automatic_Who = Option(
'Automatic Who', 'boolean', None, '0')
options.append(self.Automatic_Who)
self.Black_Hole_List = Option(
'Black Hole List', 'list', None, [])
options.append(self.Black_Hole_List)
self.Browser_Path = Option(
'Browser Path', 'string', None, '')
options.append(self.Browser_Path)
self.Echo_Input = Option(
'Echo Input', 'boolean', None, '0')
options.append(self.Echo_Input)
self.Echo_Output = Option(
'Echo Output', 'boolean', None, '0')
options.append(self.Echo_Output)
self.Host_Name = Option(
'Host Name', 'string', None, '')
options.append(self.Host_Name)
self.Login_Name = Option(
'Login Name', 'string', None, '')
options.append(self.Login_Name)
self.Login_Password = Option(
'Login Password', 'password', None, '')
options.append(self.Login_Password)
self.Keep_Alive = Option(
'Keep Alive', 'boolean', None, '0')
options.append(self.Keep_Alive)
self.Mailer_Path = Option(
'Mailer Path', 'string', None, '')
options.append(self.Mailer_Path)
self.Read_Mode = Option(
'Read Mode', 'choice', ['backward', 'forward', 'reference'], '')
options.append(self.Read_Mode)
self.System_Type = Option(
'System Type', 'choice', ['NLZ', 'other', 'test'], '')
options.append(self.System_Type)
self.Show_New = Option(
'Show New', 'boolean', None, '0')
options.append(self.Show_New)
self.Word_Wrap_at_72 = Option(
'Word Wrap At 72', 'boolean', None, '1')
options.append(self.Word_Wrap_at_72)
self._options = options
if __name__ == '__main__':
opt = UserOptions()
print(opt)