# mini_buildd.config module

mini_buildd.config.CHAR_ENCODING = 'UTF-8'

  This should never ever be changed

mini_buildd.config.PY_PACKAGE_PATH = '/usr/lib/python3/dist-packages'

  Compute python-version dependent install path

mini_buildd.config.SHUTDOWN = 'SHUTDOWN'

  Global constant object to use when signalling shutdown via message queues

mini_buildd.config.MIN_HTTPD_THREADS = 10

  Config for HTTPD (twisted) and event queue clients

mini_buildd.config.ACCESS_LOG_FILE = 'access.log'

  HTTPD log file names

mini_buildd.config.PACKAGE_TEMPLATES = '/usr/share/mini-buildd/package-templates'

  (Debian package) path for the internal package templates

mini_buildd.config.HANDSHAKE_MESSAGE = 'Hand Shake'

  Sample message used for instance handshakes

class mini_buildd.config.AuthType(*values)

  Bases: `Enum`

  NONE = 1
  LOGIN = 2
  STAFF = 3
  ADMIN = 4

class mini_buildd.config.Auth(auth)

  Bases: `object`

  is_authorized(user)

    Check if django user is authorized

mini_buildd.config.AUTH_NONE = <mini_buildd.config.Auth object>

  Auth shortcuts

class mini_buildd.config.Uri(uri, auth=<mini_buildd.config.Auth object>, django_with_path=False)

  Bases: `object`

  URI string with some convenience functionality

  DJANGO_PATH_REGEX = '(?:(?P<path>.*))?'
  auth

    Auth

  django_with_path

    Non-static: Add ‘path’ to django URI

  django()
  twisted()
  join(*args, prefix='')
  url_join(*args, endpoint=None)
  classmethod uri2view(uri)
  to_view()

mini_buildd.config.URIS = {'accounts': {'activate': <mini_buildd.config.Uri object>, 'base': <mini_buildd.config.Uri object>, 'login': <mini_buildd.config.Uri object>, 'null': <mini_buildd.config.Uri object>, 'profile': <mini_buildd.config.Uri object>, 'register': <mini_buildd.config.Uri object>}, 'admin': {'view': <mini_buildd.config.Uri object>}, 'api': {'view': <mini_buildd.config.Uri object>}, 'builders': {'view': <mini_buildd.config.Uri object>}, 'builds': {'dir': <mini_buildd.config.Uri object>, 'static': <mini_buildd.config.Uri object>}, 'crontab': {'view': <mini_buildd.config.Uri object>}, 'events': {'attach': <mini_buildd.config.Uri object>, 'dir': <mini_buildd.config.Uri object>, 'static': <mini_buildd.config.Uri object>, 'view': <mini_buildd.config.Uri object>}, 'homepage': {'view': <mini_buildd.config.Uri object>}, 'manual': {'static': <mini_buildd.config.Uri object>, 'view': <mini_buildd.config.Uri object>}, 'repositories': {'dir': <mini_buildd.config.Uri object>, 'static': <mini_buildd.config.Uri object>, 'view': <mini_buildd.config.Uri object>}, 'setup': {'view': <mini_buildd.config.Uri object>}, 'sitemap': {'view': <mini_buildd.config.Uri object>}, 'static': {'static': <mini_buildd.config.Uri object>}}

  Static URI dict (by route name) ‘view’: The default (django). ‘dir’: Directory Listing (django). ‘static’: Static delivery (twisted).

class mini_buildd.config.Route(path=None, uris=None)

  Bases: `object`

  Link a path (may be None, may be run-time) to uris (may be empty)

  get_uri(typ, path='')

    Get URI for path with given type (like static, dir, view)

class mini_buildd.config.Routes(home)

  Bases: `dict`

mini_buildd.config.DEBUG = []

  Variable items (see mini-buildd main script)

mini_buildd.config.HTTP_ENDPOINTS = ['tcp6:port=8066']

  HTTP endpoints strings

mini_buildd.config.default_ftp_endpoint()

  Compute default ftp endpoint string from main http endpoint

mini_buildd.config.default_identity()

mini_buildd.config.default_email_address()

mini_buildd.config.default_allow_emails_to()

class mini_buildd.config.SqlitePath

  Bases: `object`

  fix_perms()