Skip to content

Commit

Permalink
Merge branch '271-mark-igenshistreamfilter-as-legacy'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Feb 14, 2013
2 parents 81656ed + decdc80 commit 3d7dc17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ckan/plugins/core.py
Expand Up @@ -11,7 +11,7 @@
from pyutilib.component.core import SingletonPlugin as _pca_SingletonPlugin
from pyutilib.component.core import Plugin as _pca_Plugin

from ckan.plugins.interfaces import IPluginObserver
from ckan.plugins.interfaces import IPluginObserver, IGenshiStreamFilter

__all__ = [
'PluginImplementations', 'implements',
Expand Down Expand Up @@ -123,6 +123,10 @@ def load(plugin):
service.activate()
for observer_plugin in observers:
observer_plugin.after_load(service)

if IGenshiStreamFilter in service.__interfaces__:
log.warn("Plugin '%s' is using deprecated interface IGenshiStreamFilter" % plugin)

return service


Expand Down
1 change: 1 addition & 0 deletions doc/writing-extensions.rst
Expand Up @@ -141,6 +141,7 @@ Here's a list of some of the more commonly used plugin interfaces:

:class:`~ckan.plugins.interfaces.IGenshiStreamFilter`
Intercept template rendering to modify the output.
.. warning :: This interface is currently deprecated, use ITemplateHelpers instead.
:class:`~ckan.plugins.interfaces.IResourcePreview`
Add custom previews. The preview extensions can make use of the resoucre proxy extension, if enabled.
Expand Down

0 comments on commit 3d7dc17

Please sign in to comment.