Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(857)

Side by Side Diff: third_party/twisted_8_1/twisted/plugins/twisted_words.py

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW
« no previous file with comments | « third_party/twisted_8_1/twisted/plugins/twisted_web.py ('k') | third_party/twisted_8_1/twisted/protocols/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698