glasswall.content_management.switches.svg
1from glasswall.content_management.switches.switch import Switch 2 3 4class foreign_objects(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) 10 11 12class hyperlinks(Switch): 13 def __init__(self, value: str): 14 self.name = self.__class__.__name__ 15 self.restrict_values = ["allow", "disallow", "sanitise"] 16 self.value = value 17 super().__init__(name=self.name, value=self.value, restrict_values=self.restrict_values) 18 19 20class scripts(Switch): 21 def __init__(self, value: str): 22 self.name = self.__class__.__name__ 23 self.restrict_values = ["allow", "disallow", "sanitise"] 24 self.value = value 25 super().__init__(name=self.name, value=self.value, restrict_values=self.restrict_values)
7class foreign_objects(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.
Inherited Members
15class hyperlinks(Switch): 16 def __init__(self, value: str): 17 self.name = self.__class__.__name__ 18 self.restrict_values = ["allow", "disallow", "sanitise"] 19 self.value = value 20 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.
Inherited Members
23class scripts(Switch): 24 def __init__(self, value: str): 25 self.name = self.__class__.__name__ 26 self.restrict_values = ["allow", "disallow", "sanitise"] 27 self.value = value 28 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.