Re: [Twisted-Python] how to implement login form logic with twisted.cred checkers, credentials and portal

2016-03-05 Thread Mashiat Sarker Shakkhar
On 3/2/16 9:32 AM, snailcoder wrote: I'm trying to implement some login logic using twisted.cred module for a website. In short, there's a login page with username/password forms. Once the user input the right username/password, the browser will redirect to another page which includes the user'

Re: [Twisted-Python] Twisted + OpenSSL 1.0.2f issues resolved

2016-02-19 Thread Mashiat Sarker Shakkhar
Will one of the ML admins please ban the address sending these emails? It is a little annoying. Not sure if anyone else is getting them. On Fri, Feb 19, 2016 at 10:43 AM, Emily Palmer wrote: > To Whom it May Concern: > It has truly been an honor to be your insurance agent over the many years > t

Re: [Twisted-Python] How to design REST API with Twisted?

2015-11-03 Thread Mashiat Sarker Shakkhar
On 11/3/15 10:15 PM, Wang Yan wrote: I'm planning to design some REST APIs with Twisted in Python. For example, I want to use the HTTP method "GET" to fetch a single user's information: |GET http://myhost:8000/api/v1.0/users/[user_id] | I know I should inherit the twisted.web.resource.Resour

Re: [Twisted-Python] Testing function with delayed calls

2015-10-02 Thread Mashiat Sarker Shakkhar
On Thu, Oct 1, 2015 at 5:46 PM, Ashwini Oruganti wrote: > > > On Thu, Oct 1, 2015 at 1:40 PM, Mashiat Sarker Shakkhar < > mashiat.sar...@gmail.com> wrote: > >> Hi >> >> I have a function that uses callLater extensively to schedule a number of >>

[Twisted-Python] Testing function with delayed calls

2015-10-01 Thread Mashiat Sarker Shakkhar
Hi I have a function that uses callLater extensively to schedule a number of different tasks. I don't want to get into the rationale behind such a design, but here is a contrived example which will help me explain my problem: def b(): '''Do some work''' def c(): '''Do

Re: [Twisted-Python] Trapping exceptions in Deferred

2015-05-22 Thread Mashiat Sarker Shakkhar
On Tue, May 12, 2015 at 3:31 PM, Christopher Armstrong < ra...@twistedmatrix.com> wrote: > [...] > Your code example is printing the error message and traceback _before_ you > trap the failure. Are those print statements going to your logs? Could that > be causing confusion? > To sum up the discu

Re: [Twisted-Python] Trapping exceptions in Deferred

2015-05-12 Thread Mashiat Sarker Shakkhar
On Tue, May 12, 2015 at 1:38 PM, Louis D. Burr wrote: > Hi Mashiat, > [...] > Thanks for providing the example. Your code as presented here catches > both TimeoutError and ResponseNeverReceived, so I am not sure why you think > it isn’t working. What are you seeing that indicates that the >

Re: [Twisted-Python] Trapping exceptions in Deferred

2015-05-12 Thread Mashiat Sarker Shakkhar
On Tue, May 12, 2015 at 11:33 AM, Louis D. Burr wrote: > > Hi Mashiat, [...] > This code sample does not indicate that you have actually assigned log_ignore_network_errors as an errback on a Deferred anywhere. If you can provide a working code example that demonstrates your issue, it will be ea

[Twisted-Python] Trapping exceptions in Deferred

2015-05-12 Thread Mashiat Sarker Shakkhar
Hi If I want to trap a certain type of exception in a deferred call, how do I specify it? For example, I see a failure like this: [HTTP11ClientProtocol (TLSMemoryBIOProtocol),client] [>] [HTTP11ClientProtocol (TLSMemoryBIOProtocol),client] Traceback (most recent call last): [HTTP11Cl