source: lliurex-moodle/trunk/fuentes/lliurex-moodle.install-files/usr/share/n4d/hooks/gesitamanager/gesitaimport.py @ 283

Last change on this file since 283 was 283, checked in by mabarracus, 5 years ago

Copy trusty code to xenial

File size: 495 bytes
Line 
1join_group=["join_group"]
2add_group=["add_group"]
3drop_group=["drop_group"]
4temp_file = open('/tmp/gesita_import','a')
5if NEVERLAND_VAR in join_group:
6    # join_group
7    temp_file.write("join;"+ARGV['group']['cn']+";"+ARGV['user']['uid']+"\n")
8elif NEVERLAND_VAR in add_group:
9    # join_group
10    temp_file.write("add;"+ARGV['group']['cn']+"\n")
11elif NEVERLAND_VAR in drop_group:
12    # join_group
13    temp_file.write("drop;"+ARGV['group']['cn']+";"+ARGV['user']['uid']+"\n")
14temp_file.close()
Note: See TracBrowser for help on using the repository browser.