1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 """jelliers for State shared between worker, manager and admin
19 """
20
21
22
23
24
25
26 from twisted.spread import pb
27
28 from flumotion.twisted import flavors
29 from flumotion.common import registry
30
31 __version__ = "$Rev$"
32
33
34
35
36
39
40
43
45
46
47 return id(self.__dict__)
48
49
52
53
54 pb.setUnjellyableForClass(WorkerComponentUIState, ManagerComponentUIState)
55 pb.setUnjellyableForClass(ManagerComponentUIState, AdminComponentUIState)
56
57
58 -class WizardEntryState(pb.RemoteCopy):
59
61 """
62 Fetches a list of media types this components accepts.
63 @returns: a list of strings
64 """
65 return [accepted.media_type for accepted in self.accepts]
66
68 """
69 Fetches a list of media types this components provides.
70 @returns: a list of strings
71 """
72 return [provided.media_type for provided in self.provides]
73
76
77 pb.setUnjellyableForClass(registry.RegistryEntryWizard, WizardEntryState)
78
79
82
83 pb.setUnjellyableForClass(registry.RegistryEntryWizardFormat,
84 WizardEntryFormatState)
85