1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 """
18 Config service
19 ==============
20
21 This service provides global access to the configuration object.
22 """
23 __author__ = u"Andr\xe9 Malo"
24 __docformat__ = "restructuredtext en"
25
26 from wtf import services as _services
27
28
30 """
31 Config service
32
33 This service provides global access to the configuration.
34 """
35 __implements__ = [_services.ServiceInterface]
36
38 """ :See: `wtf.services.ServiceInterface.__init__` """
39 self.config = config
40
42 """ :See: `wtf.services.ServiceInterface.shutdown` """
43 pass
44
46 """ :See: `wtf.services.ServiceInterface.global_service` """
47 return 'wtf.config', self.config
48
50 """ :See: `wtf.services.ServiceInterface.middleware` """
51 return func
52