[Twisted-Python] Deferred SOAP methods

2009-11-13 Thread Landreville
I am making a SOAP server and all (or at least the vast majority) will be returning a deferred. The whole SOAP method is encapsulated in a deferred in most of my cases (I havent implemented this part yet.) Then I got the idea that twisted.web.soap could just wrap my SOAP method (retrieved with look

Re: [Twisted-Python] Deferred SOAP methods

2009-11-13 Thread Landreville
On Fri, Nov 13, 2009 at 10:25 AM, wrote: > On 02:52 pm, landrevi...@deadtreepages.com wrote: > >I am making a SOAP server and all (or at least the vast majority) will > >be > >returning a deferred. The whole SOAP method is encapsulated in a > >deferred in > >most of my cases (I havent implemented

Re: [Twisted-Python] Deferred SOAP methods

2009-11-13 Thread Landreville
On Fri, Nov 13, 2009 at 3:46 PM, wrote: > On 03:42 pm, landrevi...@deadtreepages.com wrote: > >On Fri, Nov 13, 2009 at 10:25 AM, wrote: > > > >[snip] > >> > >>What is it that you're going to be doing in these SOAP methods? > >> > >>Jean-Paul > >They are doing a bunch of setting and retrieving in

Re: [Twisted-Python] Deferred SOAP methods

2009-11-14 Thread Landreville
On Sat, Nov 14, 2009 at 9:15 AM, Tuure Laurinolli < tuure.laurino...@indagon.com> wrote: > Landreville wrote: > > > Sometimes the calls are blocking because it is calling another SOAP > > server (or possibly itself over SOAP). My SOAP calls will all be > > blo

[Twisted-Python] Multiple deferreds that depend on each other

2009-11-17 Thread Landreville
I know people ask about deferreds all the time (and i've read through a bunch of those questions), but there is still one thing I don't quite grasp. If I want to do a number of actions in a row that each return a deferred but depend on eachother, do I need to nest those callbacks? Ie if i want to

Re: [Twisted-Python] Multiple deferreds that depend on each other

2009-11-17 Thread Landreville
original method? On Tue, Nov 17, 2009 at 11:08 AM, Reza Lotun wrote: > Hi Landreville, > > > If I want to do a number of actions in a row that each return a deferred > but > > depend on eachother, do I need to nest those callbacks? > > Ie if i want to: > > 1. Ca

[Twisted-Python] Storm ORM

2009-11-20 Thread Landreville
Hello, Does anyone use a good ORM with twisted? I'm looking for something very simple, but works with twisted easily. I saw this possible approach to using Storm with twisted http://divmod.org/trac/wiki/NevowStormApproach but has any progress been made to put this in place? __

Re: [Twisted-Python] Creating an HTTP Proxy.. 2 Problems: HTTPS & changing the outgoing contents

2009-11-23 Thread Landreville
On Sun, Nov 22, 2009 at 12:42 AM, Kyle Hanson wrote: > Basically I want to create a personal HTTP proxy to add a javascript > library to every page I visit because the javascript contains several tools > I wrote and Chrome doesnt allow extensions. > > So I have a basic proxy set up from here: > h

Re: [Twisted-Python] Syntactic sugar for deferreds

2009-12-07 Thread Landreville
On Mon, Dec 7, 2009 at 10:02 AM, sstein...@gmail.com wrote: > On Dec 7, 2009, at 9:50 AM, Konrads Smelkovs wrote: > > > Hi, > > > > One project I had a look at had this nice syntactic sugar for async > function chaining: > > > > >>> event_one() | event_two() | event_three() > > > > I think this co

[Twisted-Python] Twistd logging

2009-12-08 Thread Landreville
quest. Thanks, Landreville ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twistd logging

2009-12-09 Thread Landreville
On Wed, Dec 9, 2009 at 12:26 PM, wrote: > On 8 Dec, 09:04 pm, landrevi...@deadtreepages.com wrote: > >Is there a way I can customize the format of log file? > >I want to add more information to each line (about the xmlrpc method > >being > >called), but I can't find where these lines get written

[Twisted-Python] XMLRPC get IP address

2009-12-14 Thread Landreville
Hello, I've looked through the mailing list and already found this reference to get the IP address when using xmlrpc: http://twistedmatrix.com/pipermail/twisted-python/2004-June/007987.html But it is not working. I have added this to my class that inherits from xmlrpc.XMLRPC def render(self, r

[Twisted-Python] Websites down

2009-12-21 Thread Landreville
I'm getting an error from http://twistedmatrix.com Error 503 Service Unavailable Service Unavailable Guru Meditation: XID: 1274684191 Varnish ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/l

[Twisted-Python] adbapi transaction initiation

2009-12-31 Thread Landreville
I've just noticed the transaction_timestamp is actually way (up to several minutes) before the database proc gets called. I'm on postgresql 8.4 so the transaction_timestamp is when the transaction started, and I compared it against the clock_timestamp (absolute current time) and it is quite a bit o

Re: [Twisted-Python] WSGI Question

2010-01-20 Thread Landreville
On Wed, Jan 20, 2010 at 9:58 AM, adamjamesdrew same wrote: > I deploy code. Then I modify the code on my file system. The code does not > automatically change on the server. It does this on the django dev server. > How can I make this happen? > > I start the server as follows > > twistd -ny server

[Twisted-Python] SIP and RTP

2010-01-20 Thread Landreville
Hello, I need to make a SIP call and play a wav file over the RTP stream from a twisted server. This is a sort of visual voicemail application. Has anyone set this up using twisted before? I saw the SIP protocol support in twisted, but I'm not sure how complete it is. Do you think it would be di

Re: [Twisted-Python] WSGI Question

2010-01-20 Thread Landreville
On Wed, Jan 20, 2010 at 1:51 PM, Phil Christensen wrote: > On Jan 20, 2010, at 10:40 AM, Landreville wrote: >> On Wed, Jan 20, 2010 at 9:58 AM, adamjamesdrew same >> wrote: >>> I deploy code. Then I modify the code on my file system. The code does not >>> autom

Re: [Twisted-Python] SIP and RTP

2010-01-21 Thread Landreville
On Thu, Jan 21, 2010 at 12:10 AM, Godson Gera wrote: > There is no direct RTP support in Twisted. Shtoom did that but its dead long > back. I've seen people using the same RTP code implemented by shtoom here > and there. Also SIP implementation in Twisted is not 100%. There is one more > project c

Re: [Twisted-Python] SIP and RTP

2010-01-22 Thread Landreville
On Thu, Jan 21, 2010 at 9:58 PM, Allen Short wrote: > > Your best bet is probably going to be looking at the code in Divmod Sine. > You can access the code at: http://divmod.org/svn/Divmod/trunk/Sine/ > Unfortunately it isn't very polished -- documentation, especially for the > user agent pieces,

Re: [Twisted-Python] understanding deferreds

2010-02-01 Thread Landreville
On Sat, Jan 30, 2010 at 2:16 AM, Andrew Bennetts wrote: > twisted-...@udmvt.ru wrote: > [...] >> Is it true, that adding many callback functions as filters is elegant, >> but impractical solution? >> Since there is only a [linear] list of pairs (callback, errback), the last >> errbacks >> have to

Re: [Twisted-Python] twisted.protocol.sip

2010-02-23 Thread Landreville
On Mon, Feb 22, 2010 at 4:06 PM, Lorenzo Mainardi wrote: > Hello, > I'm trying to extend the class twisted.protocols.sip.MessageParser for > create my parser. > I had read the documentation and I found this: "Shouldn't > be connected to actual transport.". > What does it means? I can't use that bi

Re: [Twisted-Python] twisted.protocol.sip

2010-02-23 Thread Landreville
On Tue, Feb 23, 2010 at 10:28 AM, Lorenzo Mainardi wrote: > 2010/2/23 Landreville : > >> I'll put it up somewhere so you can see it, >> but I'm fairly new at twisted so someone else might say it is the >> wrong approach. >> > > Hi, I'm start

Re: [Twisted-Python] twisted.protocol.sip

2010-02-23 Thread Landreville
On Tue, Feb 23, 2010 at 4:42 PM, Lorenzo Mainardi wrote: > Landreville ha scritto: >> On Tue, Feb 23, 2010 at 10:28 AM, Lorenzo Mainardi >> wrote: >>> 2010/2/23 Landreville : >>> >>>> I'll put it up somewhere so you can see it, >>>>

Re: [Twisted-Python] WSDL Proxy Send variable names

2010-03-02 Thread Landreville
On Tue, Mar 2, 2010 at 5:20 AM, Kamil Wasilewski wrote: > Hi, >  I need to be able to send variable names when sending requests to a SOAP > server. Currently SOAPpy sends my variables automatically named as v1, v2, > v3. The server requires they have a name varNameA, varNameB etc. > Here is my out

Re: [Twisted-Python] Utilizing Twisted for transport w/ SUDS

2010-04-20 Thread Landreville
On Mon, Apr 19, 2010 at 7:26 PM, jathan. wrote: > Hello- > I have a project that is based on Twisted used to > communicate with network devices and I am adding support for a new > vendor (Citrix NetScaler) whose API is SOAP.  Unfortunately the > support for SOAP in Twisted still relies on SOAPpy,

[Twisted-Python] Setting a different logger for Twistd

2010-06-08 Thread Landreville
Hello, I saw a few tickets and some mailing list messages similar to this question, but never saw a definitive answer. How do I go about using a different logger when I am using twistd? I have a file that defines the application object and I tried the following code in hopes that I could make the

Re: [Twisted-Python] Setting a different logger for Twistd

2010-06-08 Thread Landreville
On Tue, Jun 8, 2010 at 10:46 AM, Landreville wrote: > Hello, > I saw a few tickets and some mailing list messages similar to this > question, but never saw a definitive answer. > > How do I go about using a different logger when I am using twistd? > > I have a file that de

[Twisted-Python] runInteraction function returning a deferred

2010-06-28 Thread Landreville
here while not finished['test'] and not finished['failed']: time.sleep(0.25) if finished['failed']: raise Exception('Web scraping failed.') d = dbpool.runInteraction(interaction) Thanks for a look, Landreville

Re: [Twisted-Python] runInteraction function returning a deferred

2010-06-29 Thread Landreville
On Mon, Jun 28, 2010 at 2:59 PM, Glyph Lefkowitz wrote: > > On Jun 28, 2010, at 10:19 AM, Landreville wrote: > > Is there some way for runInteraction to wait for this deferred to be > finished before ending the transaction? > > blockingCallFromThread: > http://twistedmat

[Twisted-Python] CentOS error installing

2010-08-18 Thread Landreville
(Each undeclared identifier is reported only once twisted/runner/portmap.c:55: error: for each function it appears in.) error: Setup script exited with error: command 'gcc' failed with exit status 1 Is this a bug I should submit, or something that is known that I am doing wrong? Thank

Re: [Twisted-Python] CentOS error installing

2010-08-18 Thread Landreville
On Wed, Aug 18, 2010 at 1:36 PM, Maarten ter Huurne wrote: > On Wednesday 18 August 2010, Landreville wrote: >> Hello, >> >> I'm running CentOS 5.5 64bit and when I tried to install twisted using >> easy_install I get this error message: >> >> Running

Re: [Twisted-Python] Twisted and SOAP

2010-09-01 Thread Landreville
a pity there's no recommended way of doing this. > > For future reference: I ended up using suds with the following wrapper > provided to this list in April by Landreville. It seems to be working > great, so thanks Landreville :) > > """ Wrapper for suds to c

[Twisted-Python] State of snmp

2010-09-22 Thread Landreville
o I don't think that is source for the package. Thanks, Landreville ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] State of snmp

2010-09-22 Thread Landreville
On Wed, Sep 22, 2010 at 12:48 PM, Ilya Etingof wrote: > > You may want to take a look at pysnmp 4.x, which has Twisted binding > built-in. > >> What is the current recommended (or most popular) way of using SNMP >> with Twisted? >> >> I have tried TwistedSNMP, but it seems to only work with an old

[Twisted-Python] Handling too many open file descriptors

2010-09-27 Thread Landreville
I'm running an application that makes about 1300 snmp connections every minute; I'm using utils.getProcessOutput with snmpget because pysnmp throws an error when I try to run it. Now of course I get the Too many open files error, but is the best way to handle this increasing the limit on Linux or b

Re: [Twisted-Python] Handling too many open file descriptors

2010-09-27 Thread Landreville
On Mon, Sep 27, 2010 at 10:53 AM, wrote: > On 02:45 pm, landrevi...@deadtreepages.com wrote: >>I'm running an application that makes about 1300 snmp connections >>every minute; I'm using utils.getProcessOutput with snmpget because >>pysnmp throws an error when I try to run it. Now of course I get