Esempio n. 1
0
settings.register(
    livesettings.URLValue(
        LOGIN_PROVIDERS,
        'WORDPRESS_SITE_URL',
        default = '',
        description=_('Fill it with the wordpress url to the xml-rpc, normally http://mysite.com/xmlrpc.php'),
        help_text=_('To enable, go to Settings->Writing->Remote Publishing and check the box for XML-RPC')
    )
)

settings.register(
    livesettings.ImageValue(
        LOGIN_PROVIDERS,
        'WORDPRESS_SITE_ICON',
        default='/images/logo.gif',
        description=_('Upload your icon'),
        url_resolver=skin_utils.get_media_url
    )
)

settings.register(
    livesettings.BooleanValue(
        LOGIN_PROVIDERS,
        'SIGNIN_CUSTOM_OPENID_ENABLED',
        default=False,
        description=_('Enable custom OpenID login')
    )
)

settings.register(
Esempio n. 2
0
settings.register(
    livesettings.BooleanValue(LICENSE_SETTINGS,
                              'LICENSE_USE_URL',
                              description=_('Add link to the license page'),
                              default=True))

settings.register(
    livesettings.URLValue(
        LICENSE_SETTINGS,
        'LICENSE_URL',
        description=_('License homepage'),
        help_text=_(
            'URL of the official page with all the license legal clauses'),
        default=const.DEPENDENCY_URLS['cc-by-sa']))

settings.register(
    livesettings.BooleanValue(LICENSE_SETTINGS,
                              'LICENSE_USE_LOGO',
                              description=_('Use license logo'),
                              default=True))

settings.register(
    livesettings.ImageValue(
        LICENSE_SETTINGS,
        'LICENSE_LOGO_URL',
        description=_('License logo image'),
        upload_directory=django_settings.ASKBOT_FILE_UPLOAD_DIR,
        upload_url='/' + django_settings.ASKBOT_UPLOADED_FILES_URL,
        default='/images/cc-by-sa.png',
        url_resolver=skin_utils.get_media_url))
Esempio n. 3
0
    livesettings.URLValue(
        LOGIN_PROVIDERS,
        'WORDPRESS_SITE_URL',
        default='',
        description=
        _('Fill it with the wordpress url to the xml-rpc, normally http://mysite.com/xmlrpc.php'
          ),
        help_text=
        _('To enable, go to Settings->Writing->Remote Publishing and check the box for XML-RPC'
          )))

settings.register(
    livesettings.ImageValue(
        LOGIN_PROVIDERS,
        'WORDPRESS_SITE_ICON',
        upload_directory=django_settings.ASKBOT_FILE_UPLOAD_DIR,
        upload_url='/' + django_settings.ASKBOT_UPLOADED_FILES_URL,
        default='/images/logo.gif',
        description=_('Upload your icon'),
        url_resolver=skin_utils.get_media_url))

providers = (
    'local',
    'AOL',
    'Blogger',
    'ClaimID',
    'Facebook',
    'Flickr',
    'Google',
    'Twitter',
    'LinkedIn',
    'LiveJournal',
Esempio n. 4
0
        default=True,
        description=_('Allow adding and removing login methods')))

settings.register(
    livesettings.IntegerValue(
        USER_SETTINGS,
        'MIN_USERNAME_LENGTH',
        hidden=True,
        default=1,
        description=_('Minimum allowed length for screen name')))

settings.register(
    livesettings.ImageValue(USER_SETTINGS,
                            'DEFAULT_AVATAR_URL',
                            description=_('Default avatar for users'),
                            help_text=_(
                                'To change the avatar image, select new file, '
                                'then submit this whole form.'),
                            default='/images/nophoto.png',
                            url_resolver=skin_utils.get_media_url))

