add permissive in config

This commit is contained in:
2013-03-14 11:31:44 +01:00
parent 783e982c9b
commit 15beeda0f0
2 changed files with 18 additions and 7 deletions

View File

@ -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')