J'ai cette erreur lorsque j'essaye de changer les membres d'un groupe d'hôte.
MOD_PYTHON ERROR
ProcessId: 29308
Interpreter: 'am.statseb.fr'
ServerName: 'am.statseb.fr'
DocumentRoot: '/web/sebastien/am/html'
URI: '/groupes.py'
Location: None
Directory: '/web/sebastien/am/html/'
Filename: '/web/sebastien/am/html/groupes.py'
PathInfo: ''
Phase: 'PythonHandler'
Handler: 'mod_python.publisher'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1229, in _process_target
result = _execute_target(config, req, object, arg)
File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1128, in _execute_target
result = object(arg)
File "/usr/lib/python2.7/dist-packages/mod_python/publisher.py", line 213, in handler
published = publish_object(req, object)
File "/usr/lib/python2.7/dist-packages/mod_python/publisher.py", line 425, in publish_object
return publish_object(req,util.apply_fs_data(object, req.form, req=req))
File "/usr/lib/python2.7/dist-packages/mod_python/util.py", line 554, in apply_fs_data
return object(**args)
File "/web/sebastien/am/html/groupes.py", line 580, in index
maj_consigne(str(host[0]),group, str(userid))
File "/web/sebastien/am/html/groupes.py", line 61, in maj_consigne
requete='INSERT INTO am_host_account (hostid, projetid, account_key, attached_via_acct_mgr, resource_share, action, no_rsc, action_planifiee, specific_cache_control, app_config) VALUES(%s,%s,"%s",%s,%s,"%s","%s","%s","%s","%s")'%(hostid, str(projet), dict_consigne[projet][0], '1', dict_consigne[projet][1], dict_consigne[projet][2], dict_consigne[projet][3],dict_consigne[projet][4],MySQLdb.escape_string(dict_consigne[projet][5]),MySQLdb.escape_string(dict_consigne[projet[0]][6]))
TypeError: 'long' object has no attribute '__getitem__'
MODULE CACHE DETAILS
Accessed: Fri Mar 12 10:43:21 2021
Generation: 1
_mp_9da76854606a71123ba34f0372cc3714 {
FileName: '/web/sebastien/am/html/groupes.py'
Instance: 1 [IMPORT]
Generation: 2
Modified: Wed Mar 3 20:12:55 2021
Imported: Fri Mar 12 10:43:21 2021
}