1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 """manager-side identities of objects.
19 Manager-side identities of objects that can request operations
20 from the manager.
21 """
22
23 __version__ = "$Rev$"
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 IdentityProviderPlug socket,
36 defined in L{flumotion.component.plugs.identity}.
37
38 Subclasses should only implement __str__
39 """
40
42 raise NotImplementedError
43
44
46 """
47 I represent a local identity.
48 """
49
52
54 return "<%s>" % self.name
55
56
58 """
59 I represent the identity of a remote avatar.
60
61 I hold the username and host of the remote avatar.
62 """
63
67
69 return '%s@%s' % (self.username or '<unknown user>',
70 self.host or '<unknown host>')
71