def _type(self, value): """Type function that fixes up <repository> macros.""" if self.__class__.repository is None: return value else: return self._original_type(Types.path( value.replace("<repository>", self.__class__.repository)))
def transform_value(self, value): return Types.path(value)