MCPcopy Create free account
hub / github.com/scanny/python-pptx / CT_Parent

Class CT_Parent

tests/oxml/test_xmlchemy.py:485–499  ·  view source on GitHub ↗

`` `` element, an invented element for use in testing.

Source from the content-addressed store, hash-verified

483
484
485class CT_Parent(BaseOxmlElement):
486 """
487 ``<p:parent>`` element, an invented element for use in testing.
488 """
489
490 eg_zooChoice = ZeroOrOneChoice(
491 (Choice("p:choice"), Choice("p:choice2")),
492 successors=("p:oomChild", "p:oooChild"),
493 )
494 oomChild = OneOrMore("p:oomChild", successors=("p:oooChild", "p:zomChild", "p:zooChild"))
495 oooChild = OneAndOnlyOne("p:oooChild")
496 zomChild = ZeroOrMore("p:zomChild", successors=("p:zooChild",))
497 zooChild = ZeroOrOne("p:zooChild", successors=())
498 optAttr = OptionalAttribute("p:optAttr", ST_IntegerType)
499 reqAttr = RequiredAttribute("reqAttr", ST_IntegerType)
500
501
502class CT_Choice(BaseOxmlElement):

Callers

nothing calls this directly

Calls 8

ZeroOrOneChoiceClass · 0.90
ChoiceClass · 0.90
OneOrMoreClass · 0.90
OneAndOnlyOneClass · 0.90
ZeroOrMoreClass · 0.90
ZeroOrOneClass · 0.90
OptionalAttributeClass · 0.90
RequiredAttributeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…