git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
now that we have updated dataTables.bootstrap.{js,css} we can go back to the bootstra...
[myslice.git]
/
portal
/
sliceview.py
diff --git
a/portal/sliceview.py
b/portal/sliceview.py
index
0e514dd
..
fe95764
100644
(file)
--- a/
portal/sliceview.py
+++ b/
portal/sliceview.py
@@
-51,7
+51,8
@@
class SliceView (LoginRequiredAutoLogoutView):
main_query = Query.get('slice').filter_by('slice_hrn', '=', slicename)
main_query.select(
'slice_hrn',
main_query = Query.get('slice').filter_by('slice_hrn', '=', slicename)
main_query.select(
'slice_hrn',
- 'resource.resource_hrn', 'resource.hostname', 'resource.type', 'resource.network_hrn',
+ 'resource.resource_hrn', 'resource.hostname', 'resource.type',
+ #'resource.network_hrn',
#'lease.urn',
'user.user_hrn',
#'application.measurement_point.counter'
#'lease.urn',
'user.user_hrn',
#'application.measurement_point.counter'
@@
-105,6
+106,8
@@
class SliceView (LoginRequiredAutoLogoutView):
title = 'Pending operations',
query = main_query,
togglable = True,
title = 'Pending operations',
query = main_query,
togglable = True,
+ # start turned off, it will open up itself when stuff comes in
+ toggled = False,
domid = 'pending',
outline_complete = True,
))
domid = 'pending',
outline_complete = True,
))
@@
-232,6
+235,8
@@
class SliceView (LoginRequiredAutoLogoutView):
togglable = False,
# this is the query at the core of the slice list
query = sq_measurement,
togglable = False,
# this is the query at the core of the slice list
query = sq_measurement,
+ # do NOT set checkboxes to False
+ # this table being otherwise empty, it just does not fly with dataTables
checkboxes = True,
datatables_options = {
'iDisplayLength' : 25,
checkboxes = True,
datatables_options = {
'iDisplayLength' : 25,