forked from orbit-oss/flask
Various typos.
This commit is contained in:
parent
b004324dbb
commit
16e4d5a655
6 changed files with 7 additions and 8 deletions
|
|
@ -241,5 +241,5 @@ static folder of the whole application as ``'static'``.
|
|||
If you want to refer to the templates you just have to prefix it with the
|
||||
name of the module. So for the admin it would be
|
||||
``render_template('admin/list_items.html')`` and so on. It is not
|
||||
possible to refer to templates without the prefixed modlue name. This is
|
||||
possible to refer to templates without the prefixed module name. This is
|
||||
explicit unlike URL rules.
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ from .globals import _request_ctx_stack, request
|
|||
from .session import Session, _NullSession
|
||||
from .module import _ModuleSetupState
|
||||
from .templating import _DispatchingJinjaLoader, \
|
||||
_default_template_ctx_processor
|
||||
_default_template_ctx_processor
|
||||
|
||||
# a lock used for logger initialization
|
||||
_logger_lock = Lock()
|
||||
|
|
@ -426,8 +426,7 @@ class Flask(_PackageBoundObject):
|
|||
if self.config['SERVER_NAME'] is not None:
|
||||
domain = '.' + self.config['SERVER_NAME']
|
||||
session.save_cookie(response, self.session_cookie_name,
|
||||
expires=expires, httponly=True,
|
||||
domain=domain)
|
||||
expires=expires, httponly=True, domain=domain)
|
||||
|
||||
def register_module(self, module, **options):
|
||||
"""Registers a module with this application. The keyword argument
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from logging import getLogger, StreamHandler, Formatter, Logger, DEBUG
|
||||
from logging import getLogger, StreamHandler, Formatter, Logger, DEBUG
|
||||
|
||||
|
||||
def create_logger(app):
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ from .helpers import _PackageBoundObject
|
|||
def _register_module(module, static_path):
|
||||
"""Internal helper function that returns a function for recording
|
||||
that registers the `send_static_file` function for the module on
|
||||
the application of necessary. It also registers the module on
|
||||
the application if necessary. It also registers the module on
|
||||
the application.
|
||||
"""
|
||||
def _register(state):
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class _NullSession(Session):
|
|||
def _fail(self, *args, **kwargs):
|
||||
raise RuntimeError('the session is unavailable because no secret '
|
||||
'key was set. Set the secret_key on the '
|
||||
'application to something unique and secret')
|
||||
'application to something unique and secret.')
|
||||
__setitem__ = __delitem__ = clear = pop = popitem = \
|
||||
update = setdefault = _fail
|
||||
del _fail
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class _DispatchingJinjaLoader(BaseLoader):
|
|||
return loader.get_source(environment, name)
|
||||
except TemplateNotFound:
|
||||
pass
|
||||
# raise the exception with the correct fileame here.
|
||||
# raise the exception with the correct filename here.
|
||||
# (the one that includes the prefix)
|
||||
raise TemplateNotFound(template)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue