Changeset 633
- Timestamp:
- Jun 21, 2008, 10:51:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/main.py
r632 r633 342 342 machine = validation.Validate(username, state, machine_id=fields.getfirst('machine_id')).machine 343 343 return ({'Status': '303 See Other', 344 'Location': ' /info?machine_id=%d' % machine.machine_id},344 'Location': 'info?machine_id=%d' % machine.machine_id}, 345 345 "You shouldn't see this message.") 346 346 else: … … 586 586 587 587 def overlord(username, state, path, fields): 588 if path == '': 589 return ({'Status': '303 See Other', 590 'Location': 'overlord/'}, 591 "You shouldn't see this message.") 588 592 if not username in getAfsGroupMembers('system:xvm', 'athena.mit.edu'): 589 593 raise InvalidInput('username', username, 'Not an overlord.') … … 667 671 operation = self.environ.get('PATH_INFO', '') 668 672 if not operation: 669 self.start("301 Moved Permanently", [('Location', 670 self.environ['SCRIPT_NAME']+'/')]) 673 self.start("301 Moved Permanently", [('Location', './')]) 671 674 return 672 675 if self.username is None:
Note: See TracChangeset
for help on using the changeset viewer.