Back to index

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

List of all members.

Public Member Functions

def add_options
def run

Public Attributes


Detailed Description

Definition at line 48 of file

Member Function Documentation

Reimplemented from MoinMoin.web.frontend.FrontEnd.

Reimplemented in MoinMoin.web.flup_frontend.FlupFrontEnd.

Definition at line 49 of file

00050     def add_options(self):
00051         super(ServerFrontEnd, self).add_options()
00052         parser = self.parser
00053         parser.add_option("-p", "--port", dest="port", type="int",
00054                           help="Set the port to listen on. If not given, act as CGI/FCGI script.")
00055         parser.add_option("-i", "--interface", dest="interface",
00056                           help=("Set the interface/socket to listen on. If starts "
00057                                 "with '/' or './' it is interpreted as a path "
00058                                 "to a unix socket. If not given, act as CGI/FCGI script."))
00059         # Note: interface default MUST be None, do not set it to something else!
00060         # Otherwise CGI (and also when the FCGI process is spawned by the web server) won't work.

def (   self,
  args = None 
) [inherited]

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: