Saw this...
https://twistedmatrix.com/documents/8.2.0/api/twisted.web2.channel.fastcgi.html
Was wondering if there's a fastcgi client out there for twisted?
Thanks,
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.
d for detecting segfaults? I'm thinking
just to monitor /var/log/syslog
On Sat, Feb 25, 2017 at 11:59 PM, Glyph Lefkowitz
wrote:
>
> > On Feb 25, 2017, at 4:41 PM, Kevin Mcintyre wrote:
> >
> > I have a long running twisted pyqt process which occasionally throws a
I have a long running twisted pyqt process which occasionally throws a
Received signal 11.
I believe it's in the underlying QtWebEngineView since the twisted process
continues to run. Whatever the reason I would like to figure out a way to
catch this and stop the reactor either in process, or by
"It is shaped the same. The reason you're seeing the error is due to the
issue I pointed out above."
Just to be clear you mean that proxies can reshape the call in flight?
On Mon, Jan 30, 2017 at 6:01 PM, Glyph Lefkowitz
wrote:
>
> On Jan 30, 2017, at 19:44, Kevin Mc
Thanks - that's exactly what I was looking for.
*But note* when using FileBodyProducer(StringIO(json.dumps(~blah))) -- I
still see a content-length in the request header as it's received by
twisted. Am I correct to assume the request is agnostic...meaning it's
shaped the same for twisted as it is
ce):
isLeaf = True
def render_POST(self, request):
print request.content.getvalue()
return request.content.getvalue()
site = server.Site(Simple())
reactor.listenTCP(8080, site)
reactor.run()
On Mon, Jan 30, 2017 at 2:39 PM, Glyph Lefkowitz
wrote:
>
> On Jan 30, 2017, at
hey all - quick question. Trying to understand FileBodyProducer as it
pertains to POST.
json_body = FileBodyProducer(StringIO(json.dumps({'key': 'value'})))
agent.request("POST", ~*uri*, Headers({'User-Agent': ['AkamaiTest']}),
json_body)
Does the agent chunk the POST body? Is this controllabl
Hey, thanks for the reply.
It seems like there's the possibility of more beneficial assignments...but
first trying to understand if there's a specific reason for the
child.server assignment.
On Thu, Jun 16, 2016 at 5:11 AM, Cory Benfield wrote:
>
> > On 16 Jun 2016, at 05
what is child.server = self.server in Resource.putChild?
shouldn't it be child.server = self?
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
1) Is template block processing done top to bottom sequentially? I've
included example.py - it's interesting that by having a blocking call first
the second request is blocked, but having the blocking call after a
non-blocking call the second request is not. I would've thought it would
behave as
holy moly - you're right! This fool will sleep so much better...a million
thanks.
On Thu, Dec 17, 2015 at 12:09 AM, Amber "Hawkie" Brown <
hawk...@atleastfornow.net> wrote:
>
> > On 17 Dec 2015, at 08:11, Kevin Mcintyre wrote:
> >
> > Hey - I'm co
Just a follow-up with my own sanity check example.
http://twistedmatrix.com/documents/current/web/howto/web-in-60/asynchronous-deferred.html
My conclusion is that deferLater is a blocking method - am I wrong?
On Wed, Dec 16, 2015 at 4:11 PM, Kevin Mcintyre wrote:
> Hey - I'm conf
Hey - I'm confused, so nothing new :) ...but I'm running at this example
and I'm scratching my head.
http://twistedmatrix.com/documents/current/web/howto/web-in-60/asynchronous-deferred.html
I would've thought 2 requests could be served simultaneously, but when I
fire off 2 requests the first rec
rintingObserver" cause I'm
wondering if myobservers is a core package.
On Tue, Nov 10, 2015 at 6:05 PM, Glyph Lefkowitz
wrote:
>
> On Nov 9, 2015, at 2:29 PM, Kevin Mcintyre wrote:
>
> http://twistedmatrix.com/documents/current/core/howto/logger.html
>
> I'm loo
http://twistedmatrix.com/documents/current/core/howto/logger.html
I'm looking at the new-ish logger api and wonder how to log to console as a
first step to transitioning.
Any pointers? Thanks.
___
Twisted-Python mailing list
Twisted-Python@twistedmatri
nk for the feedback.
On Wed, May 6, 2015 at 3:35 PM, Glyph wrote:
>
> On May 6, 2015, at 11:04 AM, Kevin Mcintyre wrote:
>
> '''
> I know this is meant for pyqt but I've had little luck this that board.
>
> The short answer is yes, but it's a total
'''
I know this is meant for pyqt but I've had little luck this that board.
The short answer is yes, but it's a total hack...and I'm wondering if
anybody has a more elegant solution.
Specifically I would like to be able to fire a defer from the javascript
instead of having to call alert.
Bel
flood with 50 permutations?
On Sat, Dec 27, 2014 at 4:43 PM, Clayton Daley
wrote:
> Not sure which features of PB matter to you, but I just started playing
> with Autobahn/Crossbar. It's
>
>- A JSON-based RPC (and/or pubsub) system,
>- With clients in many languages (JS, Python, C++, etc
that simplifies.
who's the JellyCon2014 keynote speaker?
*One* day we will have a conference - Tx/Rx, of course - and there will be
a talk on this. But first we need several people in the community who
wants their contribution to Twisted to be organization and community
oriented rather t
On Sat, Aug 9, 2014 at 6:58 PM, Glyph wrote:
> On Aug 8, 2014, at 9:17 PM, Kevin Mcintyre wrote:
>
> correction. I was stupidly reprocessing list on remote copy side. Seeing
> much better results now ~10K per second.
>
>
> Whew. I don't know exactly how well
correction. I was stupidly reprocessing list on remote copy side. Seeing
much better results now ~10K per second.
On Fri, Aug 8, 2014 at 6:32 PM, Kevin Mcintyre wrote:
> I experimented today with a table scan from dynamodb. Taking each record
> and converting to a dictionary into
across the bus. Is that
expected?
On Fri, Aug 8, 2014 at 3:01 PM, Glyph Lefkowitz
wrote:
>
> On Aug 8, 2014, at 1:31 PM, Kevin Mcintyre wrote:
>
> I think so too, but I'm starting to lean toward websockets. The warnings
> alone right?
>
>
> Websockets are a layer
some funny issues with Cacheable
>
> https://twistedmatrix.com/trac/ticket/7274
>
> Daniel
>
>
> On Fri, Aug 8, 2014 at 8:01 AM, Kevin Mcintyre wrote:
>
>> The question is what's necessary to get knowitall.py to receive updates
>> to held copy.
>>
>
t; On Thu, Aug 7, 2014 at 11:42 PM, Kevin Mcintyre wrote:
>
>> wordsmith argument order issues re-take.
>>
>> Cheers,
>> Kevin
>>
>>
>> On Thu, Aug 7, 2014 at 11:29 PM, Kevin Mcintyre
>> wrote:
>>
>>> goal: Give knowitall.py awareness of
wordsmith argument order issues re-take.
Cheers,
Kevin
On Thu, Aug 7, 2014 at 11:29 PM, Kevin Mcintyre wrote:
> goal: Give knowitall.py awareness of wordsmith.py addition.
>
> to run
> ./library.sh # opens 7999 for remote_dictionary and remote_define methods
> then both:
> p
goal: Give knowitall.py awareness of wordsmith.py addition.
to run
./library.sh # opens 7999 for remote_dictionary and remote_define methods
then both:
python knowitall.py
python wordsmith.py
library.sh due to main/jelly issues
from twisted.spread import pb
class UknownWordException(Exception):
This discussion seems relevant to a design pattern "Yearbook Lifecycle"
that I'm using for athleets.com and junkeet.com.
Design Goal:
1) Maintain yearbooks across state, allowing students to delegate access
control to classmates as a series of transformations (recursive web
renders) - here sign m
t ever _should_
> be. I can kind of see how it might work, but if your "async" process ever
> takes longer than your callLater delay it will break, and probably quite
> horribly.
>
>
> On Wed, Jul 9, 2014 at 12:11 PM, Kevin Mcintyre wrote:
>
>> Another "Oh
Another "Oh right" twisted moment. callInThread instead of callLater?
This is a case where I've been laying tracks for 2 years without totally
understanding the train that was eventually coming down the tracks. I
guess I implicitly understood by wanting to move to a separate reactor as a
separat
calling reactor.callLater within qt4reactor in an attempt to async non
webkit work but not seeing expected behavior. Webkit locks while the
callLater function executes.
Any insight appreciated.
Should I move real work into separate reactor and "broker" calls into
qt4reactor/webkit. I have xmlrp
I will try to get a test class together to demonstrate.
On Tue, Apr 8, 2014 at 4:38 PM, Kevin Mcintyre wrote:
> I've opted for placeholder and added callback to flatten.
>
> I'm a hack, and it was holding up delivery of email.
>
>
> On Tue, Apr 8, 2014 at 4:19 PM
I've opted for placeholder and added callback to flatten.
I'm a hack, and it was holding up delivery of email.
On Tue, Apr 8, 2014 at 4:19 PM, Werner Thie wrote:
> Hi Kevin
>
>
> On 4/8/14 9:34 AM, Kevin Mcintyre wrote:
>
>> I'm still having trouble ge
I'm still having trouble getting my multipart text/html from an email into
XMLString.
I run the html through beautifulsoup then remove the doctype, but if
there's anything at all off about the resulting xml it still craps out. Is
there anyway to stick an arbitrary string into a template? Or shou
I've been working a lot with smtp and twisted is great for easily doing
what you're describing.
Have a look at the smtpclient docs...that should get you most of the way
there.
http://twistedmatrix.com/documents/current/mail/tutorial/smtpclient/smtpclient.html
On Wed, Apr 2, 2014 at 9:03 AM, Gri
ah, it just seems like the next smtp client (potentially 12) from the
samples could be multipart mime.
On Fri, Mar 28, 2014 at 3:12 PM, wrote:
> On 08:36 pm, kebi...@gmail.com wrote:
>
>> How can I get something similar into a smtp client 12? multipart message
>>
>
> Hi Kevin,
>
> MIME and SMTP
How can I get something similar into a smtp client 12? multipart message
fn = "example.mp3"
multipart = MIMEMultipart('alternative')
multipart['Subject'] = 'Tutorate!'
multipart['To'] = 'Selfie'
multipart['From'] = 'Selfie'
text = "Hello, how are you, goodbye."
textpar
Wanted to share my qt4reactor webkit cv2 video capture script.
It's comes in handy whenever I've needed to scrape just the browser and not
my whole screen or capture unit tests etc.
here is a demo quick demo in action:
http://www.youtube.com/watch?v=2XMXtUISY1g&feature=youtu.be
It's a hack, but
https://twistedmatrix.com/documents/current/web/howto/twisted-templates.html#auto7
I see the example with quoting, but what if I want to render html?
I'm trying to get the text/html part of an email, and want to render as is.
Thanks in advance.
___
Twi
has anyone implemented a more complex IBodyProducer than
class POSTRequestProducer():
implements(IBodyProducer)
def __init__(self, body):
self.body = body
self.length = len(self.body)
def startProducing(self, consumer):
consumer.write(self.body)
return
reason
ReconnectingClientFactory.clientConnectionFailed(self, connector,
reason)
if ( __name__ == "__main__" ):
reactor.connectTCP("74.125.224.242", 80, EchoClientFactory() )
#connect to google on port 80
reactor.run()
--
Kevin McIntyre | Software Enginee
IReactorFDSet.
o = getattr (m, sym)
--
Kevin McIntyre | Software Engineer | Green Charge Networks
Cell 718-249-5058 | kmcint...@greenchargenet.com | www.greenchargenet.com
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http
Newbie question:
I'm calling addProcess and everything works well, but I'm trying to
understand how to capture/handle stderr stdout for that spawned process.
--
Kevin McIntyre | Software Engineer | *Green Charge Networks*
Cell 718-249-5058 | kmcint...@greencha
42 matches
Mail list logo