Re: [Twisted-Python] Cred question

2010-08-05 Thread Sury Soni
> i guess he wants admin to 1) impersonate another user, akin to su -u > anotheruser and 2) also to drop that user's session. > For 1) you'd have to set the avatar to the user's id (or at application level > implement something like effective uid). For 2) you'd have to iterate over all > active ses

[Twisted-Python] Cred question

2010-08-03 Thread Sury Soni
Hi, I am using Cred authentication system in my Nevow based web application. Admin user can see list of all users from admin interface of the application. Now, admin user wants to do following things: 1. Automatically login as other user 2. Induce logout to already logged in user.

Re: [Twisted-Python] loading intermediate CA certs from a chain file

2010-07-20 Thread Sury Soni
I was able to solve this problem by writing following class. Thank you JP for pointing me to use_certificate_chain_file function. class ChainedOpenSSLContextFactory(DefaultOpenSSLContextFactory): def __init__(self, privateKeyFileName, certificateChainFileName, sslmethod=SSL.S

[Twisted-Python] loading intermediate CA certs from a chain file

2010-07-20 Thread Sury Soni
Hi There, Does Twisted support or is there any way of loading intermediate CA certs from a chain file? I have a SSL certificate issued by Thawte, but my system administrator says as quoted: Looks like you may need to install an Intermediary certificate. Relevant certs for Thawte can be found

Re: [Twisted-Python] Nevow question

2010-02-21 Thread Sury Soni
> > On Fri, Feb 19, 2010 at 03:17:07PM +1100, Sury Soni wrote: > > Hi, > > > > How do we disable traceback on Nevow production site? > > > > Right now, by default, any nevow site will print full length of > > traceback on web browser if t

[Twisted-Python] Nevow question

2010-02-18 Thread Sury Soni
Hi, How do we disable traceback on Nevow production site? Right now, by default, any nevow site will print full length of traceback on web browser if there is some exception within the application. I have gone through the ticket http://twistedmatrix.com/trac/ticket/135 but could not fin

Re: [Twisted-Python] Twisted book(s)?

2009-06-02 Thread Sury Soni
You are right David. I read that book and that book is definitely not for the beginner python programmers. And, yes, that book is not up to date as well. Cheers. Surya From: twisted-python-boun...@twistedmatrix.com [mailto:twisted-python-boun...@twistedmatrix.com] On Behalf Of D

[Twisted-Python] Novice question on twisted framework

2009-03-16 Thread Sury Soni
Hi, I have an existing application, written using Ice Middleware (www.zeroc.com) This application is my source of infinite queue (server) Following is my application (processing client to my infinite queue server) idea to be implemented using Twisted Framework. I can loop through my