Project

General

Profile

Evolution #1328

Pouvoir rendre des variables "non modifiables"

Added by Klaas TJEBBES over 12 years ago. Updated almost 11 years ago.

Status:
Fermé
Priority:
Bas
Assigned To:
Gwenael Remond
Category:
-
Start date:
01/04/2011
Due date:
% Done:

100%

Spent time:
Distribution:
EOLE 2.4

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

Revision bacf19b7 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Work on notification GUI & DB

Revision 885ce520 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Add missing files in previous commit

Revision 581ae9cd (diff)
Added by Walid Nouh over 13 years ago

see #1328 More work on GUI and notification creation (to be discussed)

Revision aff8c00e (diff)
Added by Walid Nouh over 13 years ago

see #1328 Work on notification engine

Revision 6f3ce09f (diff)
Added by Walid Nouh over 13 years ago

see #1328 add more events & allow plugin notifications

Revision dd90bb0f (diff)
Added by Walid Nouh over 13 years ago

see #1328 Use Dropdown::show to display list of templates

Revision 1dea755f (diff)
Added by Walid Nouh over 13 years ago

see #1328 Work on notifications

Revision 00e57681 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Implement algorithm to get notification & targets + send mails

Revision 85f7c8f6 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Fix class name for plugin's notificationtargets

Revision cade4245 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Log only changes for subject & content (need a generic solution into Log class)

Revision 8c01ff60 (diff)
Added by Walid Nouh over 13 years ago

see #1328 More work on notification templates for tickets

Revision 5c8bee00 (diff)
Added by Walid Nouh over 13 years ago

see #1328 More work on notification & templates

Revision 2ba702c8 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Work on reservation

Revision eb8a3ce9 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Work on DB replication notification

Revision 9e5e817f (diff)
Added by Walid Nouh over 13 years ago

see #1328 Add translation table + adapt interface
see #1964 Add request group target

Revision 9479c966 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Fix template edition + add template translation history

Revision 5e253d5b (diff)
Added by Walid Nouh over 13 years ago

see #1328 Fix update issue & set language field as var(5)

Revision c3ab138e (diff)
Added by Walid Nouh over 13 years ago

see #1328 Fix previous commit

Revision 70cd5cc9 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Several improvments

Revision fe7c4f5e (diff)
Added by Walid Nouh over 13 years ago

see #1328 Improvments

Revision 86265e9c (diff)
Added by Walid Nouh over 13 years ago

see #1328 Various corrections + manage FIRST|LAST in FOREACH statement

Revision 1e83616b (diff)
Added by Walid Nouh over 13 years ago

see #1328 Do not show notification link if mailing is disable

Revision d6ffcccc (diff)
Added by Walid Nouh over 13 years ago

see #1328 Split history functions + add log events to notification templates

Revision 98bb590f (diff)
Added by Walid Nouh over 13 years ago

see #1328 add message when email notification is disable

Revision 1b9ec62a (diff)
Added by Walid Nouh over 13 years ago

see #1328 Template processing optimizations

Revision f2248f1f (diff)
Added by Walid Nouh over 13 years ago

see #1328 Several corrections + clean

Revision f276c3ef (diff)
Added by Walid Nouh over 13 years ago

see #1328 Load plugin lang (to be tested...)

Revision e38c9f8c (diff)
Added by Walid Nouh over 13 years ago

see #1328 Corrections

Revision 2027f3b4 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Apply commit 10469 10470 10471 from 0.80-alpha to trunk

Revision fdfa3249 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Return url in tag ticket.url

Revision a0b7fc85 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Apply commit 10480 from alpha to trunk

Revision 9e7b3cc1 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Update DB for notification (to be continued)

Revision e24b8699 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Fix filter computation

Revision 13ef8279 (diff)
Added by Walid Nouh over 13 years ago

see #1328 More work on DB migration

Revision f6956685 (diff)
Added by Walid Nouh over 13 years ago

see #1328 More work on DB migration

Revision 595e7744 (diff)
Added by Walid Nouh over 13 years ago

see #1328 More work on DB migration

Revision 6ca09d09 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Fix issues with plugin's notifications + add history in notificationtarget

Revision bec81c98 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Work on contracts notifications + add notification on ticket deletion

Revision 62d541f9 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Add simple template for tickets

Revision 79d807f5 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Notifications on consumables & cartridges

Revision 4d90b444 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Notifications on Infocoms

Revision f41cb8e1 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Add is_active for notifications + new notifications : (update|delete)_task/followup

Revision 223757be (diff)
Added by Walid Nouh over 13 years ago

see #1328 Notifications on Software Licenses

Revision 70d0de08 (diff)
Added by Walid Nouh over 13 years ago

see #1328 Alert reservations done

Revision ce5716be (diff)
Added by Walid Nouh over 13 years ago

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
Exemples de mise en œuvre :
  • 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.

Also available in: Atom PDF