Ignore:
Timestamp:
Jun 18, 2008, 3:50:31 AM (16 years ago)
Author:
andersk
Message:

Add a description field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/controls.py

    r589 r609  
    9393                        % (err, machine.name, cdtype))
    9494
    95 def createVm(username, state, owner, contact, name, memory, disksize, machine_type, cdrom, clone_from):
     95def createVm(username, state, owner, contact, name, description, memory, disksize, machine_type, cdrom, clone_from):
    9696    """Create a VM and put it in the database"""
    9797    # put stuff in the table
    9898    transaction = ctx.current.create_transaction()
    9999    try:
    100         validation.Validate(username, state, name=name, owner=owner, memory=memory, disksize=disksize/1024.)
     100        validation.Validate(username, state, name=name, description=description, owner=owner, memory=memory, disksize=disksize/1024.)
    101101        res = meta.engine.execute('select nextval('
    102102                                  '\'"machines_machine_id_seq"\')')
     
    105105        machine.machine_id = id
    106106        machine.name = name
     107        machine.description = description
    107108        machine.memory = memory
    108109        machine.owner = owner
Note: See TracChangeset for help on using the changeset viewer.