|
275 |
if not group or not value.lower() in ('true', 'yes', '1'): |
275 |
if not group or not value.lower() in ('true', 'yes', '1'): |
276 |
return |
276 |
return |
277 |
|
277 |
|
|
|
278 |
marktplatz_share_name = ucr.get('ucsschool/import/generate/share/marktplatz/name', 'Marktplatz').lower() |
278 |
for share in self._shares.values(): |
279 |
for share in self._shares.values(): |
279 |
if share.name in (group, 'marktplatz', 'homes'): |
280 |
if share.name.lower() in (group.lower(), marktplatz_share_name, 'homes'): |
280 |
continue |
281 |
continue |
281 |
|
282 |
|
282 |
share.invalid_users = '@' + group |
283 |
share.invalid_users = '@' + group |
|
286 |
if not value: |
287 |
if not value: |
287 |
return |
288 |
return |
288 |
|
289 |
|
289 |
hosts = value.split(' ') |
290 |
marktplatz_share_name = ucr.get('ucsschool/import/generate/share/marktplatz/name', 'Marktplatz').lower() |
290 |
for share in self._shares.values(): |
291 |
for share in self._shares.values(): |
291 |
if share.name in ('marktplatz', 'homes'): |
292 |
if share.name.lower() in (marktplatz_share_name, 'homes'): |
292 |
continue |
293 |
continue |
293 |
share.hosts_deny = shlex.split(value) |
294 |
share.hosts_deny = shlex.split(value) |
294 |
share.ucr = True |
295 |
share.ucr = True |
|
300 |
|
301 |
|
301 |
# set share options to -> shares |
302 |
# set share options to -> shares |
302 |
def _set_options(self, value, share, option): |
303 |
def _set_options(self, value, share, option): |
303 |
if match and share and options and value: |
304 |
if share and option and value and option not in self._shares[share]: |
304 |
if option not in self._shares[share]: |
305 |
self._shares[share][option] = set() |
305 |
self._shares[share][option] = set() |
|
|
306 |
|
306 |
|
307 |
self._shares[share].ucr = True |
307 |
self._shares[share].ucr = True |
308 |
self._shares[share][option].add(value) |
308 |
self._shares[share][option].add(value) |