674
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
673
|
|
|
Christopher Armstron... |
11 years ago
|
|
|
672
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
671
|
|
|
Christopher Glass |
11 years ago
|
|
|
670
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
669
|
|
|
Christopher Armstron... |
11 years ago
|
|
|
668
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
667
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
666
|
|
Merge amp-cleanup-6 [f=1170669] [r=tribaal,radix,tealeg] [a=Free Ekanayaka] Another episode of the AMP-related cleanup:
- Rename landscape.amp.RemoteComponentConnector to simply ComponentConnector (the fact that it's remote is implied by the fact that you connect to it, and the new name complements the existing ComponentPublisher nicely)
- Drop the landscape.amp.ComponentProtocolClientFactory sub-class and use MethodCallClientFactory directly, tweaking the needed instance attributes with explicit assignements (this is a sort of composition-over-inheritance change)
- Drop landscape.reactor.UnixReactorMixin. The landscape.reactor.FakeReactor class now really fakes the Unix socket transport, by re-using the machinery in landscape.lib.tests.test_amp, instead of delegating the behavior to the real twisted reactor (hence making it not fake at all)
- Update tests that were using FakeReactor.listen_unix/connect_unix (directly or via helpers) to be synchronous. This means essentially using FakeReactor.advance to simulate time progresses and trigger scheduled calls.
- Make landscape.lib.amp.RemoteObject aware of fake transports, so it can flush it transparently. This is a hacky workaround to the fact that twisted's AMP code doesn't like synchronous transports, and without it we'd need to explicitly flush the fake transport buffers explicitly all the times in a test we communicate with a remote component connected via a fake transport.
- Drop landscape.service.LandscapeService.socket instance attribute, as LandscapeService-derived classes now all use the new landscape.amp.ComponentPublisher convenience introduced in former branches, that takes care of that.
|
Free Ekanayaka |
11 years ago
|
|
|
665
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
664
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
663
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
662
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
661
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
660
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
659
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
658
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
657
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
656
|
|
|
Free Ekanayaka |
11 years ago
|
|
|
655
|
|
|
Free Ekanayaka |
11 years ago
|
|
|