Hi,
>> I know that this has been asked before, but it's been a while and I'm
>> hoping for some good news. Is there a SQL ORM that works well with
>> Twisted and PostgreSQL? In particular I'm hoping to find something
>> that works with txpostgres as that's the library I prefer to access
>> the d
Thanks lvh,
I did have to override the buildProtocol method in the Factory but I
then set Protocol.factory to be equal to the Factory (ie,
myprotocol.factory=self).
I'm still stuck however with what to do when I get more complex than
this simple case. For example, I use a callingLoop to call mult
On Fri, Jul 19, 2013 at 9:06 AM, Hynek Schlawack wrote:
>
> How would you feel about packaging it up on PyPI so people can try it out
> effortlessly? What do Apple’s licenses say about that? Yes, I’m
> volunteering.
>
It seems it's released under the ASL2. I don't know if Apple prevents *its*
emp
On Fri, Jul 19, 2013 at 10:19 AM, Nick Johnson wrote:
> Thanks lvh,
>
> I did have to override the buildProtocol method in the Factory but I
> then set Protocol.factory to be equal to the Factory (ie,
> myprotocol.factory=self).
>
You could (perhaps should) do this by calling
ClientFactory.buildP
Here's a cut-down version of the code which might be more illustrative:
class MyProtocol(Protocol):
def __init__(self, s, d):
def dataReceived(self, data):
def connectionLost(self, reason):
reactor.callLater(10, ...)
def connectionMade(self):
s
Hi Nick,
Okay, question and code review time. Why are source and destination
arguments to the protocol? Can't they just access it on the factory?
It seems that the factory initiates many connections with the same
parameters. Is that true? Does it only ever make sense to use the factory
to fire m
Hi Nick,
I was thinking something along these lines:
https://gist.github.com/lvh/67c64042a2be06b7bf7a
cheers
lvh
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
http://labs.twistedmatrix.com/2013/07/july-report.html
This will be my last report, until the beginning of September. I have,
for many years, been a volunteer at the Edmonton Folk Music
Festival[1]. For the next month, I will be busy setting it up (and then
taking it down, and so will not have tim
On Thu, Jul 18, 2013 at 1:09 PM, wrote:
> On 01:09 pm, p.may...@imperial.ac.uk wrote:
>
...
> Well, exactly. It's currently easier for me to sub-class a Twisted
>> internal/private class. But if that goes away, that option is unavailable
>> and a replacement would be nice - even if it's a conven