Show More
@@ -160,10 +160,7 b' class Exporter(Configurable):' | |||
|
160 | 160 | #Load user filters. Overwrite existing filters if need be. |
|
161 | 161 | if not filters is None: |
|
162 | 162 | for key, user_filter in filters.iteritems(): |
|
163 | if issubclass(user_filter, MetaHasTraits): | |
|
164 | self.environment.filters[key] = user_filter(config=config) | |
|
165 | else: | |
|
166 | self.environment.filters[key] = user_filter | |
|
163 | self.register_filter(key, user_filter) | |
|
167 | 164 | |
|
168 | 165 | @property |
|
169 | 166 | def default_config(self): |
General Comments 0
You need to be logged in to leave comments.
Login now