RE : [Nagios-devel] Réf. : Nagios-devel digest, Vol 1 #833 - 11 msgs
Fran=?utf-8?B?w6c=?=ois Laupretre
francois.laupretre-prestataire at calyon.com
Fri Jun 10 14:05:53 CEST 2005
> Ah, that makes sense, in a way. I thought that "use" would
> be handled in
> the same way as the other properties at read time, and then
> the last value
> read would prevail, and then in a subsequent pass the "use"
> clauses would
> be expanded.
In the current code, it is done this way. Any 'use' directive overwrites the
previous one without being interpreted.
> if I understand well, "use" is handled specially at read
> time, right ?
No. Another reason why it cannot be handled at read time is that the current
syntax allows to "use" a template even if it is defined later in the same
file or in another.
One way to allow multiple template uses in an object could be to replace the
'template' field in xodtemplate objects by a template linked list and modify
the code in the xodtemplate_resolve_<object>() functions to apply missing
properties from this template list. But, before doing that, we should extend
the template syntax to include more template combination options.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20050610/f4d79487/attachment.html>
-------------- next part --------------
Ce message et ses pièces jointes (le "message") est destiné à l'usage
exclusif de son destinataire.
Si vous recevez ce message par erreur, merci d'en aviser immédiatement
l'expéditeur et de le détruire ensuite. Le présent message pouvant
être altéré à notre insu, CALYON Corporate and Investment Bank
ne peut pas être engagé par son contenu. Tous droits réservés.
This message and/or any attachments (the "message") is intended for
the sole use of its addressee.
If you are not the addressee, please immediately notify the sender and
then destroy the message. As this message and/or any attachments may
have been altered without our knowledge, its content is not legally
binding on CALYON Corporate and Investment Bank. All rights reserved.
More information about the Developers
mailing list