old_contents: # -*- coding: iso-8859-1 -*-
  """
      MoinMoin - mod_wsgi driver script
  
      To use this, add those statements to your Apache's VirtualHost definition:
      
      # you will invoke your moin wiki at the root url, like http://servername/FrontPage:
      WSGIScriptAlias / /some/path/moin.wsgi
  
      # create some wsgi daemons - use someuser.somegroup same as your data_dir:
      WSGIDaemonProcess daemonname user=someuser group=somegroup processes=5 threads=10 maximum-requests=1000 umask=0007
  
      # use the daemons we defined above to process requests!
      WSGIProcessGroup daemonname
  
      @copyright: 2008 by MoinMoin:ThomasWaldmann
      @license: GNU GPL, see COPYING for details.
  """
  
  import sys, os
  THIS_DIR = os.path.abspath(os.path.dirname(__file__))
  
  
  # a) Configuration of Python's code search path
  #    If you already have set up the PYTHONPATH environment variable for the
  #    stuff you see below, you don't need to do a1) and a2).
  
  # a1) Path of the directory where the MoinMoin code package is located.
  #     Needed if you installed with --prefix=PREFIX or you didn't use setup.py.
  #sys.path.insert(0, '/lib/python2.3/site-packages')
  
  # a2) Path of the directory where wikiconfig.py / farmconfig.py is located.
  #     See wiki/config/... for some sample config files.
  # TODO: don't use absolute path...
  sys.path.insert(0, THIS_DIR+'/../')
  #sys.path.insert(0, '/path/to/farmconfigdir')
  
  # b) Configuration of moin's logging
  #    If you have set up MOINLOGGINGCONF environment variable, you don't need this!
  #    You also don't need this if you are happy with the builtin defaults.
  #    See wiki/config/logging/... for some sample config files.
  #from MoinMoin import log
  #log.load_config('/path/to/logging_configuration_file')
  
  from MoinMoin.web.serving import make_application
  
  # Creating the WSGI application
  # use shared=True to have moin serve the builtin static docs
  # use shared=False to not have moin serve static docs
  #use shared='/my/path/to/htdocs' to serve static docs from that path
  #TODO: get path by intelligent means
  application = make_application(shared='/home/dave/.virtualenvs/h1ds_staging/h1ds/moin_static')
  
new_contents: # -*- coding: iso-8859-1 -*-
  """
      MoinMoin - mod_wsgi driver script
  
      To use this, add those statements to your Apache's VirtualHost definition:
      
      # you will invoke your moin wiki at the root url, like http://servername/FrontPage:
      WSGIScriptAlias / /some/path/moin.wsgi
  
      # create some wsgi daemons - use someuser.somegroup same as your data_dir:
      WSGIDaemonProcess daemonname user=someuser group=somegroup processes=5 threads=10 maximum-requests=1000 umask=0007
  
      # use the daemons we defined above to process requests!
      WSGIProcessGroup daemonname
  
      @copyright: 2008 by MoinMoin:ThomasWaldmann
      @license: GNU GPL, see COPYING for details.
  """
  
  import sys, os
  THIS_DIR = os.path.abspath(os.path.dirname(__file__))
  
  
  # a) Configuration of Python's code search path
  #    If you already have set up the PYTHONPATH environment variable for the
  #    stuff you see below, you don't need to do a1) and a2).
  
  # a1) Path of the directory where the MoinMoin code package is located.
  #     Needed if you installed with --prefix=PREFIX or you didn't use setup.py.
  #sys.path.insert(0, '/lib/python2.3/site-packages')
  
  # a2) Path of the directory where wikiconfig.py / farmconfig.py is located.
  #     See wiki/config/... for some sample config files.
  # TODO: don't use absolute path...
  sys.path.insert(0, THIS_DIR+'/../')
  #sys.path.insert(0, '/path/to/farmconfigdir')
  
  # b) Configuration of moin's logging
  #    If you have set up MOINLOGGINGCONF environment variable, you don't need this!
  #    You also don't need this if you are happy with the builtin defaults.
  #    See wiki/config/logging/... for some sample config files.
  #from MoinMoin import log
  #log.load_config('/path/to/logging_configuration_file')
  
  from MoinMoin.web.serving import make_application
  
  # Creating the WSGI application
  # use shared=True to have moin serve the builtin static docs
  # use shared=False to not have moin serve static docs
  #use shared='/my/path/to/htdocs' to serve static docs from that path
  #TODO: get path by intelligent means
  static_dir = THIS_DIR
  for i in range(2):
      static_dir = os.path.dirname(static_dir)
  static_dir = os.path.join(static_dir, 'moin_static')
  application = make_application(shared=static_dir)
  
  
subject: remove absolute path from moin wsgi