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
Provenance
- Commit
16e4d5a- Tree
172de53- Author
florentx <florent.xicluna@gmail.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
b004324
6 files changed+7 added−8 removed
modified:docs/patterns/packages.rst+1 added-1 removed
239 unmodified lines240 241 If you want to refer to the templates you just have to prefix it with the242 name of the module. So for the admin it would be243 ``render_template('admin/list_items.html')`` and so on. It is not244-possible to refer to templates without the prefixed modlue name. This is244+possible to refer to templates without the prefixed module name. This is245 explicit unlike URL rules.modified:flask/app.py+2 added-3 removed
29 unmodified lines30 from .globals import _request_ctx_stack, request31 from .session import Session, _NullSession32 from .module import _ModuleSetupState33 from .templating import _DispatchingJinjaLoader, \34- _default_template_ctx_processor34+ _default_template_ctx_processor35 36 # a lock used for logger initialization37 _logger_lock = Lock()38 386 unmodified lines425 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)430 431 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 the382 unmodified linesmodified:flask/logging.py+1 added-1 removed
9 unmodified lines10 """11 12 from __future__ import absolute_import13 14-from logging import getLogger, StreamHandler, Formatter, Logger, DEBUG14+from logging import getLogger, StreamHandler, Formatter, Logger, DEBUG15 16 17 def create_logger(app):18 """Creates a logger for the given application. This logger works24 unmodified linesmodified:flask/module.py+1 added-1 removed
13 unmodified lines14 15 def _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] = module182 unmodified linesmodified:flask/session.py+1 added-1 removed
35 unmodified lines36 37 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 _failmodified:flask/templating.py+1 added-1 removed
46 unmodified lines47 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)54 55 def list_templates(self):33 unmodified lines