示例#1
0
        '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'),
示例#2
0
settings.register(
    livesettings.BooleanValue(
        LOGIN_PROVIDERS,
        'SIGNIN_WORDPRESS_SITE_ENABLED',
        default = False,
        description=_('Activate to allow login with self-hosted wordpress site'),
        help_text=_('to activate this feature you must fill out the wordpress xml-rpc setting bellow')
    )
)

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
    )
)