Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def dynamic_attributes(self):
attributes = []
py_attributes = utils.get_attributes_from_namespace(
self.element, config.PY_NS)
meta_attributes = utils.get_attributes_from_namespace(
self.element, config.META_NS)
i18n_attributes = utils.get_attributes_from_namespace(
self.element, config.I18N_NS)
internal = tuple(itertools.chain(
py_attributes, meta_attributes, i18n_attributes))
if self._interpolation_enabled:
attributes.extend(self.interpolated_attributes(internal))
if self.element.meta_attributes is not None:
attributes.extend(self.element.meta_attributes)
if len(attributes) > 0:
return attributes
def dynamic_attributes(self):
attributes = []
tal_attributes = utils.get_attributes_from_namespace(
self.element, config.TAL_NS)
metal_attributes = utils.get_attributes_from_namespace(
self.element, config.METAL_NS)
meta_attributes = utils.get_attributes_from_namespace(
self.element, config.META_NS)
i18n_attributes = utils.get_attributes_from_namespace(
self.element, config.I18N_NS)
internal = tuple(itertools.chain(
tal_attributes, metal_attributes, meta_attributes, i18n_attributes))
if self._interpolation_enabled:
attributes.extend(self.interpolated_attributes(internal))
if self.element.tal_attributes is not None:
attributes.extend(self.element.tal_attributes)
def dynamic_attributes(self):
attributes = []
py_attributes = utils.get_attributes_from_namespace(
self.element, config.PY_NS)
meta_attributes = utils.get_attributes_from_namespace(
self.element, config.META_NS)
i18n_attributes = utils.get_attributes_from_namespace(
self.element, config.I18N_NS)
internal = tuple(itertools.chain(
py_attributes, meta_attributes, i18n_attributes))
if self._interpolation_enabled:
attributes.extend(self.interpolated_attributes(internal))
if self.element.meta_attributes is not None:
attributes.extend(self.element.meta_attributes)
if len(attributes) > 0:
def dynamic_attributes(self):
attributes = []
tal_attributes = utils.get_attributes_from_namespace(
self.element, config.TAL_NS)
metal_attributes = utils.get_attributes_from_namespace(
self.element, config.METAL_NS)
meta_attributes = utils.get_attributes_from_namespace(
self.element, config.META_NS)
i18n_attributes = utils.get_attributes_from_namespace(
self.element, config.I18N_NS)
internal = tuple(itertools.chain(
tal_attributes, metal_attributes, meta_attributes, i18n_attributes))
if self._interpolation_enabled:
attributes.extend(self.interpolated_attributes(internal))
if self.element.tal_attributes is not None:
attributes.extend(self.element.tal_attributes)
if self.element.meta_attributes is not None:
def dynamic_attributes(self):
attributes = []
tal_attributes = utils.get_attributes_from_namespace(
self.element, config.TAL_NS)
metal_attributes = utils.get_attributes_from_namespace(
self.element, config.METAL_NS)
meta_attributes = utils.get_attributes_from_namespace(
self.element, config.META_NS)
i18n_attributes = utils.get_attributes_from_namespace(
self.element, config.I18N_NS)
internal = tuple(itertools.chain(
tal_attributes, metal_attributes, meta_attributes, i18n_attributes))
if self._interpolation_enabled:
attributes.extend(self.interpolated_attributes(internal))
if self.element.tal_attributes is not None:
attributes.extend(self.element.tal_attributes)
if self.element.meta_attributes is not None:
attributes.extend(self.element.meta_attributes)
if len(attributes) > 0:
return attributes
def dynamic_attributes(self):
attributes = []
tal_attributes = utils.get_attributes_from_namespace(
self.element, config.TAL_NS)
metal_attributes = utils.get_attributes_from_namespace(
self.element, config.METAL_NS)
meta_attributes = utils.get_attributes_from_namespace(
self.element, config.META_NS)
i18n_attributes = utils.get_attributes_from_namespace(
self.element, config.I18N_NS)
internal = tuple(itertools.chain(
tal_attributes, metal_attributes, meta_attributes, i18n_attributes))
if self._interpolation_enabled:
attributes.extend(self.interpolated_attributes(internal))
if self.element.tal_attributes is not None:
attributes.extend(self.element.tal_attributes)
if self.element.meta_attributes is not None:
attributes.extend(self.element.meta_attributes)
def dynamic_attributes(self):
attributes = []
py_attributes = utils.get_attributes_from_namespace(
self.element, config.PY_NS)
meta_attributes = utils.get_attributes_from_namespace(
self.element, config.META_NS)
i18n_attributes = utils.get_attributes_from_namespace(
self.element, config.I18N_NS)
internal = tuple(itertools.chain(
py_attributes, meta_attributes, i18n_attributes))
if self._interpolation_enabled:
attributes.extend(self.interpolated_attributes(internal))
if self.element.meta_attributes is not None:
attributes.extend(self.element.meta_attributes)
if len(attributes) > 0:
return attributes