|
98 |
may_change=True, |
98 |
may_change=True, |
99 |
identifies=False |
99 |
identifies=False |
100 |
), |
100 |
), |
|
|
101 |
'hosts': univention.admin.property( |
102 |
short_description=_('Restrict to host'), |
103 |
long_description=_('Defines on which hosts this operations are permitted on. Leaving this empty causes all hosts to be allowed.'), |
104 |
syntax=udm_syntax.string, |
105 |
multivalue=True, |
106 |
options=[], |
107 |
dontsearch=True, |
108 |
required=False, |
109 |
may_change=True, |
110 |
identifies=False, |
111 |
), |
101 |
} |
112 |
} |
102 |
|
113 |
|
103 |
layout = [ |
114 |
layout = [ |
|
105 |
Group(_('General UMC operation set settings'), layout=[ |
116 |
Group(_('General UMC operation set settings'), layout=[ |
106 |
['name', 'description'], |
117 |
['name', 'description'], |
107 |
'operation', |
118 |
'operation', |
108 |
'flavor' |
119 |
'flavor', |
|
|
120 |
'hosts' |
109 |
]), |
121 |
]), |
110 |
]), |
122 |
]), |
111 |
] |
123 |
] |
Lines 130-135
def unmapUMC_CommandPattern(value):
|
Link Here
|
---|
|
130 |
mapping.register('description', 'description', None, udm_mapping.ListToString) |
142 |
mapping.register('description', 'description', None, udm_mapping.ListToString) |
131 |
mapping.register('operation', 'umcOperationSetCommand', mapUMC_CommandPattern, unmapUMC_CommandPattern) |
143 |
mapping.register('operation', 'umcOperationSetCommand', mapUMC_CommandPattern, unmapUMC_CommandPattern) |
132 |
mapping.register('flavor', 'umcOperationSetFlavor', None, udm_mapping.ListToString) |
144 |
mapping.register('flavor', 'umcOperationSetFlavor', None, udm_mapping.ListToString) |
|
|
145 |
mapping.register('hosts', 'umcOperationSetHost') |
133 |
|
146 |
|
134 |
|
147 |
|
135 |
class object(simpleLdap): |
148 |
class object(simpleLdap): |