[Twisted-Python] Assigning AMP box senders & receivers from the responder

2012-07-03 Thread Laurens Van Houtven
Hi, I have an AMP service that does cred-based auth with IBoxReceiver as the interface (see mantissa). On login, the user gets a different API depending if they're a staff member or not. Additionally, I wrote a composing IResponderLocator. It takes a bunch of responder locators and calls them

Re: [Twisted-Python] ANN: Twisted DBus 1.0

2012-07-03 Thread Tobias Oberstein
> For anyone interested in taking a look, I've just released a native-Python > implementation of the DBus protocol for Twisted. The intent of the > implementation is to provide Twisted applications with a full-featured DBus > API > that is consistent with the rest of the framework and does not req

Re: [Twisted-Python] ANN: Twisted DBus 1.0

2012-07-03 Thread Tom Cocagne
Glyph was kind enough to point out offline that I screwed up the project name during my midnight cleanup and release process. The name was intended to be "Tx Dbus" rather than "Twisted DBus". The previous project links have been removed and replaced with their corrected counterparts: https://gith

Re: [Twisted-Python] ANN: Twisted DBus 1.0

2012-07-03 Thread Tom Cocagne
I believe credential passing over Unix sockets is a new feature in Twisted 12.1. The older versions I used to develop this project didn't support that feature so I had to implement it myself. From the stacktrace, I'm guessing that my workaround for this is clashing with Twisted's new build-in suppo

Re: [Twisted-Python] ANN: Twisted DBus 1.0

2012-07-03 Thread Christopher Armstrong
On Tue, Jul 3, 2012 at 2:08 AM, Tom Cocagne wrote: > For anyone interested in taking a look, I've just released a > native-Python implementation of the DBus protocol for Twisted. The > intent of the implementation is to provide Twisted applications with a > full-featured DBus API that is consisten

Re: [Twisted-Python] ANN: Twisted DBus 1.0

2012-07-03 Thread Tom Cocagne
Unfortunately, it looks like 12.1 may be completely incompatible with txdbus. The ancillary data support for Unix sockets appears to support only file descriptor passing and breaks when credential passing is attempted. The current implementation assumes and fails to check for ancillary data sizes o

Re: [Twisted-Python] ANN: Twisted DBus 1.0

2012-07-03 Thread Jasper St. Pierre
On Tue, Jul 3, 2012 at 2:08 AM, Tom Cocagne wrote: > For anyone interested in taking a look, I've just released a > native-Python implementation of the DBus protocol for Twisted. The > intent of the implementation is to provide Twisted applications with a > full-featured DBus API that is consisten

Re: [Twisted-Python] ANN: Twisted DBus 1.0

2012-07-03 Thread Christopher Armstrong
On Tue, Jul 3, 2012 at 9:08 AM, Tom Cocagne wrote: > Glyph was kind enough to point out offline that I screwed up the > project name during my midnight cleanup and release process. The name > was intended to be "Tx Dbus" rather than "Twisted DBus". The previous > project links have been removed an

Re: [Twisted-Python] ANN: Twisted DBus 1.0

2012-07-03 Thread Tom Cocagne
No, I haven't compared it to GDbus. I would certainly expect it's performance to be better though. it's been a long time since I've used PyGTK. Honestly, I'd completely forgotten about it. I'll give it a look. Tom On Tue, Jul 3, 2012 at 10:28 AM, Jasper St. Pierre wrote: > On Tue, Jul 3, 2012 at

Re: [Twisted-Python] ANN: Twisted DBus 1.0

2012-07-03 Thread Tom Cocagne
Not sure how I overlooked that. Done. Tom On Tue, Jul 3, 2012 at 10:53 AM, Christopher Armstrong wrote: > On Tue, Jul 3, 2012 at 9:08 AM, Tom Cocagne wrote: >> Glyph was kind enough to point out offline that I screwed up the >> project name during my midnight cleanup and release process. The n

Re: [Twisted-Python] ANN: Twisted DBus 1.0

2012-07-03 Thread Tom Cocagne
Nevermind. Simply removing the explicit credential passing from the client side of the implementation fixed the problem. txdbus 1.0.2 appears to run just fine on 12.1. Tom On Tue, Jul 3, 2012 at 10:14 AM, Tom Cocagne wrote: > Unfortunately, it looks like 12.1 may be completely incompatible with

Re: [Twisted-Python] Assigning AMP box senders & receivers from the responder

2012-07-03 Thread Glyph
On Jul 3, 2012, at 12:08 AM, Laurens Van Houtven <_...@lvh.cc> wrote: > I'm trying to implement a command called "Become" that allows a staff member > to work as if he was the user himself. The most obvious way (to me at least) > to do that to create the customer API (an IBoxReceiver/amp.BoxDi

[Twisted-Python] bug or my code? (getPage + Twisted Webserver = Exception)

2012-07-03 Thread Me Myself
Hi All, I have a flask application that I am running on a https twisted webserver and forwarding the port to a url. Everything works well. I can goto the url using firefox, accept the certificate and get in. I have a small nose test to test if the url is up. Here is the test: @deferred(timeo