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: 6964 $"
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 IdentityProvider socket,
40 defined in L{flumotion.component.plugs.identity}.
41
42 Subclasses should only implement __str__
43 """
45 raise NotImplementedError
46
47
49 """
50 I represent a local identity.
51 """
54
56 return "<%s>" % self.name
57
58
60 """
61 I represent the identity of a remote avatar.
62
63 I hold the username and host of the remote avatar.
64 """
68
70 return '%s@%s' % (self.username or '<unknown user>',
71 self.host or '<unknown host>')
72