Autodoc interfaces. Spelling.

This commit is contained in:
Jakub Warmuz
2015-01-31 00:28:09 +00:00
parent e56737de0b
commit 1725829477
3 changed files with 21 additions and 8 deletions
+1
View File
@@ -34,6 +34,7 @@ extensions = [
'sphinx.ext.todo', 'sphinx.ext.todo',
'sphinx.ext.coverage', 'sphinx.ext.coverage',
'sphinx.ext.viewcode', 'sphinx.ext.viewcode',
'repoze.sphinx.autointerface',
] ]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
+19 -8
View File
@@ -11,6 +11,7 @@ class IAuthenticator(zope.interface.Interface):
ability to perform challenges and attain a certificate. ability to perform challenges and attain a certificate.
""" """
def get_chall_pref(domain): def get_chall_pref(domain):
"""Return list of challenge preferences. """Return list of challenge preferences.
@@ -22,6 +23,7 @@ class IAuthenticator(zope.interface.Interface):
:rtype: list :rtype: list
""" """
def perform(chall_list): def perform(chall_list):
"""Perform the given challenge. """Perform the given challenge.
@@ -35,6 +37,7 @@ class IAuthenticator(zope.interface.Interface):
:rtype: `list` of dicts :rtype: `list` of dicts
""" """
def cleanup(chall_list): def cleanup(chall_list):
"""Revert changes and shutdown after challenges complete.""" """Revert changes and shutdown after challenges complete."""
@@ -58,6 +61,7 @@ class IInstaller(zope.interface.Interface):
Represents any server that an X509 certificate can be placed. Represents any server that an X509 certificate can be placed.
""" """
def get_all_names(): def get_all_names():
"""Returns all names that may be authenticated.""" """Returns all names that may be authenticated."""
@@ -69,8 +73,9 @@ class IInstaller(zope.interface.Interface):
:param str key: private key filename :param str key: private key filename
""" """
def enhance(domain, enhancment, options=None):
"""Peform a configuration enhancment. def enhance(domain, enhancement, options=None):
"""Peform a configuration enhancement.
:param str domain: domain for which to provide enhancement :param str domain: domain for which to provide enhancement
:param str enhancement: An enhancement as defined in CONFIG.ENHANCEMENTS :param str enhancement: An enhancement as defined in CONFIG.ENHANCEMENTS
@@ -80,14 +85,16 @@ class IInstaller(zope.interface.Interface):
for each enhancement. for each enhancement.
""" """
def supported_enhancements():
"""Returns a list of supported enhancments.
:returns: supported enhancments which should be a subset of the def supported_enhancements():
enhancments in :class:`letsencrypt.client.CONFIG.ENHANCEMENTS` """Returns a list of supported enhancements.
:rtype: `list` of `str`
:returns: supported enhancements which should be a subset of the
enhancements in :class:`letsencrypt.client.CONFIG.ENHANCEMENTS`
:rtype: `list` of `str`
""" """
def get_all_certs_keys(): def get_all_certs_keys():
"""Retrieve all certs and keys set in configuration. """Retrieve all certs and keys set in configuration.
@@ -98,6 +105,7 @@ class IInstaller(zope.interface.Interface):
:rtype: list :rtype: list
""" """
def save(title=None, temporary=False): def save(title=None, temporary=False):
"""Saves all changes to the configuration files. """Saves all changes to the configuration files.
@@ -113,6 +121,7 @@ class IInstaller(zope.interface.Interface):
be quickly reversed in the future (challenges) be quickly reversed in the future (challenges)
""" """
def rollback_checkpoints(rollback=1): def rollback_checkpoints(rollback=1):
"""Revert `rollback` number of configuration checkpoints.""" """Revert `rollback` number of configuration checkpoints."""
@@ -135,6 +144,7 @@ class IDisplay(zope.interface.Interface):
:param str message: Message to display :param str message: Message to display
""" """
def generic_menu(message, choices, input_text=""): def generic_menu(message, choices, input_text=""):
"""Displays a generic menu. """Displays a generic menu.
@@ -143,6 +153,7 @@ class IDisplay(zope.interface.Interface):
:param str input_text: instructions on how to make a selection :param str input_text: instructions on how to make a selection
""" """
def generic_input(message): def generic_input(message):
"""Accept input from the user.""" """Accept input from the user."""
@@ -168,7 +179,7 @@ class IDisplay(zope.interface.Interface):
"""Ask the user whether they would like to redirect to HTTPS.""" """Ask the user whether they would like to redirect to HTTPS."""
class IValidator(object): class IValidator(zope.interface.Interface):
"""Configuration validator.""" """Configuration validator."""
def redirect(name): def redirect(name):
+1
View File
@@ -37,6 +37,7 @@ install_requires = [
] ]
docs_extras = [ docs_extras = [
'repoze.sphinx.autointerface',
'Sphinx', 'Sphinx',
] ]