add permissive in config
This commit is contained in:
@ -137,6 +137,10 @@ class Setting():
|
||||
"has properties means the Config's properties attribute is not empty"
|
||||
return bool(len(self.properties))
|
||||
|
||||
|
||||
def get_properties(self):
|
||||
return self.properties
|
||||
|
||||
def has_property(self, propname):
|
||||
"""has property propname in the Config's properties attribute
|
||||
:param property: string wich is the name of the property"""
|
||||
@ -152,6 +156,9 @@ class Setting():
|
||||
if self.has_property(propname):
|
||||
self.properties.remove(propname)
|
||||
#____________________________________________________________
|
||||
def get_permissive(self):
|
||||
return self.permissive
|
||||
|
||||
def set_permissive(self, permissive):
|
||||
if not isinstance(permissive, list):
|
||||
raise TypeError('permissive must be a list')
|
||||
|
Reference in New Issue
Block a user