| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2001-2008 Twisted Matrix Laboratories. | |
| 2 # See LICENSE for details. | |
| 3 | |
| 4 from zope.interface import classProvides | |
| 5 | |
| 6 from twisted.plugin import IPlugin | |
| 7 | |
| 8 from twisted.application.service import ServiceMaker | |
| 9 from twisted.words import iwords | |
| 10 | |
| 11 TwistedTOC = ServiceMaker( | |
| 12 "Twisted TOC Server", | |
| 13 "twisted.words.toctap", | |
| 14 "An AIM TOC service.", | |
| 15 "toc") | |
| 16 | |
| 17 NewTwistedWords = ServiceMaker( | |
| 18 "New Twisted Words", | |
| 19 "twisted.words.tap", | |
| 20 "A modern words server", | |
| 21 "words") | |
| 22 | |
| 23 class RelayChatInterface(object): | |
| 24 classProvides(IPlugin, iwords.IProtocolPlugin) | |
| 25 | |
| 26 name = 'irc' | |
| 27 | |
| 28 def getFactory(cls, realm, portal): | |
| 29 from twisted.words import service | |
| 30 return service.IRCFactory(realm, portal) | |
| 31 getFactory = classmethod(getFactory) | |
| 32 | |
| 33 class PBChatInterface(object): | |
| 34 classProvides(IPlugin, iwords.IProtocolPlugin) | |
| 35 | |
| 36 name = 'pb' | |
| 37 | |
| 38 def getFactory(cls, realm, portal): | |
| 39 from twisted.spread import pb | |
| 40 return pb.PBServerFactory(portal, True) | |
| 41 getFactory = classmethod(getFactory) | |
| 42 | |
| OLD | NEW |