From 5afa88a7941d496733cfb0e44e0309a8c1f5160d Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Sat, 12 Nov 2005 18:45:16 +0000 Subject: explicitly call writeback 2005/11/12 12:30:53-06:00 anl.gov!desai switch to lxml (Logical change 1.357) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1485 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Statistics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/Server/Statistics.py b/src/lib/Server/Statistics.py index d623b1e89..5e3ef0fc8 100644 --- a/src/lib/Server/Statistics.py +++ b/src/lib/Server/Statistics.py @@ -1,7 +1,7 @@ '''This file manages the statistics collected by the BCFG2 Server''' __revision__ = '$Revision: $' -from elementtree.ElementTree import XML, SubElement, Element +from lxml.etree import XML, SubElement, Element from xml.parsers.expat import ExpatError from syslog import syslog, LOG_ERR from time import asctime, localtime, time @@ -101,3 +101,4 @@ class Statistics(object): # Set dirty self.dirty = 1 + self.WriteBack() -- cgit v1.2.3-1-g7c22