Show More
@@ -90,6 +90,13 class requestcontext(object): | |||
|
90 | 90 | object.__setattr__(self, 'templatepath', |
|
91 | 91 | self.config('web', 'templates', untrusted=False)) |
|
92 | 92 | |
|
93 | # This object is more expensive to build than simple config values. | |
|
94 | # It is shared across requests. The app will replace the object | |
|
95 | # if it is updated. Since this is a reference and nothing should | |
|
96 | # modify the underlying object, it should be constant for the lifetime | |
|
97 | # of the request. | |
|
98 | object.__setattr__(self, 'websubtable', app.websubtable) | |
|
99 | ||
|
93 | 100 | # Proxy unknown reads and writes to the application instance |
|
94 | 101 | # until everything is moved to us. |
|
95 | 102 | def __getattr__(self, name): |
General Comments 0
You need to be logged in to leave comments.
Login now