Le 2014-04-25 01:45, Clayton Daley a écrit :
I imagine rewriting this to the following:
@classmethod
@inlineCallbacks
def from_id(cls, id):
doc = yield db.get_document(id) # blocking/async db call
self = cls._new_document(doc) # always synchronous
yield self
Hello,
I would like to reuse parts of the twistedmatrix.com design for my own
Trac powered project, and would like to know about its license. I
asked huwshimi as he is the design creator, and he answered me the
Twisted team was the design copyright owner.
Would it be possible to release the desig
Try looking for alternate reactor.py or reactor.pyc in your Python path
maybe?
kaiyou
Le 02/05/2015 17:54, Jessica Tsui a écrit :
> I was working on my program and everything was fine, out of the blue the
> python editor just told me that connectTCP and listenTCP cannot be
> referenced in reactor
like someone to point out the one huge
detail I completely forgot before I make this change by monkey patching
and submit a feature request :)
Regards,
Pierre.
--
Pierre Jaury
Weblog - http://kaiyou.fr
GPG ID - E804FB60
signature.asc
Description: OpenPGP digital signature
:
> d2.callback(x)
> return x
> d.addBoth(fire)
> return d2
>
> @inlineCallbacks
> def foo():
> result = yield fork(somethingAsync())
I will embed this one in my bundle of Twisted utility functions. Thanks!
> Maybe
twisted.web.error module while
it was moved to twisted.web.resource a while ago.
I did not find any other outdated reference for now, yet this might not
be as isolated as it seems.
Regards,
Pierre.
--
Pierre Jaury
Weblog - http://kaiyou.fr
GPG ID - E804FB60
signature.asc
Description: OpenPGP digital
On IRC, exarkun, glyph, spiv and idnar encouraged me to do a bit of
work on the Defer documentation. I kept get confused between the
things like returning a Deferred from a callback and chainDeferred,
which I found out wasn't that useful:
I suppose it's useful for "forking" a deferred
you have a
(I screwed up my mailman preferences accidentally, so this is
formatted a bit haphazard from copy/paste)
> Thank you for tackling the impossible.
Thank you for the encouragement. I'm curious if you read both
documents, and if you had a preference toward one or the other. I
hopefully only want to
What about Mattel?
http://itre.cis.upenn.edu/~myl/languagelog/archives/002892.html
On Wed, Mar 23, 2011 at 1:07 PM, Glyph Lefkowitz
wrote:
>
> On Mar 23, 2011, at 9:24 AM, Kevin Horn wrote:
>
>
> On Tue, Mar 22, 2011 at 9:03 PM, Glyph Lefkowitz
> wrote:
>>
>> Why is Twisted's right hand blue?
, at 9:30 PM, Jasper St. Pierre wrote:
>
>> On IRC, exarkun, glyph, spiv and idnar encouraged me to do a bit of
>> work on the Defer documentation.
>
> Yay! This documentation could definitely use some work.
>
>> I kept get confused between the things like returning a D
OK, I'm already making a lot of these changes, I should have a new version
Up Soon (TM).
> Placeholders.
>
> Placeholders for what, though?
>
Placeholders for that magic lib, that I think I'm going to stop looking for
and say, "demonstration purposes only"
How do they use it? Why is it relevant
Seems to be the Trac version of jQuery overwriting the one that docutils has
custom stuff in.
On Mon, Mar 28, 2011 at 9:35 AM, Kevin Horn wrote:
>
>
> On Sun, Mar 27, 2011 at 9:19 PM, Glyph Lefkowitz
> wrote:
>
>> On Mar 27, 2011, at 10:09 PM, Tim Allen wrote:
>>
>> I'm not sure if it's not fin
I'm tired. Link dump:
http://magcius.mecheye.net/twisted/DeferHowTo-Fixup.html
http://magcius.mecheye.net/twisted/DeferHowTo-Fixup.lore
oldies are at
http://magcius.mecheye.net/twisted/DeferHowTo-Fixup-v1.html
http://magcius.mecheye.net/twisted/DeferHowTo-Fixup-v1.lore
comments, etc.
__
I'm really tired... the 'demo server' program is at
http://p.mecheye.net/deferred-server.py/0
I coded it up in like 10 minutes. Definition of quality right there, yo.
Hopefully no more noise tonight.
On Mon, Mar 28, 2011 at 9:14 PM, Jasper St. Pierre wrote:
> I'm tired
; really want the idiots guide I think you need animated diagrams, or
> something, but I don't see that happening.
>
> Rgds,
> vokoda
>
> Jasper St. Pierre wrote:
> > Glyph Lefkowitz
>
> ___
> Twisted-Python maili
The problem that I have is that errback flow is awkward... the main
difference is that addCallbacks will call the errback if its own callback
fails, right? I can only see that really being useful by accident.
On Wed, Mar 30, 2011 at 11:09 AM, Christopher Armstrong <
ra...@twistedmatrix.com> wrote:
The factory for twisted.web.resource Resources is twisted.web.server.Site
On Thu, Mar 31, 2011 at 4:45 AM, Aljoša Mohorović <
aljosa.mohoro...@gmail.com> wrote:
> now i looking at adding an wsgi app to this setup.
> i'm reading
> http://twistedmatrix.com/documents/current/web/howto/web-in-60/wsgi
Quick go-through:
* Slide 50: Exercise 1 seems a bit poor -- it relies on the factory,
which you haven't introduced other than "oh hey there's this factory
attribute"
* The panini stall metaphor goes on for way too long (IMO) and
doesn't really make sense.
* Slide 92: I think having the ca
Not only that, but it doesn't do callback chaining, which is a huge
disappointment.
On Mon, Jun 27, 2011 at 5:53 PM, Richard Wall wrote:
> I'm in the process of switching some of my Javascript code from
> MochiKit.Async.Deferred to the recently introduced jQuery.Deferred.
>
> Does anyone else hat
What data do you care about? Wikis and code are in git repositories,
and they have a very exhaustive API[0] for pretty much everything
else.
On Sat, Jul 2, 2011 at 12:53 AM, Mikhail Terekhov wrote:
> On Fri, Jul 1, 2011 at 8:14 AM, Itamar Turner-Trauring
> wrote:
>>
>> Unless I'm mistaken, Githu
Pretty much all of those can be supported with GitHub: they can POST
to a generic website as a commit hook[0], along with a number of other
integrated services[1].
The only thing that I can think of is that GitHub issues doesn't have
hooks, so we'd have to poll if we wanted an IRC bot for GitHub i
On Tue, Jul 5, 2011 at 5:02 AM, Alessandro Dentella wrote:
> On Tue, Jul 05, 2011 at 03:42:04AM -0400, Jasper St. Pierre wrote:
>> re: Mercurial, I didn't like it when I used it. If someone can tell me
>> how to do this[3] in hg, I'd be more inclined to play along. And t
What about twisted.conch.ssh.filetransfer? Is that not SFTP?
On Mon, Aug 22, 2011 at 3:36 PM, Drew Smathers wrote:
> On Fri, Aug 19, 2011 at 2:43 PM, Osborn Chan wrote:
>> Hi,
>>
>> I am a newbie in twisted and python.
>> I would like to create a python SFTP server with twisted, but I cannot fin
As far as I know, Dojo's Deferreds are a direct port of Twisted's.
On Wed, Aug 24, 2011 at 7:30 PM, Tobias Oberstein
wrote:
> Found something: it seems in jQuery 1.6 they have introduced something which
> corresponds
> more closely to Twisted Deferreds callback/errback chains:
>
> //
Note that as far as I know, MochiKit isn't actively developed anymore.
Google's Closure has a fork of MochiKit's Deferred's, which seems to
incorporate some of Dojo's code as well.
http://code.google.com/p/closure-library/source/browse/trunk/third_party/closure/goog/mochikit/async/
On Wed, Aug
On Mon, Nov 7, 2011 at 9:13 AM, anatoly techtonik wrote:
> On Sun, Nov 6, 2011 at 8:51 PM, Jonathan Jacobs
> wrote:
>> Hello,
>> I recently volunteered to make some visual improvements to the Twisted Trac
>> website. I received a lot of good feedback and suggestions from the IRC
>> channel, most
On Mon, Nov 7, 2011 at 9:53 AM, Jonathan Jacobs
wrote:
> On Mon, Nov 7, 2011 at 16:31, Jasper St. Pierre wrote:
>> Yes, the cloud's arrow looks a little too green. Making it more
>> green-yellow like the original download arrow might be better.
>
> For what it's w
If you really want:
from twisted.protocols.basic import LineReceiver
class LFLineReceiver(LineReceiver):
delimiter = '\n'
I'm assuming that it being '\r\n' by default is because more of the
protocols that use LineReceiver use '\r\n' as their delimiter. It's
not entirely hard to s
The problem is that both modules cannot be imported simultaneously,
and that's not easily fixable (there's several barriers in there). To
test both you would have to run each test in a subprocess. Maybe you
can have a decorator to run a test in a subprocess.
On Sat, Feb 18, 2012 at 3:19 PM, Itamar
Do we expect that people will use new releases of Twisted with Maemo
and Python 2.5?
On Mon, Mar 5, 2012 at 2:19 AM, Yaroslav Fedevych
wrote:
> On 05.03.2012 06:15, Itamar Turner-Trauring wrote:
>> If you are using Python 2.5, what is the constraint keeping you there?
>> There's Ubuntu LTS 8.04 -
This probably isn't the proper way to do it, but it should work:
root = resource.Resource()
root.putChild('terms', Terms())
root.putChild('profile', Profile())
root.putChild('', IndexPage())
On Wed, Mar 14, 2012 at 5:46 AM, Lusana Ali wrote:
> Hi,
>
> Im trying to setup just a ve
On Mon, Apr 30, 2012 at 4:15 PM, Glyph wrote:
> On Apr 30, 2012, at 4:57 AM, moses dsouza wrote:
>
> I don't think so. Most of what Guido wants is already available via
> inlineCallbacks, and the drawbacks of using that are documented pretty well
> in the comments there. I also have some issue
You seem to have some indentation issues. You have a random assortment
of Python style issues (some lines end with a semicolon). You use
'foo' + '/' + 'bar' to generate paths. While not evil (I think all
major platforms will support that and do the translation on their
own), you're better off using
The point of blockingCallFromThread is as a last resort when
interfacing with a synchronous API that can't be replaced, like the
DBAPI. It fools Twisted into thinking an external synchronous API is
asynchronous, by carefully punting it to a new thread.
I don't understand why you can't make Django
ClientCreator needs a protocol. See:
http://docs.huihoo.com/python/twisted/howto/clients.html
On Fri, May 25, 2012 at 5:27 AM, vinod kumar wrote:
> Hi everyone,
>
> I'm trying to connect to homematic server at address '192.168.1.251'
> and port '2001'. I have a sample twisted server and cli
All you should need to do is install the glib reactor.
Note that dbus-python (and libdbus-1, and libdbus-glib) is deprecated.
The recommended solution is to use GDBus. See
http://developer.gnome.org/gio/stable/ch30.html
On Mon, May 28, 2012 at 11:03 PM, bino oetomo wrote:
> Dear all ...
>
> I ne
On Wed, May 30, 2012 at 5:24 PM, Barry Warsaw wrote:
> On May 28, 2012, at 11:22 PM, Jasper St. Pierre wrote:
>
>>Note that dbus-python (and libdbus-1, and libdbus-glib) is deprecated.
>>The recommended solution is to use GDBus.
>
> Is it? dbus-python seems like a heal
On Tue, Jul 3, 2012 at 2:08 AM, Tom Cocagne wrote:
> For anyone interested in taking a look, I've just released a
> native-Python implementation of the DBus protocol for Twisted. The
> intent of the implementation is to provide Twisted applications with a
> full-featured DBus API that is consisten
Why are compilers and MSVC++ relevant to six as a new dependency? It
consists of one .py file.
On Fri, Jul 27, 2012 at 7:32 AM, Tobias Oberstein
wrote:
>>>Even having full access to MSDN, it can be incredibly obscure to discover
>>>which Python version goes with which Visual Studio product. (So
On Tue, Sep 11, 2012 at 9:43 AM, wrote:
> On 10:49 am, mithra...@mithrandi.net wrote:
>>On Tue, Sep 11, 2012 at 6:05 AM, Glyph wrote:
>>>Such a bug may already exist - if you wouldn't mind, would you search
>>>for
>>>it, and if you can't find it, file a new one?
>>
>>I don't know if there's an e
On Sun, Oct 21, 2012 at 2:30 PM, wrote:
*snip*
> While I'm sympathetic to toolchain woes, I can't help but wonder if
> you're being really honest here (with yourself, at least). Running "svn
> diff" may make you feel bad inside, because svn isn't the latest cool
> toy, but a *hurdle*? It's ju
On Sun, Oct 21, 2012 at 2:48 PM, wrote:
> On 06:37 pm, jstpie...@mecheye.net wrote:
>>On Sun, Oct 21, 2012 at 2:30 PM, wrote:
>>
>>*snip*
>>>While I'm sympathetic to toolchain woes, I can't help but wonder if
>>>you're being really honest here (with yourself, at least). Running
>>>"svn
>>>diff
On Mon, Oct 22, 2012 at 12:05 AM, Glyph wrote:
>
> On Oct 21, 2012, at 11:54 AM, Jasper St. Pierre
> wrote:
>
> On Sun, Oct 21, 2012 at 2:48 PM, wrote:
>
> On 06:37 pm, jstpie...@mecheye.net wrote:
>
> On Sun, Oct 21, 2012 at 2:30 PM, wrote:
>
> *snip*
>
On Sun, Oct 21, 2012 at 11:00 PM, Glyph wrote:
> On Oct 21, 2012, at 7:45 PM, Julian Berman wrote:
>
> This seems like a pretty small benefit; adding a new dependency affects lots
> of people and introduces a new point of failure in the installation process,
> especially for Windows users who alr
44 matches
Mail list logo