some optimisation
This commit is contained in:
@ -24,7 +24,7 @@ import re
|
||||
|
||||
from ..i18n import _
|
||||
from ..setting import groups, undefined # , log
|
||||
from .baseoption import BaseOption, SymLinkOption, allowed_character
|
||||
from .baseoption import BaseOption, SymLinkOption
|
||||
from . import MasterSlaves
|
||||
from ..error import ConfigError, ConflictError
|
||||
from ..storage import get_storages_option
|
||||
@ -32,7 +32,8 @@ from ..autolib import carry_out_calculation
|
||||
|
||||
|
||||
StorageOptionDescription = get_storages_option('optiondescription')
|
||||
name_regexp = re.compile(r'^{0}*$'.format(allowed_character))
|
||||
|
||||
name_regexp = re.compile(r'^[a-zA-Z\d\-_]*$')
|
||||
|
||||
|
||||
class OptionDescription(BaseOption, StorageOptionDescription):
|
||||
@ -81,7 +82,7 @@ class OptionDescription(BaseOption, StorageOptionDescription):
|
||||
def impl_getdoc(self):
|
||||
return self.impl_get_information('doc')
|
||||
|
||||
def impl_validate(self, *args):
|
||||
def impl_validate(self, *args, **kwargs):
|
||||
"""usefull for OptionDescription"""
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user