Re: [Twisted-Python] Hotdot

2009-10-27 Thread Alex Clemesha
Run the example *not* as root, then it will work. sys.path is different for the root user, that is the problem. -Alex On Tue, Oct 27, 2009 at 11:17 AM, Alfredo Veltri wrote: > Hi Alex, > i'm trying with hotdot. > i receive the following errors. Would help me about that? > Thanks in advance. >

Re: [Twisted-Python] Phasing out old-style classes

2009-10-27 Thread James Y Knight
On Oct 27, 2009, at 10:32 AM, Steve Steiner (listsin) wrote: > Is this something that can be handled by just running the tests with > the right switch so we can see everything that passes without the > switch but doesn't with? > > Is there a "new-style" switch or just -3? Download: http://twisted

Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-27 Thread Valeriy Pogrebitskiy
Naman, Another problem you might (possibly) be encountering - is the way your server and/or client protocol is implemented. If you just inherit from "plain" twisted.internet.protocol.Protocol - you are automatically using write () and dataReceived() methods that do not implement buffering (it i

Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-27 Thread Valeriy Pogrebitskiy
Naman, Using threads - is not a good way of testing Twisted code. Instead, you can implement unit test script (using twisted.trial.unittest) - implementing test versions of your Twisted server and/or client class(es). This can be done by extending original class(es) and overwriting appropriate

Re: [Twisted-Python] Phasing out old-style classes

2009-10-27 Thread Steve Steiner (listsin)
On Oct 27, 2009, at 8:17 AM, exar...@twistedmatrix.com wrote: >> At that point there will be two sets of users, the 3.x's that >> use only new-style classes and the 2.x's for which Twisted classes >> may be either old or new. It would probably be better to have >> switched to new-style before th

Re: [Twisted-Python] Phasing out old-style classes

2009-10-27 Thread exarkun
On 08:38 am, k.kelly.gor...@gmail.com wrote: >On Sun, Oct 25, 2009 at 1:50 AM, wrote: >>On 02:39 pm, k.kelly.gor...@gmail.com wrote: >>>On Thu Oct 8 20:08:12 EDT 2009, Glyph Lefkowitz >>> wrote: If old-style classes can be evolved into new-style classes while somehow following this policy

Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-27 Thread Reza Lotun
Hi Naman, > I tried to implement this: > > parent_conn, child_conn = Pipe() > > f = defer.Deferred() > f = threads.deferToThread(start_test.main_func, SCRIPT_PATH, > TEMP_OUTPUT_PATH, self.output_name, child_conn) Do you really want to spawn a thread or a process? Since it seems like you're tryin

Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-27 Thread naman jain
I tried to implement this: parent_conn, child_conn = Pipe() f = defer.Deferred() f = threads.deferToThread(start_test.main_func, SCRIPT_PATH, TEMP_OUTPUT_PATH, self.output_name, child_conn) response = parent_conn.recv() print response //prints like: initialization done self.transport.write(respo

[Twisted-Python] You guys are my heroes

2009-10-27 Thread Don Schoeman
Just as the subject says... you guys (everyone involved with TM) are my heroes. Problem: I needed to develop a TCP server that could serve multiple GPS tracking devices over GPRS. These devices uses a multi-level (structures within structures) style binary protocol. I looked at various possible so

Re: [Twisted-Python] Phasing out old-style classes

2009-10-27 Thread Kelly
On Sun, Oct 25, 2009 at 1:50 AM, wrote: > On 02:39 pm, k.kelly.gor...@gmail.com wrote: >> On Thu Oct 8 20:08:12 EDT 2009, Glyph Lefkowitz >> wrote: >>> If old-style classes can be evolved into new-style classes while >>> somehow following this policy, that would be great. >> I have some POC co

Re: [Twisted-Python] Phasing out old-style classes

2009-10-27 Thread Kelly
On Sun, Oct 25, 2009 at 4:38 PM, Glyph Lefkowitz wrote: > On Oct 24, 2009, at 10:50 AM, exar...@twistedmatrix.com wrote: >> >> I think that we should consider requests to make specific classes new- >> style (and grant them when doing so won't cause compatibility problems), >> make all new classes

Re: [Twisted-Python] Phasing out old-style classes

2009-10-27 Thread Kelly
On Sun, Oct 25, 2009 at 5:32 PM, Glyph Lefkowitz wrote: > On Oct 25, 2009, at 1:50 AM, James Y Knight wrote: > >> On Oct 25, 2009, at 1:38 AM, Glyph Lefkowitz wrote: >>> # in your application >>> class Application(object, Library): pass >> >> Maybe the answer "why not" is obvious and I should alre

Re: [Twisted-Python] Can I post a consultant request here?

2009-10-27 Thread Alex Clemesha
Hi Steve, >        I'm looking for a very short-term mentoring/consulting contract to > help me get an Ajax/Comet type of connection working between a web > interface and a fairly long-running, server-side process. > >        I want the web interface to reflect the server-side data as it > becomes