aboutsummaryrefslogtreecommitdiffstats
path: root/src/booking
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-02-26 12:01:18 -0500
committerParker Berberian <pberberian@iol.unh.edu>2019-03-01 11:06:29 -0500
commitac43527647f972cb5a021e7a0c7431997490df52 (patch)
tree8302ba6b00c0a9bb724f82ce32c2cb0c33814c02 /src/booking
parente858a658aa9594949ec3b357253b34c7489d623d (diff)
Enhance PDF/IDF Support
Improves PDF template and code organization and adds an IDF template. To complete these templates, the lab must be able to report L3 network info and ipmi info at the least. A change to the API to allow for this has to be made. Change-Id: I4b9d2e73eb3940300f7e95fa2f9f4ddd0d606c60 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'src/booking')
-rw-r--r--src/booking/quick_deployer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/booking/quick_deployer.py b/src/booking/quick_deployer.py
index 7946ebf..bc714da 100644
--- a/src/booking/quick_deployer.py
+++ b/src/booking/quick_deployer.py
@@ -33,6 +33,7 @@ from resource_inventory.models import (
OPNFVConfig
)
from resource_inventory.resource_manager import ResourceManager
+from resource_inventory.pdf_templater import PDFTemplater
from notifier.manager import NotificationHandler
from booking.models import Booking
from dashboard.exceptions import (
@@ -229,7 +230,7 @@ def create_from_form(form, request):
booking.start = timezone.now()
booking.end = timezone.now() + timedelta(days=int(length))
booking.resource = resource_bundle
- booking.pdf = ResourceManager().makePDF(booking.resource)
+ booking.pdf = PDFTemplater.makePDF(booking.resource)
booking.config_bundle = cbundle
booking.save()
users_field = users_field[2:-2]