Changeset 162


Ignore:
Timestamp:
Oct 9, 2007, 10:19:05 PM (17 years ago)
Author:
ecprice
Message:

No longer force user_ at start of machine name on machine creation.

Modify already doesn't enforce this.

People seem to prefer this convention, and we used transactions to
create and modify machines, so we don't think there are likely to be
problems. It should result in nicer hostnames.

(tabbott ghosting as ecprice again)

Location:
trunk/web/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/templates/list.tmpl

    r144 r162  
    7272        <tr>
    7373          <td>Name</td>
    74           <td>${user.username}_<input type="text" name="name" value=""/></td>
     74          <td><input type="text" name="name" value=""/></td>
    7575        </tr>
    7676        <tr>
  • trunk/web/templates/main.py

    r161 r162  
    354354    if not validMachineName(name):
    355355        raise InvalidInput('name', name)
    356     name = user.username + '_' + name.lower()
     356    name = name.lower()
    357357
    358358    if Machine.get_by(name=name):
Note: See TracChangeset for help on using the changeset viewer.