cms.test_utils.project.placeholderapp.cms_plugins: 12 total statements, 0.0% covered

Generated: Wed 2013-03-13 10:33 CET

Source file: /media/Envs/Envs/filer-gallery/lib/python2.7/site-packages/cms/test_utils/project/placeholderapp/cms_plugins.py

Stats: 0 executed, 8 missed, 4 excluded, 4 ignored

  1. from cms.plugin_pool import plugin_pool
  2. from cms.plugin_base import CMSPluginBase
  3. from django.utils.translation import ugettext_lazy as _
  4. from django.conf import settings
  5. class EmptyPlugin(CMSPluginBase):
  6. name = _("Test Plugin")
  7. text_enabled = True
  8. def render(self, context, instance, placeholder):
  9. return context
  10. def icon_src(self, instance):
  11. return settings.STATIC_URL + u"plugins/empty-image-file.png"
  12. plugin_pool.register_plugin(EmptyPlugin)