Ignore:
Timestamp:
Aug 19, 2007, 7:41:02 PM (17 years ago)
Author:
nelhage
Message:

Add a connect() call to sipb-database and make some changes

File:
1 edited

Legend:

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

    r84 r85  
    11import sipb_xen_database.models as models
     2from sipb_xen_database import connect
    23
    3 # `name' gets passed in from the xm create call
     4connect('postgres://sipb-xen@sipb-vm-1/sipb_xen')
     5# `machine_name' should get passed in from the xm create call
    46
    5 machine = models.Machine.get_by(name=name)
     7machine = models.Machine.get_by(name=machine_name)
    68machine_type = models.Type.get_by(type_id=machine.type_id)
    79
Note: See TracChangeset for help on using the changeset viewer.