Init: mediaserver

This commit is contained in:
2023-02-08 12:13:28 +01:00
parent 848bc9739c
commit f7c23d4ba9
31914 changed files with 6175775 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
"""Rendering parameter handling."""
from .. import copying
__all__ = ['ParameterBase']
class ParameterBase(copying.CopyBase):
"""Rendering parameter."""
def _getattr_from_dict(self, attrname: str, *, default=None):
"""Return self.attrname if attrname is in the instance dictionary
(as oposed to on the type)."""
if attrname in self.__dict__:
return getattr(self, attrname)
return default