Feature #1828
Feature #44: Implement basic introspection support
Initial support for participant hierarchies
Status: | Resolved | Start date: | 04/01/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | J. Moringen | % Done: | 100% | |
Category: | Python | |||
Target version: | rsb-0.11 |
Associated revisions
Support hierarchies of participants in rsb/**/*.py
fixes #1828
A parent participant can now be specified when a new participant iscreated. The request-reply module specifies:
- {Local,Remote}Server instance as parents of {Local,Remote}Method
instances - {Local,Remote}Method instances as parents of their Listener and
Informer instances
- rsb/__init__.py (createParticipant): accept parent keyword parameter;
pass to participantCreationHook
(createListener): accept parent keyword parameter; pass to
createParticipant; extended documentation string
(createInformer): likewise
(createLocalServer): likewise
(createRemoteServer): likewise
(createServer): similar - rsb/patterns/__init__.py (LocalMethod.makeListener): pass self as
parent to createListener
(LocalMethod.makeInformer): similar
(LocalServer.addMethod): similar
(RemoteMethod.makeListener): similar
(RemoteMethod.makeInformer): similar
(RemoteServer.__getattr__): similar - rsb/introspection/__init__.py (ParticipantInfo.__init__): added
parentId attribute
(ParticipantInfo.getParentId): new method; accessor for parentId
attribute
(ParticipantInfo.parentId): new property; parentId
(IntrospectionSender.addParticipant): accept optional parent
parameter; if supplied, store parent id in ParticipantInfo
(handleParticipantCreation): accept optional parent parameter; pass to
IntrospectionSender.addParticipant - test/coretest.py (HookTest.setUp): record parent participant for
following check
(HookTest.testInformer): check parent participant
(HookTest.testListener): likewise
(HookTest.testLocalServer): likewise
(HookTest.testRemoteServer): likewise - test/introspectiontest.py
(ParticipantInfoTest.testConstructionWithoutParentId): renamed
testConstruction{ -> WithoutParentId}
(ParticipantInfoTest.testConstructionWithParentId): new method; test
constructing ParticipantInfo objects with parentId
History
#1 Updated by J. Moringen over 9 years ago
- Status changed from In Progress to Resolved
- % Done changed from 80 to 100
Applied in changeset rsb-python|d4b7009a14d96a745d2ccc9ec42d961568e12838.