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

Side by Side Diff: third_party/twisted_8_1/twisted/web/woven/flashconduit.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 from twisted.internet.protocol import Factory
2 from twisted.protocols.basic import LineReceiver
3 from twisted.python import log
4 from twisted.web.woven import interfaces
5
6
7 class FlashConduit(LineReceiver):
8 delimiter = '\0'
9 keepalive = 1
10 def connectionMade(self):
11 print "connection with flash movie opened"
12 #self.transport.write("alert('helllllllo')\0")
13
14 def connectionLost(self, reason):
15 print "connection lost"
16 #self.lp.unhookOutputConduit()
17
18 def lineReceived(self, line):
19 session = self.factory.site.getSession(line)
20 self.lp = lp = session.getComponent(interfaces.IWovenLivePage)
21 lp.hookupOutputConduit(self)
22
23 def writeScript(self, data):
24 #print "writing javascript", data
25 self.transport.write(data + '\0')
26
27 def finish(self):
28 pass
29
30
31 class FlashConduitFactory(Factory):
32 protocol = FlashConduit
33
34 def __init__(self, site):
35 self.site = site
OLDNEW
« no previous file with comments | « third_party/twisted_8_1/twisted/web/woven/dirlist.py ('k') | third_party/twisted_8_1/twisted/web/woven/form.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698