~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/base/plugins.py

Port the forum app to the new framework. With it also comes new cookie
infrastructure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    views. The canonical example of a plugin of this type is the Console plugin.
42
42
    """
43
43
    pass
 
44
 
 
45
class CookiePlugin(BasePlugin):
 
46
    """Marker class for plugins which provide cookies.
 
47
 
 
48
    Cookie plugins provide a 'cookies' dict mapping names to generation
 
49
    functions. The function should return the data to store in the cookie on
 
50
    login. If the function is None, the cookie is not created on login, just
 
51
    deleted on logout.
 
52
    """
 
53
    pass