~soren/nova/iptables-security-groups

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/twisted/plugins/twisted_words.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
TwistedXMPPRouter = ServiceMaker(
 
24
    "XMPP Router",
 
25
    "twisted.words.xmpproutertap",
 
26
    "An XMPP Router server",
 
27
    "xmpp-router")
 
28
 
 
29
class RelayChatInterface(object):
 
30
    classProvides(IPlugin, iwords.IProtocolPlugin)
 
31
 
 
32
    name = 'irc'
 
33
 
 
34
    def getFactory(cls, realm, portal):
 
35
        from twisted.words import service
 
36
        return service.IRCFactory(realm, portal)
 
37
    getFactory = classmethod(getFactory)
 
38
 
 
39
class PBChatInterface(object):
 
40
    classProvides(IPlugin, iwords.IProtocolPlugin)
 
41
 
 
42
    name = 'pb'
 
43
 
 
44
    def getFactory(cls, realm, portal):
 
45
        from twisted.spread import pb
 
46
        return pb.PBServerFactory(portal, True)
 
47
    getFactory = classmethod(getFactory)
 
48