Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Last touchup before first release

  • Loading branch information...
commit e25a35771703e5bf25ce44042b39353f98b45551 1 parent 178affd
@chrisglass authored
View
6 cmsplugin_facebook/cms_plugins.py
@@ -10,17 +10,17 @@ def render(self, context, instance, placeholder):
return context
class LikeBoxPlugin(BasePlugin):
- model = models.LikeBox
+ model = models.FacebookLikeBox
name = 'Facebook LikeBox Plugin'
render_template = 'cmsplugin_facebook/likebox.html'
class ShareButtonPlugin(BasePlugin):
- model = models.ShareButton
+ model = models.FacebookShareButton
name = 'Facebook "Share" button plugin'
render_template = "cmsplugin_facebook/sharebutton.html"
class LikeButtonPlugin(BasePlugin):
- model = models.LikeButton
+ model = models.FacebookLikeButton
name = 'Facebook Like Button Plugin'
render_template = 'cmsplugin_facebook/likebutton.html'
View
42 cmsplugin_facebook/migrations/0001_initial.py
@@ -8,17 +8,17 @@ class Migration(SchemaMigration):
def forwards(self, orm):
- # Adding model 'ShareButton'
- db.create_table('cmsplugin_sharebutton', (
+ # Adding model 'FacebookShareButton'
+ db.create_table('cmsplugin_facebooksharebutton', (
('cmsplugin_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['cms.CMSPlugin'], unique=True, primary_key=True)),
('style', self.gf('django.db.models.fields.CharField')(max_length=12)),
('share_url', self.gf('django.db.models.fields.URLField')(max_length=200, null=True, blank=True)),
('button_text', self.gf('django.db.models.fields.CharField')(default=u'Share', max_length=255)),
))
- db.send_create_signal('cmsplugin_facebook', ['ShareButton'])
+ db.send_create_signal('cmsplugin_facebook', ['FacebookShareButton'])
- # Adding model 'LikeBox'
- db.create_table('cmsplugin_likebox', (
+ # Adding model 'FacebookLikeBox'
+ db.create_table('cmsplugin_facebooklikebox', (
('cmsplugin_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['cms.CMSPlugin'], unique=True, primary_key=True)),
('pageurl', self.gf('django.db.models.fields.URLField')(max_length=200)),
('width', self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=None, null=True, blank=True)),
@@ -27,10 +27,10 @@ def forwards(self, orm):
('stream', self.gf('django.db.models.fields.BooleanField')(default=True)),
('header', self.gf('django.db.models.fields.BooleanField')(default=True)),
))
- db.send_create_signal('cmsplugin_facebook', ['LikeBox'])
+ db.send_create_signal('cmsplugin_facebook', ['FacebookLikeBox'])
- # Adding model 'LikeButton'
- db.create_table('cmsplugin_likebutton', (
+ # Adding model 'FacebookLikeButton'
+ db.create_table('cmsplugin_facebooklikebutton', (
('cmsplugin_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['cms.CMSPlugin'], unique=True, primary_key=True)),
('pageurl', self.gf('django.db.models.fields.URLField')(max_length=200)),
('layout', self.gf('django.db.models.fields.CharField')(default='standard', max_length=50)),
@@ -41,19 +41,19 @@ def forwards(self, orm):
('font', self.gf('django.db.models.fields.CharField')(default='verdana', max_length=50)),
('color_scheme', self.gf('django.db.models.fields.CharField')(default='light', max_length=50)),
))
- db.send_create_signal('cmsplugin_facebook', ['LikeButton'])
+ db.send_create_signal('cmsplugin_facebook', ['FacebookLikeButton'])
def backwards(self, orm):
- # Deleting model 'ShareButton'
- db.delete_table('cmsplugin_sharebutton')
+ # Deleting model 'FacebookShareButton'
+ db.delete_table('cmsplugin_facebooksharebutton')
- # Deleting model 'LikeBox'
- db.delete_table('cmsplugin_likebox')
+ # Deleting model 'FacebookLikeBox'
+ db.delete_table('cmsplugin_facebooklikebox')
- # Deleting model 'LikeButton'
- db.delete_table('cmsplugin_likebutton')
+ # Deleting model 'FacebookLikeButton'
+ db.delete_table('cmsplugin_facebooklikebutton')
models = {
@@ -80,8 +80,8 @@ def backwards(self, orm):
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'slot': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'})
},
- 'cmsplugin_facebook.likebox': {
- 'Meta': {'object_name': 'LikeBox', 'db_table': "'cmsplugin_likebox'", '_ormbases': ['cms.CMSPlugin']},
+ 'cmsplugin_facebook.facebooklikebox': {
+ 'Meta': {'object_name': 'FacebookLikeBox', 'db_table': "'cmsplugin_facebooklikebox'", '_ormbases': ['cms.CMSPlugin']},
'cmsplugin_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['cms.CMSPlugin']", 'unique': 'True', 'primary_key': 'True'}),
'connections': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '10'}),
'header': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
@@ -90,8 +90,8 @@ def backwards(self, orm):
'stream': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'width': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'})
},
- 'cmsplugin_facebook.likebutton': {
- 'Meta': {'object_name': 'LikeButton', 'db_table': "'cmsplugin_likebutton'", '_ormbases': ['cms.CMSPlugin']},
+ 'cmsplugin_facebook.facebooklikebutton': {
+ 'Meta': {'object_name': 'FacebookLikeButton', 'db_table': "'cmsplugin_facebooklikebutton'", '_ormbases': ['cms.CMSPlugin']},
'cmsplugin_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['cms.CMSPlugin']", 'unique': 'True', 'primary_key': 'True'}),
'color_scheme': ('django.db.models.fields.CharField', [], {'default': "'light'", 'max_length': '50'}),
'font': ('django.db.models.fields.CharField', [], {'default': "'verdana'", 'max_length': '50'}),
@@ -102,8 +102,8 @@ def backwards(self, orm):
'verb': ('django.db.models.fields.CharField', [], {'default': "'like'", 'max_length': '50'}),
'width': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'})
},
- 'cmsplugin_facebook.sharebutton': {
- 'Meta': {'object_name': 'ShareButton', 'db_table': "'cmsplugin_sharebutton'", '_ormbases': ['cms.CMSPlugin']},
+ 'cmsplugin_facebook.facebooksharebutton': {
+ 'Meta': {'object_name': 'FacebookShareButton', 'db_table': "'cmsplugin_facebooksharebutton'", '_ormbases': ['cms.CMSPlugin']},
'button_text': ('django.db.models.fields.CharField', [], {'default': "u'Share'", 'max_length': '255'}),
'cmsplugin_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['cms.CMSPlugin']", 'unique': 'True', 'primary_key': 'True'}),
'share_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
View
6 cmsplugin_facebook/models.py
@@ -34,14 +34,14 @@
)
-class ShareButton(CMSPlugin):
+class FacebookShareButton(CMSPlugin):
style = models.CharField(max_length=12,choices=SHARE_BUTTON_STYLES)
share_url = models.URLField(_("URL to share"), help_text=_("If blank, the page where it's displayed will be used"),
null=True, blank=True)
button_text = models.CharField(_("Button text"),help_text=_("This text will be displayed in the \"Share\" button"),
max_length=255,default=_("Share"))
-class LikeBox(CMSPlugin):
+class FacebookLikeBox(CMSPlugin):
pageurl = models.URLField(_("URL to like"))
width = models.PositiveSmallIntegerField(_("Width"), default=None, null=True,
blank=True, help_text=_("Leave empty for auto scaling"))
@@ -67,7 +67,7 @@ def __unicode__(self):
return "LikeBox (%s)" % (self.pageurl)
-class LikeButton(CMSPlugin):
+class FacebookLikeButton(CMSPlugin):
pageurl = models.URLField(_("URL to like"))
layout = models.CharField(_("Layout Style"), choices=LAYOUT_CHOICES, default="standard", max_length=50)
show_faces = models.BooleanField(_("Show Faces"), default=True,
Please sign in to comment.
Something went wrong with that request. Please try again.