Changeset 8784edeece399f9d7eae5a786ea7a0f30a7732da for pxe/views.py
- Timestamp:
- 02/10/09 20:16:04 (3 years ago)
- Children:
- 7218e7ce77d425dcf3e8c6e1bea40242315868c4
- Parents:
- 0cdcde4b0b7371a511bb3681726d4102b8fac1af
- git-committer:
- Frederic Lepied <frederic.lepied@…> (02/10/09 20:16:04)
- Files:
-
- 1 modified
-
pxe/views.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pxe/views.py
r1f8d77d r8784ede 8 8 #--------------------------------------------------------------- 9 9 10 from django.http import HttpResponse 10 from django.http import HttpResponse, Http404 11 11 from django.shortcuts import get_object_or_404 12 12 from common import * 13 13 from models import * 14 14 15 def localboot1(request): 16 return localboot(request, get_mac(request)) 17 15 18 def localboot(request, mac): 16 19 system = get_object_or_404(System, macaddress__mac=simplify_mac(mac)) … … 18 21 return HttpResponse("Next boot set to local", mimetype="text/plain") 19 22 23 def profile1(request): 24 return profile(request, get_mac(request)) 25 20 26 def profile(request, mac): 21 27 system = get_object_or_404(System, macaddress__mac=simplify_mac(mac))
