cms.plugins.twitter.models: 16 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/plugins/twitter/models.py

Stats: 0 executed, 9 missed, 7 excluded, 4 ignored

  1. from django.db import models
  2. from django.utils.translation import ugettext_lazy as _
  3. from cms.models.pluginmodel import CMSPlugin
  4. class TwitterRecentEntries(CMSPlugin):
  5. title = models.CharField(_('title'), max_length=75, blank=True)
  6. twitter_user = models.CharField(_('twitter user'), max_length=75)
  7. count = models.PositiveSmallIntegerField(_('count'), help_text=_('Number of entries to display'), default=3)
  8. link_hint = models.CharField(_('link hint'), max_length=75, blank=True, help_text=_('If given, the hint is displayed as link to your Twitter profile.'))
  9. def __unicode__(self):
  10. return self.title
  11. class TwitterSearch(CMSPlugin):
  12. title = models.CharField(_('title'), max_length=75, blank=True)
  13. query = models.CharField(_('query'), max_length=200, blank=True, default='', help_text=_('Example: "brains AND zombies AND from:umbrella AND to:nemesis": tweets from the user "umbrella" to the user "nemesis" that contain the words "brains" and "zombies"'))
  14. count = models.PositiveSmallIntegerField(_('count'), help_text=_('Number of entries to display'), default=3)
  15. def __unicode__(self):
  16. return self.title