Re: [Twisted-Python] Twisted hangs when using pyapns

2014-10-14 Thread Jonas Brunsgaard
Hey Ni I can not relate to your specific problem. But where I work, we have a pyapns server in place for push notifications. What we have learned is that the v50 branch of the repo is much more stable than the code in master. So maybe give v50 a try, notice that a new rest api is used in v50. __

Re: [Twisted-Python] Return only when value/handle is available

2014-09-03 Thread Jonas Brunsgaard
I would fiddle around with something like this. from twisted.internet.defer import inlineCallbacks, returnValue, Deferred from twisted.internet import reactor @inlineCallbacks def foo(self, retries=10, interval=10): while True: try: returnValue((yield self.get_handle()))

[Twisted-Python] EuroPython2014

2014-07-21 Thread Jonas Brunsgaard
Any of your guys at Euro Python in Berlin, right now? If so, I would like to invite other Twisted users/dev for a beer later.. ;) -- Jonas Brunsgaard ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin

Re: [Twisted-Python] [ANN] txZMQ released

2014-07-21 Thread Jonas Brunsgaard
Thank you Andrey for making this release possible ;) On Sun, Jul 20, 2014 at 9:20 AM, Alexander Burtsev wrote: > Congrats bro! stick to your course. > > С уважением, Александр Бурцев > > Skype: eburus > FB: www.facebook.com/eburus > http://bramabrama.com > > > On 28 Apr 2011, at 16:53, Andrey S

Re: [Twisted-Python] twisted.names.client.getHostByName() vs. reactor.resolve()

2014-07-18 Thread Jonas Brunsgaard
Jean-Paul, you knowledge about twisted and your willingness to help is just amazing for the framework ;) http://www.ihighfive.com ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-p

Re: [Twisted-Python] Code question - semantic meaning of IServiceCollection(parent, parent)

2014-05-26 Thread Jonas Brunsgaard
r example, if `parent` isn't a provider of `IServiceCollection`, but > there's an adapter registered to covert to `IServiceCollection` from > `type(parent)`, then that adapter will be called. If there's no such > adapter, the cast will return `parent`. > > Dustin &g

[Twisted-Python] Code question - semantic meaning of IServiceCollection(parent, parent)

2014-05-26 Thread Jonas Brunsgaard
Hello all Will someone explain to me what happens when you call an Interface with arguments, and why the same argument twice? My problem is to understand the semantics of the line parent = IServiceCollection(parent, parent) part of def setServiceParent(self, parent): if self.pa

Re: [Twisted-Python] git?

2014-03-20 Thread Jonas Brunsgaard
On Sun, Mar 16, 2014 at 9:12 PM, Glyph wrote: > > On Mar 16, 2014, at 12:31 AM, Jonathan Ballet wrote: > > Hi Glyph, > > On Thu, Mar 13, 2014 at 12:35:17PM -0700, Glyph Lefkowitz wrote: > > > If someone would like to turn this list into a wiki page under < > https://twistedmatrix.com/trac/wiki/I

Re: [Twisted-Python] git?

2014-03-18 Thread Jonas Brunsgaard
On Wed, Mar 19, 2014 at 12:51 AM, Christopher Armstrong < ra...@twistedmatrix.com> wrote: > On March 18, 2014 at 6:38:42 PM, Jonas Brunsgaard ( > jonas.brunsga...@gmail.com) wrote: > > I think that it is a shame that Twisted is not on Github(Yep Github, not > just git) > &

Re: [Twisted-Python] Getting the options object from the service

2014-03-18 Thread Jonas Brunsgaard
than relying on the global state of the plugin > instance. > > > hth > lvh > > > > On Mon, Mar 17, 2014 at 2:02 PM, Jonas Brunsgaard < > jonas.brunsga...@gmail.com> wrote: > >> Hello Everybody >> >> What is the prefered way to get the optio

Re: [Twisted-Python] git?

2014-03-18 Thread Jonas Brunsgaard
I think that it is a shame that Twisted is not on Github(Yep Github, not just git) If we make a comparison between SVN and Git, I think it is obvious that Git is the superior VCS. That said, I think Github - as a platform - creates a certain "feeling" of openness, transparency, accessibility and

[Twisted-Python] Getting the options object from the service

2014-03-17 Thread Jonas Brunsgaard
Hello Everybody What is the prefered way to get the options object from the servicemaker when using twistd plugins. I guess i could access the object via from twisted.plugins.my_plugin import myServiceMaker options = myServicemMaker.options But is there a better way to do it? Somthing like fro

Re: [Twisted-Python] How to get ServerOptions in tac file.

2013-11-24 Thread Jonas Brunsgaard
On Sun, Nov 24, 2013 at 9:43 PM, wrote: > On 07:35 pm, jonas.brunsga...@gmail.com wrote: > >> Is there an easy way get an options object from the .tac file? >> >> I my .tac file i have the following. >> >> fh = logging.FileHandler('/var/log/ocmg/datastore.log') >> >> I would like to be able et r

[Twisted-Python] How to get ServerOptions in tac file.

2013-11-24 Thread Jonas Brunsgaard
Is there an easy way get an options object from the .tac file? I my .tac file i have the following. fh = logging.FileHandler('/var/log/ocmg/datastore.log') I would like to be able et replace '/var/log/ocmg/datastore.log' with the logfile option given by the user at the command line. Any sugges

[Twisted-Python] DirtyReactorAggregateError: Reactor was unclean. - What to do?

2013-11-13 Thread Jonas Brunsgaard
n 1 tests in 0.010s To me it seems like Trail shuts down the reactor and throws an error, due to the fact that the reactor is unclean, because the server client is still active, or at least not cleaned up. How do I work around this problem, any help is very appreciated. -- Jonas Brunsgaard _