Changeset 609 for trunk/packages/sipb-xen-www/code/controls.py
- Timestamp:
- Jun 18, 2008, 3:50:31 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/controls.py
r589 r609 93 93 % (err, machine.name, cdtype)) 94 94 95 def createVm(username, state, owner, contact, name, memory, disksize, machine_type, cdrom, clone_from):95 def createVm(username, state, owner, contact, name, description, memory, disksize, machine_type, cdrom, clone_from): 96 96 """Create a VM and put it in the database""" 97 97 # put stuff in the table 98 98 transaction = ctx.current.create_transaction() 99 99 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.) 101 101 res = meta.engine.execute('select nextval(' 102 102 '\'"machines_machine_id_seq"\')') … … 105 105 machine.machine_id = id 106 106 machine.name = name 107 machine.description = description 107 108 machine.memory = memory 108 109 machine.owner = owner
Note: See TracChangeset
for help on using the changeset viewer.