Package expedient :: Package clearinghouse :: Package defaultsettings :: Module expedient
[hide private]
[frames] | no frames]

Module expedient

source code

Expedient-specific settings.

Created on Aug 19, 2010


Author: jnaous

Variables [hide private]
  BASIC_AUTH_URLS = ['^/dummyom/.*']
List of URL regular expressions that accept HTTP Basic Authentication.
  SITE_LOCKDOWN_EXCEPTIONS = ['^/accounts/register/.*$', '^/acco...
List of URL regular expressions that do not require the user to be logged in to access.
  UI_PLUGINS = [('expedient.ui.html.plugin', 'html_ui', 'expedie...
List of UI plugins that are enabled in Expedient.
  AGGREGATE_PLUGINS = [('openflow.plugin.models.OpenFlowAggregat...
List of aggregate plugins that are enabled in Expedient.
  SLICE_EXPIRATION_CHECK_INTERVAL = 3600
How often should we check for expired slices?
  SLICE_EXPIRATION_NOTIFICATION_TIME = 86400
How much earlier should we send an email about slices almost expiring?
  MAX_SLICE_LIFE = 30
Maximum life of a slice without renewing in days
  DOMAIN_SCHEME = 'https'
What domain scheme should be used for absolute URLs?
  __package__ = 'expedient.clearinghouse.defaultsettings'
Variables Details [hide private]

BASIC_AUTH_URLS

List of URL regular expressions that accept HTTP Basic Authentication.

This is used to enable some tests to work.

Value:
['^/dummyom/.*']

SITE_LOCKDOWN_EXCEPTIONS

List of URL regular expressions that do not require the user to be logged in to access.

Value:
['^/accounts/register/.*$',
 '^/accounts/activate/.*$',
 '^/admin/.*',
 '^/accounts/password/reset/.*$',
 '^/img/.*',
 '^/css/.*',
 '^/static/media/.*',
 '.*/xmlrpc/?']

UI_PLUGINS

List of UI plugins that are enabled in Expedient.

This is a list of 3-tuples:

  1. The first element is the absolute path to a callable that describes the plugin. It should take as input an expedient.clearinghouse.slice.models.Slice instance and return a tuple (plugin name, plugin description, url to go to for access)
  2. The second element is the prefix that is prepended to all urls for accessing the plugin. This should be unique across all plugins and applications.
  3. The third element is the absolute path to the module that should be included in URLConf and that contains all the plugin's URLs.
Value:
[('expedient.ui.html.plugin', 'html_ui', 'expedient.ui.html.urls'),
 ('expedient.ui.rspec.plugin', 'rspec_mgr', 'expedient.ui.rspec.urls')\
]

AGGREGATE_PLUGINS

List of aggregate plugins that are enabled in Expedient.

This is a list of 3-tuples:

  1. The first element is the absolute path to the Aggregate class.
  2. The second element is the prefix that is prepended to all urls for accessing the plugin. This should be unique across all plugins and applications.
  3. The third element is the absolute path to the module that should be included in URLConf and that contains all the plugin's URLs.
Value:
[('openflow.plugin.models.OpenFlowAggregate',
  'openflow',
  'openflow.plugin.urls'),
 ('expedient_geni.planetlab.models.PlanetLabAggregate',
  'planetlab',
  'expedient_geni.planetlab.urls'),
 ('expedient_geni.gopenflow.models.GCFOpenFlowAggregate',
  'gopenflow',
...

SLICE_EXPIRATION_CHECK_INTERVAL

How often should we check for expired slices?

This indicates how often to check for expired slices and stop them. The given time is in seconds.

The accuracy will depend on how often the expedient cron job runs.

Value:
3600

SLICE_EXPIRATION_NOTIFICATION_TIME

How much earlier should we send an email about slices almost expiring?

This indicates when to send emails to slice owners that their slices are about to expire. Time is in seconds.

The accuracy will depend on how often the expedient cron job runs.

Value:
86400