parameters: (self, pathOrFile)
docstring: Dump the contents of the database to an XML .plist file.
  
          The file can be passed as either a file object or a pathname.
          All data, including included databases, is dumped.
docstring_summary: Dump the contents of the database to an XML .plist file.
docstring_tokens: Dump the contents of the database to an XML . plist file .
function: def dump(self, pathOrFile):
          """Dump the contents of the database to an XML .plist file.
  
          The file can be passed as either a file object or a pathname.
          All data, including included databases, is dumped."""
  
          packages = []
          for pkg in self._packages:
              packages.append(pkg.dump())
          plistdata = {
              'Version': self._version,
              'Maintainer': self._maintainer,
              'Description': self._description,
              'Packages': packages
              }
          plist = plistlib.Plist(**plistdata)
          plist.write(pathOrFile)
function_tokens: def dump ( self , pathOrFile ) : packages = [ ] for pkg in self . _packages : packages . append ( pkg . dump ( ) ) plistdata = { 'Version' : self . _version , 'Maintainer' : self . _maintainer , 'Description' : self . _description , 'Packages' : packages } plist = plistlib . Plist ( * * plistdata ) plist . write ( pathOrFile )