Hermann Lauer a écrit : > On Fri, Feb 04, 2011 at 03:23:38PM +0100, DEGREMONT Aurelien wrote: > >> nap a �crit : >> >>> Hi all, >>> >>> Now the satellites daemon can have a local log. It's disabled by >>> default, and the configuration is in the etc/*d.ini of course. >>> >>> use_local_log=0 >>> local_log=%(workdir)s/pollerd.log >>> >> This is using the old-style substitution mechanism, which is error prone. >> >> String template substitution new style with $variable is really simpler >> for people and available since Python 2.4 >> http://docs.python.org/release/2.5.2/lib/node40.html >> > > what about: > <str>.format(*args, **kwargs) > > See http://docs.python.org/release/2.6.6/library/string.html#formatstrings > Format String Syntax for a description of the various formatting options that > can be specified in format strings. > > This method of string formatting is the new standard in Python 3.0, and > should be preferred to the % formatting described in String Formatting > Operations in new code. > > We used it for our perfdata template expansion and it looks very advanced to > me. > Really? This is Python 2.6+ only. This does not supports 2.4 and 2.5
Aurélien ------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb _______________________________________________ Shinken-devel mailing list Shinken-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shinken-devel