Changeset 853b6ff09487cd6805e4ae5a5956b0cbcd28359d
- Timestamp:
- 02/02/09 19:13:07 (3 years ago)
- Author:
- Frederic Lepied <frederic.lepied@…>
- Children:
- 72fb636a02c2eaee91479d49679c1602a32bef9c
- Parents:
- 2c8d924d441cf07a1b6ddea49ac36defb3c88a06
- git-committer:
- Frederic Lepied <frederic.lepied@…> (02/02/09 19:13:07)
- Message:
-
return the name of the profile for the given mac address
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r693511a
|
r853b6ff
|
|
| 8 | 8 | set_next_boot(system, settings.PXE_LOCAL) |
| 9 | 9 | return HttpResponse("Next boot set to local", mimetype="text/plain") |
| | 10 | |
| | 11 | def profile(request, mac): |
| | 12 | system = get_object_or_404(System, macaddress__mac=simplify_mac(mac)) |
| | 13 | log = Log.objects.filter(system=system).order_by('-date')[0] |
| | 14 | return HttpResponse(log.boot_name.name, mimetype="text/plain") |
-
|
r693511a
|
r853b6ff
|
|
| 16 | 16 | # (r'^admin/(.*)', admin.site.root), |
| 17 | 17 | (r'^localboot/(?P<mac>[a-fA-F0-9:-]+)/$', 'pxe.views.localboot'), |
| | 18 | (r'^profile/(?P<mac>[a-fA-F0-9:-]+)/$', 'pxe.views.profile'), |
| 18 | 19 | ) |