Project

General

Profile

Evolution #6158

nouvelle fonction calc_val_first_value

Added by Emmanuel GARETTE almost 10 years ago. Updated almost 10 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
09/23/2013
Due date:
09/27/2013
% Done:

100%

Spent time:
Distribution:
EOLE 2.4

Description

Il peut être intéressant d'avoir un calcul de la valeur d'une variable suivant la présence au moins une autre variable.

Par exemple :

        <fill name='calc_val_first_value' target='eolesso_adresse'>
            <param type='eole' optional='True' hidden='False'>web_url</param>
            <param type='eole' optional='True'>adresse_ip_eth0</param>
        </fill>

Si la variable web_url est définit elle est prioritaire, sinon c'est adresse_ip_eth0 qui est utilisée :

>>> from creole.loader import creole_loader
>>> 
>>> c=creole_loader(rw=True)
>>> c.creole.services.activer_sso = 'local'
>>> c.creole.eole_sso.eolesso_adresse
>>> c.creole.applications_web.web_url = 'super.man'
>>> c.creole.eole_sso.eolesso_adresse
'super.man'
>>> c.creole.services.activer_apache = 'non'
>>> c.creole.eole_sso.eolesso_adresse
u'192.168.230.198'

Related issues

Related to EoleSSO - Evolution #6153: revoir la variable adresse_sso Fermé 09/23/2013 09/27/2013

Associated revisions

Revision 731d2488 (diff)
Added by Emmanuel GARETTE almost 10 years ago

ajout de la fonction calc_val_first_value (fixes #6158)

History

#1 Updated by Emmanuel GARETTE almost 10 years ago

  • Assigned To set to Emmanuel GARETTE

#2 Updated by Emmanuel GARETTE almost 10 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#3 Updated by Emmanuel GARETTE almost 10 years ago

  • Start date set to 09/23/2013

#4 Updated by Joël Cuissinat almost 10 years ago

  • Due date set to 09/27/2013
  • Status changed from Résolu to Fermé

OK

Also available in: Atom PDF