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