def base_create_dep_objs(cls): """ Create all objects that FileKeyValue need. """ cite = Citations() TestCitations.base_create_dep_objs() cite.from_hash(SAMPLE_CITATION_HASH) cite.save(force_insert=True)
def base_create_dep_objs(cls): """ Create all objects that Files depend on. """ cite1 = Citations() TestCitations.base_create_dep_objs() cite1.from_hash(SAMPLE_CITATION_HASH) cite1.save(force_insert=True) contrib = Contributors() TestContributors.base_create_dep_objs() contrib.from_hash(SAMPLE_CONTRIBUTOR_HASH) contrib.save(force_insert=True)
def base_create_dep_objs(cls): """ Create all objects that FileKeyValue need. """ prop1 = Proposals() TestProposals.base_create_dep_objs() prop1.from_hash(SAMPLE_PROPOSAL_HASH) prop1.save(force_insert=True) cite = Citations() TestCitations.base_create_dep_objs() cite.from_hash(SAMPLE_CITATION_HASH) cite.save(force_insert=True)
def dependent_cls(cls): """ Return dependent classes for the CitationContributor object """ ret = [CitationContributor] ret += TestContributors.dependent_cls() ret += TestCitations.dependent_cls() return ret
def dependent_cls(cls): """ Return dependent classes for the CitationProposal object """ ret = [CitationProposal] ret += TestCitations.dependent_cls() ret += TestProposals.dependent_cls() return ret
def dependent_cls(cls): """ Return dependent classes for the Keywords object """ return TestCitations.dependent_cls() + [Keywords]