Skip to content
Myr

Various typos.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by florentx · committed by Armin Ronacher · parent b004324 · Browse files · 6 files+7 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+7 added−8 removed

  • other:+7 added−8 removed

6 files+7 added−8 removed

modified:docs/patterns/packages.rst+1 added-1 removed
239 unmodified lines
240241If you want to refer to the templates you just have to prefix it with the242name of the module. So for the admin it would be243``render_template('admin/list_items.html')`` and so on. It is not244possible to refer to templates without the prefixed modlue name. This is244possible to refer to templates without the prefixed module name. This is245explicit unlike URL rules.
modified:flask/app.py+2 added-3 removed
29 unmodified lines
30from .globals import _request_ctx_stack, request31from .session import Session, _NullSession32from .module import _ModuleSetupState33from .templating import _DispatchingJinjaLoader, \34 _default_template_ctx_processor34 _default_template_ctx_processor3536# a lock used for logger initialization37_logger_lock = Lock()38
386 unmodified lines
425 expires = datetime.utcnow() + self.permanent_session_lifetime426 if self.config['SERVER_NAME'] is not None:427 domain = '.' + self.config['SERVER_NAME']428 session.save_cookie(response, self.session_cookie_name,429 expires=expires, httponly=True,430 domain=domain)429 expires=expires, httponly=True, domain=domain)430431 def register_module(self, module, **options):432 """Registers a module with this application. The keyword argument433 of this function are the same as the ones for the constructor of the
382 unmodified lines
modified:flask/logging.py+1 added-1 removed
9 unmodified lines
10"""1112from __future__ import absolute_import1314from logging import getLogger, StreamHandler, Formatter, Logger, DEBUG14from logging import getLogger, StreamHandler, Formatter, Logger, DEBUG151617def create_logger(app):18 """Creates a logger for the given application. This logger works
24 unmodified lines
modified:flask/module.py+1 added-1 removed
13 unmodified lines
1415def _register_module(module, static_path):16 """Internal helper function that returns a function for recording17 that registers the `send_static_file` function for the module on18 the application of necessary. It also registers the module on18 the application if necessary. It also registers the module on19 the application.20 """21 def _register(state):22 state.app.modules[module.name] = module
182 unmodified lines
modified:flask/session.py+1 added-1 removed
35 unmodified lines
3637 def _fail(self, *args, **kwargs):38 raise RuntimeError('the session is unavailable because no secret '39 'key was set. Set the secret_key on the '40 'application to something unique and secret')40 'application to something unique and secret.')41 __setitem__ = __delitem__ = clear = pop = popitem = \42 update = setdefault = _fail43 del _fail
modified:flask/templating.py+1 added-1 removed
46 unmodified lines
47 try:48 return loader.get_source(environment, name)49 except TemplateNotFound:50 pass51 # raise the exception with the correct fileame here.51 # raise the exception with the correct filename here.52 # (the one that includes the prefix)53 raise TemplateNotFound(template)5455 def list_templates(self):
33 unmodified lines