comparison twisted/plugins/idavoll_http.py @ 192:a219fe70a762

Use ServiceMaker to setup twistd plugins, if available.
author Ralph Meijer <ralphm@ik.nu>
date Fri, 30 May 2008 09:56:08 +0000
parents faf1c9bc2612
children 564ae55219e1
comparison
equal deleted inserted replaced
191:48245777acea 192:a219fe70a762
1 # Copyright (c) 2003-2008 Ralph Meijer 1 # Copyright (c) 2003-2008 Ralph Meijer
2 # See LICENSE for details. 2 # See LICENSE for details.
3 3
4 from twisted.scripts.mktap import _tapHelper 4 try:
5 from twisted.application.service import ServiceMaker
6 except ImportError:
7 from twisted.scripts.mktap import _tapHelper as ServiceMaker
5 8
6 Idavoll = _tapHelper( 9 Idavoll = ServiceMaker(
7 "Idavoll HTTP", 10 "Idavoll HTTP",
8 "idavoll.tap_http", 11 "idavoll.tap_http",
9 "Jabber Publish-Subscribe Service Component with HTTP gateway", 12 "Jabber Publish-Subscribe Service Component with HTTP gateway",
10 "idavoll-http") 13 "idavoll-http")