Typo and spelling fixes

Fixes various spelling issues and typos.
This commit is contained in:
bwgan committed 2016-01-28 18:59:38 +00:00
1 parent dedadbc9ac
commit f8c0df4e78
19 files changed
+50 -50

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ class Daemon:
def __init__(self, pidfile): self.pidfile = pidfile
def daemonize(self):
"""Deamonize class. UNIX double fork mechanism."""
"""Daemonize class. UNIX double fork mechanism."""
try:
pid = os.fork()
+2 -2
View File
@@ -156,11 +156,11 @@ class StorageInterface(object):
* ``model``: adds a link to a model from which the file was created/sliced, expected additional data is the ``name``
and optionally the ``hash`` of the file to link to. If the link can be resolved against another file on the
current ``path``, not only will it be added to the links of ``name`` but a reverse link of type ``machinecode``
refering to ``name`` and its hash will also be added to the linked ``model`` file
referring to ``name`` and its hash will also be added to the linked ``model`` file
* ``machinecode``: adds a link to a file containing machine code created from the current file (model), expected
additional data is the ``name`` and optionally the ``hash`` of the file to link to. If the link can be resolved
against another file on the current ``path``, not only will it be added to the links of ``name`` but a reverse
link of type ``model`` refering to ``name`` and its hash will also be added to the linked ``model`` file.
link of type ``model`` referring to ``name`` and its hash will also be added to the linked ``model`` file.
* ``web``: adds a location on the web associated with this file (e.g. a website where to download a model),
expected additional data is a ``href`` attribute holding the website's URL and optionally a ``retrieved``
attribute describing when the content was retrieved
+1 -1
View File
@@ -1045,7 +1045,7 @@ class PluginManager(object):
def get_filtered_implementations(self, f, *types):
"""
Get all mixin implementation that implementat *all* of the provided ``types`` and match the provided filter `f`.
Get all mixin implementations that implement *all* of the provided ``types`` and match the provided filter `f`.
Arguments:
f (callable): A filter function returning True for implementations to return and False for those to exclude.
+7 -7
View File
@@ -143,7 +143,7 @@ class ShutdownPlugin(OctoPrintPlugin):
class AssetPlugin(OctoPrintPlugin, RestartNeedingPlugin):
"""
The ``AssetPlugin`` mixin allows plugins to define additional static assets such as Javascript or CSS files to
The ``AssetPlugin`` mixin allows plugins to define additional static assets such as JavaScript or CSS files to
be automatically embedded into the pages delivered by the server to be used within the client sided part of
the plugin.
@@ -167,7 +167,7 @@ class AssetPlugin(OctoPrintPlugin, RestartNeedingPlugin):
imported at the appropriate places to be available:
js
Javascript files, such as additional view models
JavaScript files, such as additional view models
css
CSS files with additional styles, will be embedded into delivered pages when not running in LESS mode.
less
@@ -251,7 +251,7 @@ class TemplatePlugin(OctoPrintPlugin, ReloadNeedingPlugin):
Generic
Plugins may also inject arbitrary templates into the page of the web interface itself, e.g. in order to
add overlays or dialogs to be called from within the plugin's javascript code.
add overlays or dialogs to be called from within the plugin's JavaScript code.
.. figure:: ../images/template-plugin-types-main.png
:align: center
@@ -416,8 +416,8 @@ class TemplatePlugin(OctoPrintPlugin, ReloadNeedingPlugin):
]
This will only include the tab defined in ``myplugin_othertab.jinja2`` though, ``myplugin_tab.jinja2`` will
not be included automatically since the presence of a defintion for the ``tab`` type overrides the automatic
injection of the default template. You'll have to include it explicitely:
not be included automatically since the presence of a definition for the ``tab`` type overrides the automatic
injection of the default template. You'll have to include it explicitly:
.. code-block:: python
@@ -1112,7 +1112,7 @@ class SlicerPlugin(OctoPrintPlugin):
path (str): The absolute path to which to save the profile.
profile (SlicingProfile): The profile to save.
allow_overwrite (boolean): Whether to allow to overwrite an existing profile at the indicated path (True,
default) or not (False). If a profile already exists on teh path and this is False an
default) or not (False). If a profile already exists on the path and this is False an
:class:`IOError` should be raised.
overrides (dict): Profile overrides to apply to the ``profile`` before saving it
"""
@@ -1158,7 +1158,7 @@ class SlicerPlugin(OctoPrintPlugin):
_analysis
Analysis result of the generated machine code as returned by the slicer itself. This should match the
data structure described for the analysis queue of the matching maching code format, e.g.
data structure described for the analysis queue of the matching machine code format, e.g.
:class:`~octoprint.filemanager.analysis.GcodeAnalysisQueue` for GCODE files.
For jobs that did not finish successfully (but not due to being cancelled!), ``result`` should be a :class:`str`
@@ -231,7 +231,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
elif path is not None:
pip_args = ["install", sarge.shell_quote(path)]
else:
raise ValueError("Either url or path must be provided")
raise ValueError("Either URL or path must be provided")
if dependency_links or self._settings.get_boolean(["dependency_links"]):
pip_args.append("--process-dependency-links")
@@ -244,7 +244,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
returncode, stdout, stderr = self._call_pip(pip_args)
except:
self._logger.exception("Could not install plugin from %s" % url)
return make_response("Could not install plugin from url, see the log for more details", 500)
return make_response("Could not install plugin from URL, see the log for more details", 500)
else:
if force:
pip_args += ["--ignore-installed", "--force-reinstall", "--no-deps"]
@@ -252,7 +252,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
returncode, stdout, stderr = self._call_pip(pip_args)
except:
self._logger.exception("Could not install plugin from %s" % url)
return make_response("Could not install plugin from url, see the log for more details", 500)
return make_response("Could not install plugin from URL, see the log for more details", 500)
try:
result_line = filter(lambda x: x.startswith(success_string) or x.startswith(failure_string), stdout)[-1]
+6 -6
View File
@@ -3,8 +3,8 @@
This module defines the interface for communicating with a connected printer.
The communication is in fact divided in two components, the :class:`PrinterInterface` and a deeper lying
communcation layer. However, plugins should only ever need to use the :class:`PrinterInterface` as the
abstracted version of the actual printer communiciation.
communication layer. However, plugins should only ever need to use the :class:`PrinterInterface` as the
abstracted version of the actual printer communication.
.. autofunction:: get_connection_options
@@ -28,7 +28,7 @@ from octoprint.settings import settings
def get_connection_options():
"""
Retrieves the available ports, baudrates, prefered port and baudrate for connecting to the printer.
Retrieves the available ports, baudrates, preferred port and baudrate for connecting to the printer.
Returned ``dict`` has the following structure::
@@ -99,7 +99,7 @@ class PrinterInterface(object):
def fake_ack(self):
"""
Fakes an acknowledgement for the communication layer. If the communication between OctoPrint and the printer
Fakes an acknowledgment for the communication layer. If the communication between OctoPrint and the printer
gets stuck due to lost "ok" responses from the server due to communication issues, this can be used to get
things going again.
"""
@@ -155,7 +155,7 @@ class PrinterInterface(object):
def extrude(self, amount):
"""
Extrude ``amount`` milimeters of material from the tool.
Extrude ``amount`` millimeters of material from the tool.
Arguments:
amount (int, float): The amount of material to extrude in mm
@@ -429,7 +429,7 @@ class PrinterCallback(object):
"""
Called when the internal state of the :class:`PrinterInterface` changes, due to changes in the printer state,
temperatures, log lines, job progress etc. Updates via this method are guaranteed to be throttled to a maximum
of 2 calles per second.
of 2 callees per second.
``data`` is a ``dict`` of the following structure::
+1 -1
View File
@@ -540,7 +540,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
def refresh_sd_files(self, blocking=False):
"""
Refreshs the list of file stored on the SD card attached to printer (if available and printer communication
Refreshes the list of file stored on the SD card attached to printer (if available and printer communication
available). Optional blocking parameter allows making the method block (max 10s) until the file list has been
received (and can be accessed via self._comm.getSdFiles()). Defaults to an asynchronous operation.
"""
+3 -3
View File
@@ -727,7 +727,7 @@ class CustomHTTP1Connection(tornado.http1connection.HTTP1Connection):
length if available, otherwise returns ``default_max_body_size``.
:param method: method of the request to match against
:param path: path od the request to match against
:param path: path of the request to match against
:return: determine maximum content length to apply to this request, max return 0 for unlimited allowed content
length
"""
@@ -763,7 +763,7 @@ class LargeResponseHandler(tornado.web.StaticFileHandler):
Arguments:
path (str): The system path from which to serve files (this will be forwarded to the ``initialize`` method of
:class:``~tornado.web.StaticFileHandler``)
default_filename (str): The default filename to serve if none is explicitely specified and the request references
default_filename (str): The default filename to serve if none is explicitly specified and the request references
a subdirectory of the served path (this will be forwarded to the ``initialize`` method of
:class:``~tornado.web.StaticFileHandler`` as the ``default_filename`` keyword parameter). Defaults to ``None``.
as_attachment (bool): Whether to serve requested files with ``Content-Disposition: attachment`` header (``True``)
@@ -846,7 +846,7 @@ class UrlProxyHandler(tornado.web.RequestHandler):
* ``Date``, ``Cache-Control``, ``Expires``, ``ETag``, ``Server``, ``Content-Type`` and ``Location`` will be copied over.
* If ``as_attachment`` is set to True, ``Content-Disposition`` will be set to ``attachment``. If ``basename`` is
set including the attachement's ``filename`` attribute will be set to the base name followed by the extension
set including the attachment's ``filename`` attribute will be set to the base name followed by the extension
guessed based on the MIME type from the ``Content-Type`` header of the response. If no extension can be guessed
no ``filename`` attribute will be set.
+1 -1
View File
@@ -46,7 +46,7 @@ def settings(init=False, basedir=None, configfile=None):
(False, default). If this is set to True and the plugin manager has already been initialized, a :class:`ValueError`
will be raised. The same will happen if the plugin manager has not yet been initialized and this is set to
False.
basedir (str): Path of the base directoy for all of OctoPrint's settings, log files, uploads etc. If not set
basedir (str): Path of the base directory for all of OctoPrint's settings, log files, uploads etc. If not set
the default will be used: ``~/.octoprint`` on Linux, ``%APPDATA%/OctoPrint`` on Windows and
``~/Library/Application Support/OctoPrint`` on MacOS.
configfile (str): Path of the configuration file (``config.yaml``) to work on. If not set the default will