This file contains hidden or 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
| YOUR_USERNAME = 'gpbmike' | |
| import scout.recon.register | |
| from django.contrib.auth.models import User | |
| u = User.objects.get(username=YOUR_USERNAME) | |
| u.profile['plan_id'] = 2 | |
| u.profile['next_billing_date'] = '2012-09-01' | |
| u.save() |
This file contains hidden or 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
| import datetime | |
| import scout.recon.register | |
| from django.contrib.auth.models import User | |
| u = User.objects.get(username='') | |
| u.profile['plan_id'] = 2 | |
| u.profile['next_billing_date'] = datetime.date(2012, 9, 1) | |
| u.save() |
This file contains hidden or 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 ella.core.models import * | |
| article_cat = Category.objects.get(slug='news') | |
| Category.objects.create(slug='best-of', title='Best Of', tree_path='news/best-of', tree_parent=article_cat, site_id=1) |
This file contains hidden or 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
| skin: function (skinUrl, bgColor, contentWrapColor) { | |
| var bgStyle = 'url(' + skinUrl + ') top center no-repeat '; | |
| $('over_skin').setStyle("background", bgStyle + bgColor); | |
| if (contentWrapColor) { | |
| $('content-wrap').setStyle("background", contentWrapColor); | |
| } | |
| }, |
This file contains hidden or 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
| <a href="#js_table_1" class="toggle-table">table 1</a> | |
| $('.toggle-table').click(function(e) { | |
| e.preventDefault(); | |
| var table = $($(this).attr('href')); | |
| if (table.is(':visible')) { | |
| table.fadeOut('slow') | |
| } else { | |
| table.fadeIn('slow') | |
| } |