summaryrefslogtreecommitdiffstats
path: root/askbot/conf
diff options
context:
space:
mode:
authorAdolfo Fitoria <adolfo.fitoria@gmail.com>2012-08-20 18:02:03 -0600
committerAdolfo Fitoria <adolfo.fitoria@gmail.com>2012-08-20 18:34:57 -0600
commit73acb9f0fea58f67426d1bbdff3df74a091bfb9e (patch)
tree211ea5e786d5b53ea7ec0523940080675b4c4646 /askbot/conf
parent78bdaeccf96777228b7a1cae6fc558af8c82df9a (diff)
downloadaskbot-73acb9f0fea58f67426d1bbdff3df74a091bfb9e.tar.gz
askbot-73acb9f0fea58f67426d1bbdff3df74a091bfb9e.tar.bz2
askbot-73acb9f0fea58f67426d1bbdff3df74a091bfb9e.zip
deleted conf/widgets.py this file won't be needed anymore
Diffstat (limited to 'askbot/conf')
-rw-r--r--askbot/conf/__init__.py1
-rw-r--r--askbot/conf/widgets.py99
2 files changed, 0 insertions, 100 deletions
diff --git a/askbot/conf/__init__.py b/askbot/conf/__init__.py
index 8378fca3..a90c2ccc 100644
--- a/askbot/conf/__init__.py
+++ b/askbot/conf/__init__.py
@@ -26,7 +26,6 @@ import askbot.conf.badges
import askbot.conf.login_providers
import askbot.conf.access_control
import askbot.conf.site_modes
-import askbot.conf.widgets
#import main settings object
from askbot.conf.settings_wrapper import settings
diff --git a/askbot/conf/widgets.py b/askbot/conf/widgets.py
deleted file mode 100644
index d704ea12..00000000
--- a/askbot/conf/widgets.py
+++ /dev/null
@@ -1,99 +0,0 @@
-"""
-Settings for embeddable widgets
-"""
-from django.utils.translation import ugettext as _
-from django.utils.html import escape
-from askbot.conf.settings_wrapper import settings
-from askbot.deps.livesettings import ConfigurationGroup
-from askbot.deps.livesettings import values
-from askbot.conf.super_groups import CONTENT_AND_UI
-
-EMBEDDABLE_WIDGETS = ConfigurationGroup(
- 'EMBEDDABLE_WIDGETS',
- _('Embeddable widgets'),
- super_group = CONTENT_AND_UI
-)
-
-#we need better capabilities for the settings here
-#
-
-settings.register(
- values.IntegerValue(
- EMBEDDABLE_WIDGETS,
- 'QUESTIONS_WIDGET_MAX_QUESTIONS',
- default = 7,
- description = _('Number of questions to show'),
- help_text = escape(
- _(
- 'To embed the widget, add the following code '
- 'to your site (and fill in correct base url, preferred tags, width and height):'
- '<iframe '
- 'src="{{base_url}}/widgets/questions?tags={{comma-separated-tags}}" '
- 'width="100%" '
- 'height="300"'
- 'scrolling="no">'
- '<p>Your browser does not support iframes.</p>'
- '</iframe>'
- )
- )
- )
-)
-settings.register(
- values.LongStringValue(
- EMBEDDABLE_WIDGETS,
- 'QUESTIONS_WIDGET_CSS',
- default = """
-body {
- overflow: hidden;
-}
-#container {
- width: 200px;
- height: 350px;
-}
-ul {
- list-style: none;
- padding: 5px;
- margin: 5px;
-}
-li {
- border-bottom: #CCC 1px solid;
- padding-bottom: 5px;
- padding-top: 5px;
-}
-li:last-child {
- border: none;
-}
-a {
- text-decoration: none;
- color: #464646;
- font-family: 'Yanone Kaffeesatz', sans-serif;
- font-size: 15px;
-}
-""",
- descripton = _('CSS for the questions widget')
- )
-)
-
-settings.register(
- values.LongStringValue(
- EMBEDDABLE_WIDGETS,
- 'QUESTIONS_WIDGET_HEADER',
- description = _('Header for the questions widget'),
- default = ''
- )
-)
-
-settings.register(
- values.LongStringValue(
- EMBEDDABLE_WIDGETS,
- 'QUESTIONS_WIDGET_FOOTER',
- description = _('Footer for the questions widget'),
- default = """
-<link
- href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:300,400,700'
- rel='stylesheet'
- type='text/css'
->
-"""
- )
-)