Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Private Attributes
MoinMoin.action.logout.LogoutHandler Class Reference

List of all members.

Public Member Functions

def __init__
def handle

Public Attributes

 request
 page

Private Attributes

 _

Detailed Description

Definition at line 17 of file logout.py.


Constructor & Destructor Documentation

def MoinMoin.action.logout.LogoutHandler.__init__ (   self,
  pagename,
  request 
)

Definition at line 18 of file logout.py.

00018 
00019     def __init__(self, pagename, request):
00020         self.request = request
00021         self._ = request.getText
00022         self.page = Page(request, pagename)


Member Function Documentation

Definition at line 23 of file logout.py.

00023 
00024     def handle(self):
00025         _ = self._
00026         # if the user really was logged out say so,
00027         # but if the user manually added ?action=logout
00028         # and that isn't really supported, then don't
00029         if not self.request.user.valid:
00030             self.request.theme.add_msg(_("You are now logged out."), "info")
00031         return self.page.send_page()
00032 

Member Data Documentation

Definition at line 20 of file logout.py.

Definition at line 21 of file logout.py.

Definition at line 19 of file logout.py.


The documentation for this class was generated from the following file: