Merge branch 'master' of git.tobast.fr:tobast/mpri-webdam
This commit is contained in:
commit
7c8ec7351c
1 changed files with 4 additions and 0 deletions
|
@ -136,6 +136,10 @@ class History(models.Model):
|
|||
if standalone:
|
||||
return xml_root
|
||||
|
||||
def to_xml_string(self):
|
||||
xml = self.to_xml()
|
||||
return ET.tostring(xml)
|
||||
|
||||
@staticmethod
|
||||
def from_xml(xml_root):
|
||||
''' Loads an history from an XML file '''
|
||||
|
|
Loading…
Reference in a new issue