1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 """
23 Manager-side identities of objects that can request operations from the manager.
24 """
25
27 """
28 I represent the identity of an object that can ask the manager to
29 perform functions.
30
31 I exist for the AdminAction socket, defined in
32 L{flumotion.component.plugs.adminaction}, so that specific actions
33 can be taken when I request to perform a function.
34
35 I serve as a point of extensibility for the IdentityProvider socket,
36 defined in L{flumotion.component.plugs.identity}.
37
38 Subclasses should only implement __str__
39 """
41 raise NotImplementedError
42
44 """
45 I represent a local identity.
46 """
49
51 return "<%s>" % self.name
52
54 """
55 I represent the identity of a remote avatar.
56
57 I hold the username and host of the remote avatar.
58 """
62
64 return '%s@%s' % (self.username or '<unknown user>',
65 self.host or '<unknown host>')
66