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