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

« back to all changes in this revision

Viewing changes to ivle/webapp/security/__init__.py

  • Committer: William Grant
  • Date: 2009-07-04 13:40:44 UTC
  • mto: (1294.4.2 ui-the-third)
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: grantw@unimelb.edu.au-20090704134044-b5n1zaq6l325cc7a
Security (login/logout) done.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import ivle.database
21
21
from ivle.webapp.base.plugins import ViewPlugin
22
22
from ivle.webapp.security.views import LoginView, LogoutView
 
23
from ivle.webapp import ApplicationRoot
23
24
 
24
25
def get_user_details(req):
25
26
    """Gets the name of the logged in user, without presenting a login box
43
44
    """
44
45
    The Plugin class for the security plugin.
45
46
    """
46
 
    urls = [
47
 
        ('+login', LoginView),
48
 
        ('+logout', LogoutView),
49
 
    ]
 
47
    views = [(ApplicationRoot, '+login', LoginView),
 
48
             (ApplicationRoot, '+logout', LogoutView),
 
49
             ]