Changeset 407


Ignore:
Timestamp:
Apr 3, 2008, 3:12:13 AM (16 years ago)
Author:
price
Message:

give useful URIs after per-VM commands

I haven't done this for the list page, because the create command's
result message is at least minimally useful and I haven't made a
mechanism for displaying those messages at the standard URIs.

File:
1 edited

Legend:

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

    r340 r407  
    345345    elif back == 'info':
    346346        machine = validation.testMachineId(user, fields.getfirst('machine_id'))
    347         d = infoDict(user, machine)
    348         d['result'] = result
    349         return templates.info(searchList=[d])
     347        return ({'Status': '302',
     348                 'Location': '/info?machine_id=%d' % machine.machine_id},
     349                "You shouldn't see this message.")
    350350    else:
    351351        raise InvalidInput('back', back, 'Not a known back page.')
Note: See TracChangeset for help on using the changeset viewer.