~ubuntu-branches/ubuntu/raring/maas/raring-updates

« back to all changes in this revision

Viewing changes to src/maas/development.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-07-03 17:42:37 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20120703174237-p8l0keuuznfg721k
Tags: 0.1+bzr709+dfsg-0ubuntu1
* New Upstream release
* debian/control:
  - Depends on python-celery, python-tempita, libjs-yui3-{full,min},
    libjs-raphael
* debian/maas.install:
  - Install apiclient, celeryconfig.py, maas-import-pxe-files, preseeds_v2.
  - Update to install various files from chroot, rather tha manually copy
    them from the source.
* debian/maas.links: symlink celeryconfig.py
* debian/maas.maas-celery.upstart: Add job.
* debian/rules:
  - Install celery upstart job.
  - Do not install jslibs as packages are now used.
  - Drop copying of maas_local_settings_sample.py as source now ships
    a maas_local_settings.py
* debian/patches:
  - 04-maas-http-fix.patch: Drop. Merged upstream.
  - 01-fix-database-settings.patch: Refreshed.
  - 99_enums_js.patch: Added until creation of enum.js / build process
    is fixed.
* debian/maas.postinst: Update bzr version to correctly handle upgrades.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
__metaclass__ = type
13
13
 
14
14
import logging
15
 
import os
 
15
from os.path import abspath
16
16
 
17
17
from maas import (
18
18
    import_local_settings,
58
58
        'NAME': 'maas',
59
59
        # For PostgreSQL, a "hostname" starting with a slash indicates a
60
60
        # Unix socket directory.
61
 
        'HOST': '%s/db' % os.getcwd(),
 
61
        'HOST': abspath('db'),
62
62
    }
63
63
}
64
64
 
65
65
# Absolute filesystem path to the directory that will hold user-uploaded files.
66
66
# Example: "/home/media/media.lawrence.com/media/"
67
 
MEDIA_ROOT = os.path.join(os.getcwd(), "media/development")
 
67
MEDIA_ROOT = abspath("media/development")
68
68
 
69
69
INSTALLED_APPS += (
70
70
    'django.contrib.admin',
79
79
    'INTERCEPT_REDIRECTS': False,
80
80
    }
81
81
 
 
82
# Make all nodes' metadata visible.  This is not safe; do not enable it
 
83
# on a production MAAS.
 
84
ALLOW_UNSAFE_METADATA_ACCESS = True
 
85
 
 
86
# Use in-branch preseed templates.
 
87
PRESEED_TEMPLATE_LOCATIONS = (
 
88
    abspath("etc/preseeds"),
 
89
    abspath("contrib/preseeds_v2"),
 
90
    )
 
91
 
82
92
# Allow the user to override settings in maas_local_settings.
83
93
import_local_settings()