Index: grit/format/policy_templates/writers/plist_writer.py |
=================================================================== |
--- grit/format/policy_templates/writers/plist_writer.py (revision 158) |
+++ grit/format/policy_templates/writers/plist_writer.py (working copy) |
@@ -127,13 +127,16 @@ |
self._array = self._AddKeyValuePair(dict, 'pfm_subkeys', 'array') |
- def Init(self): |
+ def CreatePlistDocument(self): |
dom_impl = minidom.getDOMImplementation('') |
doctype = dom_impl.createDocumentType( |
'plist', |
'-//Apple//DTD PLIST 1.0//EN', |
'http://www.apple.com/DTDs/PropertyList-1.0.dtd') |
- self._doc = dom_impl.createDocument(None, 'plist', doctype) |
+ return dom_impl.createDocument(None, 'plist', doctype) |
+ |
+ def Init(self): |
+ self._doc = self.CreatePlistDocument() |
self._plist = self._doc.documentElement |
def GetTemplateText(self): |