Hi Michal,
Actually, I was running the example under root. (sudo)
I was able to list/put/get file for my non-root user after login.
However, listing (ls) doesn't work on top level directory (e.g. /home/ychan),
but it works fine anywhere else.
The following shows the issue.
ychan@ubuntu:~/sandbo
Are you getting the error "Operation not permitted" when you try to do
directory listing?
This can be caused by running the SFTP server under a user which can't
change his
effective group and uid to 0 (uid of root user).
This is because when you login as user "foo" the server needs to execute all
s
Thanks for your advice .. that's what I was looking for;)
Makes sense, I'll stick to your advice, kick the subclassing approach and the
stuff with the reordering version rcall().
That leaves "partial" and "lambda"
# Option 1 : prints 31
d2 = self.call("square", 6).addCallback(lambda
On Aug 23, 2011, at 10:37 AM, Tobias Oberstein wrote:
> class AutobahnDeferred(Deferred):
> def call(self, *args):
> return self.addCallback(self.protocol.rcall, *args)
>
> Pro: most terse
> Con: only supports single callback no errback
Con: subclassing in general is a bad idea. Subcl
On Aug 23, 2011, at 9:49 AM, Jeffrey Ollie wrote:
> On Mon, Aug 22, 2011 at 3:02 PM, Jeffrey Ollie wrote:
>>
>> The problem seems to be that the remote SFTP implementation isn't
>> returning complete status response message - it doesn't include the
>> error message and the language identifier.
FYI:
The sample code is working on my side, but I had a problem to list the
files with permission issue.
I guessed it may be a issue related to my server setting. However, it
would be good if we have another person to test the code as well.
Thanks
On 8/23/11 6:21 AM, "Thijs Triemstra" wrote:
>
> > self.call(, )
> > self.call("square", 6).addCallback(self.call,
> > "sqrt").addCallback(self.show)
>
> The easiest way to do this is probably:
>
> from functools import partial
> self.call("square", 6).addCallback(partial(self.call,
> "sqrt")).addCallback(self.show)
Thanks alot! Did not knew
On Mon, Aug 22, 2011 at 3:02 PM, Jeffrey Ollie wrote:
>
> The problem seems to be that the remote SFTP implementation isn't
> returning complete status response message - it doesn't include the
> error message and the language identifier. I made a quite ugly
> workaround:
Wow... while googling f
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 08/23/2011 01:10 AM, Osborn Chan wrote:
> Hi Michal,
>
> Thanks a lot!
> It is a very nice working example, and it is good for newbie as well.
>
> Regards,
>
> Osborn
I attached it to http://twistedmatrix.com/trac/ticket/5237 so it could
be incl