# This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from config import * from moodle import MDL mdl = MDL() # xmlrpc Connection print mdl.conn_xmlrpc(server) """ Update user """ users = [{ 'id': 19, # required #'username': '******', # username must be unique #'password': '******', 'firstname': 'Joan Pere', # Value to modify #'lastname': 'Cognoms 3', #'email': '*****@*****.**', }] print mdl.update_users(server, users)