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