Project

General

Profile

Tâche #11366

Distribution EOLE - Scénario #11245: Assistance aux utilisateurs (17-19)

aléatoirement le backend ne renvoit rien pour les variables hidden

Added by Christophe Dezé over 6 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
04/21/2015
Due date:
% Done:

0%

Estimated time:
3.00 h
Spent time:
Remaining (hours):
0.0

Description

root@zephir:~# python /root/getvar2.4.py 1088 unactive_dansguardian_auth2
Traceback (most recent call last):
File "/root/getvar2.4.py", line 23, in <module>
print config[var]
KeyError: 'unactive_dansguardian_auth2'

#!/usr/bin/env python
# -*- coding: UTF-8 -*-

import sys,xmlrpclib
from zephir.utils.creolewrap import ZephirDict

if len(sys.argv) <= 2:
    print 'Usage : getvar.py <IdZ> <var>'
    sys.exit(1)

idz=sys.argv[1]
var=sys.argv[2]
login='admin-eole'
passwd=file('/root/admin-eole.pwd').readline().split('\n')[0]
adresse_zephir='localhost'

proxy = xmlrpclib.ServerProxy('http://%s:%s@%s:7081' % (login,passwd,adresse_zephir))
#code, data_ori = proxy.serveurs.get_dico(idz,'modif_config',True)
code, config = proxy.serveurs.get_config(idz)
#d = ZephirDict(mode='', version='creole3')
#d.init_from_zephir(data_ori)
print config[var]

Associated revisions

Revision 1b6a500f (diff)
Added by Bruno Boiget over 6 years ago

Correction sur les permissions des objets tiramisu

  • désactivation des erreurs sur hidden par défaut
  • ré-activation de celles-ci dans gen_config

ref #11366 @2h

History

#1 Updated by Emmanuel GARETTE over 6 years ago

  • Distribution changed from EOLE 2.5 to EOLE 2.3

#2 Updated by Bruno Boiget over 6 years ago

  • Description updated (diff)

#3 Updated by Christophe Dezé over 6 years ago

pour info cache et threads desactivés

#4 Updated by Bruno Boiget over 6 years ago

  • Estimated time set to 3.00 h
  • Distribution changed from EOLE 2.3 to Toutes

le résultat semble varier suivant les actions effectuées dans l'application zéphir (lancement de gen_config, ...)

Vérifier dans le wrapper Creole de Zéphir les endroits ou les 'settings' tiramisu sont modifiés

#5 Updated by Bruno Boiget over 6 years ago

  • Tracker changed from Anomalie to Tâche
  • Status changed from Nouveau to En cours
  • Assigned To set to Bruno Boiget
  • Target version set to Sprint_2015_17-19 - Équipe MENESR
  • Parent task set to #11247
  • Remaining (hours) set to 0.25

#6 Updated by Bruno Boiget over 6 years ago

  • Status changed from En cours to Résolu

#7 Updated by Christophe Dezé over 6 years ago

apt-eole install zephir-backend zephir-common zephir-creole3 zephir-dictionnaires zephir-doc zephir-web

===> OK

#8 Updated by Bruno Boiget over 6 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

#9 Updated by Bruno Boiget over 6 years ago

  • Parent task changed from #11247 to #11245

Also available in: Atom PDF