Module t.a.compat

Part of twisted.application View Source

Backwards compatibility module

This module allows Applications to behave (partially) like old Application objects, and converts olds Applications to new ones.

API Stability: unstable

Maintainer: Moshe Zadka
Line # Kind Name Docs
24 Interface IOldApplication A subset of the interface old Application objects had implicitly
193 Class _NewService Wrap a twisted.internet.app.ApplicationService in new service API.
237 Class _ServiceNetwork Undocumented
348 Function convert Convert an i.app.Application to a application.service.Application
def convert(oldApp):
Convert an i.app.Application to a application.service.Application
ParametersoldApp(type: twisted.internet.app.Application )
Returns(type:

twisted.application.service.Application

This function might damage oldApp beyond repair: services that other parts might be depending on might be missing. It is not safe to use oldApp after it has been converted. In case this behaviour is not desirable, pass a deep copy of the old application )