Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
MoinMoin.web.frontend.FrontEnd Class Reference
Inheritance diagram for MoinMoin.web.frontend.FrontEnd:
Inheritance graph

List of all members.

Public Member Functions

def __init__
def add_options
def run

Public Attributes


Detailed Description

Definition at line 15 of file

Constructor & Destructor Documentation

Reimplemented in MoinMoin.web.flup_frontend.CGIFrontEnd.

Definition at line 16 of file

00017     def __init__(self):
00018         self.parser = optparse.OptionParser()
00019         self.add_options()

Here is the caller graph for this function:

Member Function Documentation

Reimplemented in MoinMoin.web.frontend.ServerFrontEnd, and MoinMoin.web.flup_frontend.FlupFrontEnd.

Definition at line 20 of file

00021     def add_options(self):
00022         parser = self.parser
00023         parser.add_option("-d", "--debug", dest="debug",
00024                           help="Debug mode of server (off/web/external, default is to use MOIN_DEBUGGER env var)")
00025         parser.add_option("-c", "--config-dir", dest="config_dir", metavar="DIR",
00026                           help=("Path to the directory containing the wiki "
00027                                 "configuration files. Default: current directory"))
00028         parser.add_option("--htdocs", dest="htdocs",
00029                           help=("Path to the directory containing Moin's "
00030                                 "static files. Default: use builtin MoinMoin/web/static/htdocs"))
00031         parser.set_default('htdocs', True)

def (   self,
  args = None 

Definition at line 32 of file

00033     def run(self, args=None):
00034         options, args = self.parser.parse_args(args)
00035         logging.debug('Options: %r', options)
00037         application = make_application(shared=options.htdocs)
00039         try:
00040             self.run_server(application, options)
00041         except SystemExit, err:
00042             # the flup CGIRequest uses sys.exit(0) to terminate
00043             if err.code: # log a non-zero exit status (0 means no error)
00044                 logging.exception('A SystemExit(%d) exception occurred.' % err.code)
00045             raise # exit now with this exit status
00046         except:
00047             logging.exception('An exception occurred while running %s' % self.__class__.__name__)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Definition at line 17 of file

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