settings.register(
    livesettings.BooleanValue(
        USER_SETTINGS,
        'ENABLE_GRAVATAR',
        default=True,
        description=_('Use automatic avatars from gravatar.com'),
        help_text=
        _('Check this option if you want to allow the use of gravatar.com for avatars. Please, note that this feature might take about 10 minutes to become fully effective. You will have to enable uploaded avatars as well. For more information, please visit <a href="http://askbot.org/doc/optional-modules.html#uploaded-avatars">this page</a>.'
          )))

settings.register(
settings.register(
    livesettings.URLValue(
        LOGIN_PROVIDERS,
        'WORDPRESS_SITE_URL',
        default = '',
        description=_('Fill it with the wordpress url to the xml-rpc, normally http://mysite.com/xmlrpc.php'),
        help_text=_('To enable, go to Settings->Writing->Remote Publishing and check the box for XML-RPC')
    )
)

settings.register(
    livesettings.ImageValue(
        LOGIN_PROVIDERS,
        'WORDPRESS_SITE_ICON',
        default='/images/logo.gif',
        description=_('WordPress login button image'),
        url_resolver=skin_utils.get_media_url
    )
)

settings.register(
    livesettings.BooleanValue(
        LOGIN_PROVIDERS,
        'SIGNIN_FEDORA_ENABLED',
        default=False,
        description=_('Enable Fedora OpenID login')
    )
)

settings.register(
Esempio n. 6
0
settings.register(
    livesettings.URLValue(
        LOGIN_PROVIDERS,
        'WORDPRESS_SITE_URL',
        default='',
        description=
        _('Fill it with the wordpress url to the xml-rpc, normally http://mysite.com/xmlrpc.php'
          ),
        help_text=
        _('To enable, go to Settings->Writing->Remote Publishing and check the box for XML-RPC'
          )))

settings.register(
    livesettings.ImageValue(LOGIN_PROVIDERS,
                            'WORDPRESS_SITE_ICON',
                            default='/images/logo.gif',
                            description=_('Upload your icon'),
                            url_resolver=skin_utils.get_media_url))

providers = (
    'local',
    'AOL',
    'Blogger',
    'ClaimID',
    'Facebook',
    'Flickr',
    'Google',
    'Twitter',
    'LinkedIn',
    'LiveJournal',
    #'myOpenID',
Esempio n. 7
0
"""settings that allow changing of the license
clause used in askbot instances"""
from django.utils.translation import ugettext_lazy as _
from askbot import const
from askbot.conf.settings_wrapper import settings
from askbot.conf.super_groups import CONTENT_AND_UI
from askbot.deps import livesettings
from askbot.skins import utils as skin_utils
LICENSE_SETTINGS=livesettings.ConfigurationGroup('LICENSE_SETTINGS',_('Content License'),super_group=CONTENT_AND_UI)
settings.register(livesettings.BooleanValue(LICENSE_SETTINGS,'USE_LICENSE',description=_('Show license clause in the site footer'),default=True))
settings.register(livesettings.StringValue(LICENSE_SETTINGS,'LICENSE_ACRONYM',description=_('Short name for the license'),default='cc-by-sa'))
settings.register(livesettings.StringValue(LICENSE_SETTINGS,'LICENSE_TITLE',description=_('Full name of the license'),default=_('Creative Commons Attribution Share Alike 3.0'),))
settings.register(livesettings.BooleanValue(LICENSE_SETTINGS,'LICENSE_USE_URL',description=_('Add link to the license page'),default=True))
settings.register(livesettings.URLValue(LICENSE_SETTINGS,'LICENSE_URL',description=_('License homepage'),help_text=_('URL of the official page with all the license legal clauses'),default=const.DEPENDENCY_URLS['cc-by-sa']))
settings.register(livesettings.BooleanValue(LICENSE_SETTINGS,'LICENSE_USE_LOGO',description=_('Use license logo'),default=True))
settings.register(livesettings.ImageValue(LICENSE_SETTINGS,'LICENSE_LOGO_URL',description=_('License logo image'),default='/images/cc-by-sa.png',url_resolver=skin_utils.get_media_url))
# Created by pyminifier (https://github.com/liftoff/pyminifier)