Add rattail_config
attribute to base View
class.
Just a shortcut but should save a little code noise.
This commit is contained in:
parent
d0a977d64b
commit
3732cc30f2
|
@ -38,6 +38,13 @@ class View(object):
|
||||||
def __init__(self, request):
|
def __init__(self, request):
|
||||||
self.request = request
|
self.request = request
|
||||||
|
|
||||||
|
@property
|
||||||
|
def rattail_config(self):
|
||||||
|
"""
|
||||||
|
Reference to the effective Rattail config object.
|
||||||
|
"""
|
||||||
|
return self.request.rattail_config
|
||||||
|
|
||||||
|
|
||||||
def fake_error(request):
|
def fake_error(request):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue