1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 """
18 ============
19 DB service
20 ============
21
22 This service configures database connections.
23
24 Configuration
25 ~~~~~~~~~~~~~
26
27 ::
28
29 [db]
30 # conf = /path/to/db.conf
31 dbs = master slave
32
33 [db:master]
34 db = web@master
35
36 [db:slave]
37 db = web@localhost
38 """
39 __docformat__ = "restructuredtext en"
40 __author__ = u"Andr\xe9 Malo"
41
42 from wtf import services as _services
43 from wtf.ext.db import _connection
44 from wtf.ext.db import _tagged
45
46
48 """ DB Service """
49 __implements__ = [_services.ServiceInterface]
50
61
63 """ :See: ``wtf.services.ServiceInterface.shutdown`` """
64 pass
65
67 """ :See: ``wtf.services.ServiceInterface.global_service`` """
68 return None
69
71 """ :See: ``wtf.services.ServiceInterface.middleware`` """
72 return func
73