glasswall.content_management.switches.gif
1from glasswall.content_management.switches.switch import Switch 2 3 4class metadata(Switch): 5 def __init__(self, value: str): 6 self.name = self.__class__.__name__ 7 self.restrict_values = ["allow", "disallow", "sanitise"] 8 self.value = value 9 super().__init__(name=self.name, value=self.value, restrict_values=self.restrict_values)
7class metadata(Switch): 8 def __init__(self, value: str): 9 self.name = self.__class__.__name__ 10 self.restrict_values = ["allow", "disallow", "sanitise"] 11 self.value = value 12 super().__init__(name=self.name, value=self.value, restrict_values=self.restrict_values)
A Content Management Policy switch which has a name and a value, and can have attributes.