def get_pmids(self, entry):
pmids = []<EOL>for citation in entry.iterfind("<STR_LIT>"):<EOL><INDENT>for pubmed_ref in citation.iterfind('<STR_LIT>'):<EOL><INDENT>pmid_number = pubmed_ref.get('<STR_LIT:id>')<EOL>if pmid_number in self.pmids:<EOL><INDENT>pmid_sqlalchemy_obj = self.session.query(models.Pmid).filter(models.Pmid.pmid == pmid_number).one()<EOL>pmids.append(pmid_sqlalchemy_obj)<EOL><DEDENT>else:<EOL><INDENT>pmid_dict = citation.attrib<EOL>if not re.search('<STR_LIT>', pmid_dict['<STR_LIT>']):<EOL><INDENT>pmid_dict['<STR_LIT>'] = -<NUM_LIT:1><EOL><DEDENT>del pmid_dict['<STR_LIT:type>'] <EOL>pmid_dict.update(pmid=pmid_number)<EOL>title_tag = citation.find('<STR_LIT>')<EOL>if title_tag is not None:<EOL><INDENT>pmid_dict.update(title=title_tag.text)<EOL><DEDENT>pmid_sqlalchemy_obj = models.Pmid(**pmid_dict)<EOL>self.session.add(pmid_sqlalchemy_obj)<EOL>self.session.flush()<EOL>pmids.append(pmid_sqlalchemy_obj)<EOL>self.pmids |= set([pmid_number, ]) <EOL><DEDENT><DEDENT><DEDENT>return pmids<EOL>
get `models.Pmid` objects from XML node entry

:param entry: XML node entry
:return: list of :class:`pyuniprot.manager.models.Pmid` objects