Created
March 28, 2011 14:11
-
-
Save ojii/890529 to your computer and use it in GitHub Desktop.
__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nothing here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cms.plugin_base import CMSPluginBase | |
from cms.plugin_pool import plugin_pool | |
from cms.models import CMSPlugin | |
class VerySimplePlugin(CMSPluginBase): | |
model = CMSPlugin | |
name = "A very simple plugin" | |
render_template = "very_simple_plugin/render_template.html" | |
def render(self, context, instance, placeholder): | |
return context | |
plugin_pool.register_plugin(VerySimplePlugin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nothing here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment