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

Method with_nsdecls

tests/unitdata.py:56–66  ·  view source on GitHub ↗

Cause the element to contain namespace declarations. By default, the namespace prefixes defined in the Builder class are used. These can be overridden by providing exlicit prefixes, e.g. ``with_nsdecls('a', 'r')``.

(self, *nspfxs)

Source from the content-addressed store, hash-verified

54 return self
55
56 def with_nsdecls(self, *nspfxs):
57 """
58 Cause the element to contain namespace declarations. By default, the
59 namespace prefixes defined in the Builder class are used. These can
60 be overridden by providing exlicit prefixes, e.g.
61 ``with_nsdecls('a', 'r')``.
62 """
63 if not nspfxs:
64 nspfxs = self.__nspfxs__
65 self._nsdecls = " %s" % nsdecls(*nspfxs)
66 return self
67
68 def xml(self, indent=0):
69 """

Callers 15

factory_fixtureMethod · 0.80
factory_fixtureMethod · 0.80
orient_fixtureMethod · 0.80
orient_raise_fixtureMethod · 0.80
sz_fixtureMethod · 0.80
shape_elm_factoryMethod · 0.80
adjustmentsMethod · 0.80
_adj_actuals_casesMethod · 0.80

Calls 1

nsdeclsFunction · 0.90

Tested by 15

factory_fixtureMethod · 0.64
factory_fixtureMethod · 0.64
orient_fixtureMethod · 0.64
orient_raise_fixtureMethod · 0.64
sz_fixtureMethod · 0.64
shape_elm_factoryMethod · 0.64
adjustmentsMethod · 0.64
_adj_actuals_casesMethod · 0.64