Re: [Twisted-Python] returning a deferred in getStateToCopyFor.

2012-03-31 Thread Glyph
On Mar 31, 2012, at 5:59 AM, Flint wrote: > 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) > ... >

[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