ext: Update and fix extensiondev docs with respect to config
This commit is contained in:
parent
ad25a60ba5
commit
0ede12f050
@ -230,12 +230,12 @@ and ``password``.
|
|||||||
version = __version__
|
version = __version__
|
||||||
|
|
||||||
def get_default_config(self):
|
def get_default_config(self):
|
||||||
return default_config
|
return bytes(default_config)
|
||||||
|
|
||||||
def get_config_schema(self):
|
def get_config_schema(self):
|
||||||
schema = super(Extension, self).get_config_schema()
|
schema = super(Extension, self).get_config_schema()
|
||||||
schema['username'] = config.String(required=True)
|
schema['username'] = config.String()
|
||||||
schema['password'] = config.String(required=True, secret=True)
|
schema['password'] = config.Secret()
|
||||||
return schema
|
return schema
|
||||||
|
|
||||||
def validate_environment(self):
|
def validate_environment(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user