Changeset 829


Ignore:
Timestamp:
Aug 3, 2008, 12:29:54 AM (16 years ago)
Author:
price
Message:

get db uri from invirt.config in sipb-database

Location:
trunk/packages/sipb-xen-database
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-database/client/etc/xen/sipb-database

    r828 r829  
    11# -*- mode: python; -*-
    2 import sipb_xen_database.models as models
    3 from sipb_xen_database import connect
     2from invirt.database import models, connect
    43import re
    54import tempfile
    65from subprocess import call
    76
    8 connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
     7connect()
    98prefix = "d_"
    109
  • trunk/packages/sipb-xen-database/config.todo

    r810 r829  
    1 client/etc/xen/sipb-database: db uri
    21client/etc/xen/sipb-database: gateway, netmask
    32sipb-xen-database-tables: db uri
  • trunk/packages/sipb-xen-database/debian/changelog

    r828 r829  
    11sipb-xen-database (10.15) unstable; urgency=low
    22
    3   * uncommitted changes to /etc/xen/sipb-database on black-mesa
     3  in /etc/xen/database:
     4  * uncommitted changes on black-mesa
     5  * sipb_xen_database -> invirt.database
     6  * use default db uri
    47
    5  -- Greg Price <price@mit.edu>  Sun,  3 Aug 2008 00:26:13 -0400
     8  in invirt.database:
     9  * get default db uri from invirt.config
     10
     11 -- Greg Price <price@mit.edu>  Sun,  3 Aug 2008 00:26:46 -0400
    612
    713sipb-xen-database (10.14) unstable; urgency=low
  • trunk/packages/sipb-xen-database/python/database/__init__.py

    r77 r829  
     1from invirt.config import structs as config
    12from models import *
    23
    3 def connect(uri):
     4def connect(uri = config.db.uri):
    45    """ Connect to a given database URI"""
    56    meta.connect(uri)
Note: See TracChangeset for help on using the changeset viewer.