Re: [Twisted-Python] Like to write some code for Twisted

2014-02-09 Thread Flint
Hi Surya Here one of the best introduction to Twisted I know :) http://krondo.com/?page_id=1327 2014-02-08 Laurens Van Houtven <_...@lvh.io>: > Hi Surya! > > > First of all, thank you for offering up your free time to help Twisted. > > Specific advice: > > 1. Join #twisted > 2. Join #twisted

Re: [Twisted-Python] Unpersistable instead of pb.Avatar

2013-12-01 Thread Flint
Hi, How do I fix this and actually send out new perspectives to users? > pb.Avatar is not a Referenceable object, the object which is sent when a client login is a wrapper againt the pb.Avatar object built like this: // pb.py L1327 if not IJellyable.providedBy(avatar): avatar = AsR

Re: [Twisted-Python] perspective argument missing from Viewable.view_*

2013-11-18 Thread Flint
Hi Daniel. To get the perspective you have to implements the IPerspective interface (generally throw subclassing pb.Avatar class), and attach a login portal to your server. Client then have to authenticate to the server, only then you will receive the perspective object representing the "logged" u

Re: [Twisted-Python] Is a Viewable Cacheable a good idea?

2013-11-13 Thread Flint
Hi, >> Is simultaneously sub-classing Viewable and Cacheable a good idea? I am not sure it would work, at least not as you expect. Viewable and Cacheable both implement a different version of jellyFor (which will decides how object is seen on the other side of the connection). If you sub-class bot

Re: [Twisted-Python] Limiting cipher options for SSH/SFTP

2013-10-30 Thread Flint
Hi I have not used it myself but this seems what you're looking for: http://twistedmatrix.com/documents/13.0.0/api/twisted.conch.ssh.transport.SSHTransportBase.html#supportedCiphers I guess you need to subclass SSHTransport and give it the list of ciphers you want. -- Nacim. 2013/10/29 Ra

Re: [Twisted-Python] epoll keep sharing state between process even after fork.

2013-10-24 Thread Flint
> > To expand on that just a bit, the form of sharing that you get when you > fork() but you don't exec() is very difficult to use correctly (I think > it's an open question whether it's *possible* to use correctly in a Python > program). > > The argument here is similar to the argument against sha

Re: [Twisted-Python] epoll keep sharing state between process even after fork.

2013-10-24 Thread Flint
> > 2. Arrange for the epoll object (or FD) to be closed after fork, but > > before exec, so that the child process can't fiddle with it > > See also: > > http://bugs.python.org/issue8713 > > ...which suggests Python 3.4 added fork+exec support to multiprocessing. > On Unix and older Python versi

Re: [Twisted-Python] epoll keep sharing state between process even after fork.

2013-10-24 Thread Flint
> > On 03:46 pm, grindi...@gmail.com wrote: > >Hi everybody > > > >I a came across a surprising problem when using the epoll based > >reactor. > >(ticket here https://twistedmatrix.com/trac/ticket/6796) > > > >As you can see on the ticket, the epoll object seems to share some > >state > >even after

[Twisted-Python] epoll keep sharing state between process even after fork.

2013-10-23 Thread Flint
Hi everybody I a came across a surprising problem when using the epoll based reactor. (ticket here https://twistedmatrix.com/trac/ticket/6796) As you can see on the ticket, the epoll object seems to share some state even after fork. Which means even after having forked the process, making some ch

Re: [Twisted-Python] Password hash for Perspective Brokers

2012-07-26 Thread Flint
Hi, i've faced the same problem and submitted a patch a few month ago, your can check it here http://twistedmatrix.com/trac/ticket/4398 you'll find also a complet example attached. My first problem was that, the way twisted pb authentication works we're supposed to have a plan version of passwords

[Twisted-Python] returning a deferred in getStateToCopyFor.

2012-03-31 Thread Flint
Hi, all. using PB i wanted to implement some access control check on my copyable objects. so i placed that in getStateToCopyFor, all is ok except when i need to perfom some asynchronous call in that method. ex: (i use twisted 10.1.0) ... def getStateToCopyFor(self, user): state = self.getStateToC