Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3f33570

Browse files
committed
... i hate coding standards
1 parent 92bc829 commit 3f33570

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

CHANGELOG.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ v.2.9.0 TBA
1111
==================
1212

1313
Deprecations:
14-
* `c.action` and `c.controller` variables should be avoided. Refer to either `request.enpoint`
15-
(generally it will be string in format `BLUEPRINT_NAME.VIEW_NAME`, where blueprint is an
16-
alternative of controller and view is an alternative of action) or `request.url_rule`(which is
17-
object with additional information about current rule)
14+
* ``c.action`` and ``c.controller`` variables should be avoided.
15+
Refer to either ``request.enpoint`` (generally it will be string in format
16+
``BLUEPRINT_NAME.VIEW_NAME``, where blueprint is an alternative of
17+
controller and view is an alternative of action) or ``request.url_rule``
18+
(which is object with additional information about current rule).
1819

1920
v.2.8.0 2018-05-09
2021
==================

ckan/views/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ def set_controller_and_action():
185185
try:
186186
controller, action = request.endpoint.split(u'.')
187187
except ValueError:
188-
log.debug(u'Endpoint does not contain dot: {}'.format(request.endpoint))
188+
log.debug(
189+
u'Endpoint does not contain dot: {}'.format(request.endpoint)
190+
)
189191
controller = action = request.endpoint
190192
g.controller, g.action = controller, action

0 commit comments

Comments
 (0)