Show More
@@ -40,7 +40,7 b' class BaseAppView(object):' | |||||
40 | self.request = request |
|
40 | self.request = request | |
41 | self.context = context |
|
41 | self.context = context | |
42 | self.session = request.session |
|
42 | self.session = request.session | |
43 | self._rhodecode_user = request.user |
|
43 | self._rhodecode_user = request.user # auth user | |
44 |
|
44 | |||
45 | def _get_local_tmpl_context(self): |
|
45 | def _get_local_tmpl_context(self): | |
46 | c = TemplateArgs() |
|
46 | c = TemplateArgs() | |
@@ -64,3 +64,15 b' class BaseAppView(object):' | |||||
64 | 'errors': {}, |
|
64 | 'errors': {}, | |
65 | } |
|
65 | } | |
66 |
|
66 | |||
|
67 | def load_default_context(self): | |||
|
68 | """ | |||
|
69 | example: | |||
|
70 | ||||
|
71 | def load_default_context(self): | |||
|
72 | c = self._get_local_tmpl_context() | |||
|
73 | c.custom_var = 'foobar' | |||
|
74 | self._register_global_c(c) | |||
|
75 | return c | |||
|
76 | """ | |||
|
77 | raise NotImplementedError('Needs implementation in view class') | |||
|
78 |
General Comments 0
You need to be logged in to leave comments.
Login now