Evolution #1328
Pouvoir rendre des variables "non modifiables"
Description
Une fois qu'elles ont été renseignées et le serveur instancié avec, certaines variables creole ne devraient plus pouvoir être modifiées. Par exemple : Nom de domaine Samba sur Scribe.
Associated revisions
see #1328 Work on notification GUI & DB
see #1328 Add missing files in previous commit
see #1328 More work on GUI and notification creation (to be discussed)
see #1328 Work on notification engine
see #1328 add more events & allow plugin notifications
see #1328 Use Dropdown::show to display list of templates
see #1328 Work on notifications
see #1328 Implement algorithm to get notification & targets + send mails
see #1328 Fix class name for plugin's notificationtargets
see #1328 Log only changes for subject & content (need a generic solution into Log class)
see #1328 More work on notification templates for tickets
see #1328 More work on notification & templates
see #1328 Work on reservation
see #1328 Work on DB replication notification
see #1328 Fix template edition + add template translation history
see #1328 Fix update issue & set language field as var(5)
see #1328 Fix previous commit
see #1328 Several improvments
see #1328 Improvments
see #1328 Various corrections + manage FIRST|LAST in FOREACH statement
see #1328 Do not show notification link if mailing is disable
see #1328 Split history functions + add log events to notification templates
see #1328 add message when email notification is disable
see #1328 Template processing optimizations
see #1328 Several corrections + clean
see #1328 Load plugin lang (to be tested...)
see #1328 Corrections
see #1328 Apply commit 10469 10470 10471 from 0.80-alpha to trunk
see #1328 Return url in tag ticket.url
see #1328 Apply commit 10480 from alpha to trunk
see #1328 Update DB for notification (to be continued)
see #1328 Fix filter computation
see #1328 More work on DB migration
see #1328 More work on DB migration
see #1328 More work on DB migration
see #1328 Fix issues with plugin's notifications + add history in notificationtarget
see #1328 Work on contracts notifications + add notification on ticket deletion
see #1328 Add simple template for tickets
see #1328 Notifications on consumables & cartridges
see #1328 Notifications on Infocoms
see #1328 Add is_active for notifications + new notifications : (update|delete)_task/followup
see #1328 Notifications on Software Licenses
see #1328 Alert reservations done
see #1328 Add alert for tickets not closed after x days
History
#1 Updated by Emmanuel GARETTE over 12 years ago
- Status changed from Nouveau to En attente d'informations
#2 Updated by Gwenael Remond over 11 years ago
- Status changed from En attente d'informations to Accepté
- Assigned To set to Gwenael Remond
- Priority changed from Normal to Bas
- Target version changed from 76 to Eole 2.4-dev-1
- Distribution set to EOLE 2.4
#3 Updated by Emmanuel GARETTE almost 11 years ago
La fonctionnalité est là. Il faut mettre la variable en "auto_freeze".
#4 Updated by Joël Cuissinat almost 11 years ago
- Status changed from Accepté to Fermé
- % Done changed from 0 to 100
- 00_common.xml
<variable name='numero_etab' type='string' description="Identifiant de l'établissement (exemple UAI)" auto_freeze='True'/>
- 01_network.xml
<condition name='freeze_if_not_in' source='eth0_method'> <param>statique</param> <target type='variable'>adresse_ip_eth0</target> <target type='variable'>adresse_netmask_eth0</target> <target type='variable'>adresse_network_eth0</target> <target type='variable'>adresse_broadcast_eth0</target> <target type='variable'>adresse_ip_gw</target> </condition>
#5 Updated by Emmanuel GARETTE almost 11 years ago
Ce sont deux exemples totalement différents.
Le premier (00_common.xml) permet de freezer une variable s'il y a déjà un valeur dans le config.eol.
Le deuxième (01_network.xml) permet de freezer une variable si les conditions sont réunis. Une variable tiramisu avec un callback, si elle est non freezé, correspond à un fill (au sens tiramisu ... tant qu'elle n'est pas modifié elle est calculée, si elle est modifiée elle n'est plus calculé). Une variable tiramisu avec un callback + freeze correspond à une auto (toujours recalculée, ne prend pas en compte la valeur enregistrée dans config.eol).
La variable n'est pas freezé si eth0_method est statique, cela permet à l'utilisateur de pouvoir changer la valeur. Sinon elle passe en auto.
Les variables freezées avec callback ne sont pas affichée dans gen_config.