Switch to unified view

a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
...
...
54
54
55
class AuthenticationProvider(object):
55
class AuthenticationProvider(object):
56
    '''
56
    '''
57
    An interface to provide authentication services for Allura.
57
    An interface to provide authentication services for Allura.
58
58
59
    To use a new provider, expose an entry point in setup.py:
59
    To use a new provider, expose an entry point in setup.py::
60
60
61
        [allura.auth]
61
        [allura.auth]
62
        myprovider = foo.bar:MyAuthProvider
62
        myprovider = foo.bar:MyAuthProvider
63
63
64
    Then in your .ini file, set auth.method=myprovider
64
    Then in your .ini file, set ``auth.method=myprovider``
65
    '''
65
    '''
66
66
67
    def __init__(self, request):
67
    def __init__(self, request):
68
        self.request = request
68
        self.request = request
69
69
...
...
344
    '''
344
    '''
345
    Project registration services for Allura.  This is a full implementation
345
    Project registration services for Allura.  This is a full implementation
346
    and the default.  Extend this class with your own if you need to add more
346
    and the default.  Extend this class with your own if you need to add more
347
    functionality.
347
    functionality.
348
348
349
    To use a new provider, expose an entry point in setup.py:
349
    To use a new provider, expose an entry point in setup.py::
350
350
351
        [allura.project_registration]
351
        [allura.project_registration]
352
        myprovider = foo.bar:MyAuthProvider
352
        myprovider = foo.bar:MyAuthProvider
353
353
354
    Then in your .ini file, set registration.method=myprovider
354
    Then in your .ini file, set registration.method=myprovider
...
...
623
    '''
623
    '''
624
    Theme information for Allura.  This is a full implementation
624
    Theme information for Allura.  This is a full implementation
625
    and the default.  Extend this class with your own if you need to add more
625
    and the default.  Extend this class with your own if you need to add more
626
    functionality.
626
    functionality.
627
627
628
    To use a new provider, expose an entry point in setup.py:
628
    To use a new provider, expose an entry point in setup.py::
629
629
630
        [allura.theme]
630
        [allura.theme]
631
        myprovider = foo.bar:MyThemeProvider
631
        myprovider = foo.bar:MyThemeProvider
632
632
633
    Then in your .ini file, set theme=mytheme
633
    Then in your .ini file, set theme=mytheme
...
...
853
853
854
class UserPreferencesProvider(object):
854
class UserPreferencesProvider(object):
855
    '''
855
    '''
856
    An interface for user preferences, like display_name and email_address
856
    An interface for user preferences, like display_name and email_address
857
857
858
    To use a new provider, expose an entry point in setup.py:
858
    To use a new provider, expose an entry point in setup.py::
859
859
860
        [allura.user_prefs]
860
        [allura.user_prefs]
861
        myprefs = foo.bar:MyUserPrefProvider
861
        myprefs = foo.bar:MyUserPrefProvider
862
862
863
    Then in your .ini file, set user_prefs_storage.method=myprefs
863
    Then in your .ini file, set user_prefs_storage.method=myprefs