def get_policy_published(self):
		domain = self.doc.findtext("policy_published/domain", default="NA")
		adkim = self.doc.findtext("policy_published/adkim", default="NA")
		aspf = self.doc.findtext("policy_published/aspf", default="NA")
		p = self.doc.findtext("policy_published/p", default="NA")
		pct = self.doc.findtext("policy_published/pct", default="NA")
		pct = int(pct)
		sql = """INSERT INTO policy_published(domain, adkim, aspf, p, pct) 
					VALUES("%s", "%s", "%s", "%s", %d)""" %(domain, adkim, aspf, p, pct)
		try:
			self.cursor.execute(sql)
			self.db.commit()
		except:
			self.db.rollback()

		self.policy_fk = self.cursor.lastrowid
Get the netparams (mode, link) of a network.
dataset/ETHPy150Open thinkingserious/sendgrid-python-dmarc-parser/dmarc_parser/parse_dmarc.py/parse_dmarc.get_policy_published--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/config/__init__.py/ConfigWriter._UnlockedGetGroupNetParams