Changeset 10058 in genesis


Ignore:
Timestamp:
Mar 8, 2012, 7:25:10 PM (13 years ago)
Author:
rick
Message:

Makes the configuration production ready.

Related-To: ticket:117

Location:
tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10054 r10058  
    55#
    66# XXX: This should be rewritten to make use of the ipaddr.py library.
     7#
     8# Sample apache configuration (mind the AcceptPathInfo!)
     9#  ScriptAlias /wleiden/config /usr/local/www/genesis/tools/gformat.py
     10#  <Directory /usr/local/www/genesis>
     11#    Allow from all
     12#    AcceptPathInfo On
     13#  </Directory>
    714#
    815# Rick van der Zwet <info@rickvanderzwet.nl>
  • tools/rdnap.py

    r9822 r10058  
    1111  CACHE_FILE = os.environ['RD2ETRS_CACHE']
    1212except KeyError:
    13   CACHE_FILE = os.path.join(os.environ['HOME'],'.rd2etrs.yaml')
     13  try:
     14    CACHE_FILE = os.path.join(os.environ['HOME'],'.rd2etrs.yaml')
     15  except KeyError:
     16    CACHE_FILE = '/tmp/rd2etrs.yaml'
     17   
    1418coordinates = None
    1519
Note: See TracChangeset for help on using the changeset viewer.