X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fsliceview.py;h=7d8aaf9f85e58771c0bbfbb70d468d5d785d3421;hb=dadf82b73ca1616e64269a2641926d89c8aaf107;hp=8767e8b2f7546e46a45966c12f741fde132b84ea;hpb=292bfa660615de1d3a4e3c6ed0b8a28c84963f88;p=myslice.git diff --git a/portal/sliceview.py b/portal/sliceview.py index 8767e8b2..7d8aaf9f 100644 --- a/portal/sliceview.py +++ b/portal/sliceview.py @@ -27,7 +27,8 @@ from myslice.config import Config tmp_default_slice='ple.upmc.myslicedemo' # temporary : turn off the users part to speed things up -do_query_users=True +#do_query_users=True +do_query_users=False class SliceView (LoginRequiredAutoLogoutView): @@ -234,35 +235,34 @@ class SliceView (LoginRequiredAutoLogoutView): # -------------------------------------------------------------------------- # USERS - if do_query_users: - tab_users = Tabs( - page = page, - domid = 'users', - outline_complete = True, - togglable = True, - title = 'Users', - active_domid = 'users-list', - ) - main_stack.insert(tab_users) - - tab_users.insert(Hazelnut( - page = page, - title = 'Users List', - domid = 'users-list', - # tab's sons preferably turn this off - togglable = False, - # this is the query at the core of the slice list - query = sq_user, - query_all = query_user_all, - checkboxes = True, - datatables_options = { - 'iDisplayLength' : 25, - 'bLengthChange' : True, - 'bAutoWidth' : True, - }, - )) - - +# if do_query_users: +# tab_users = Tabs( +# page = page, +# domid = 'users', +# outline_complete = True, +# togglable = True, +# title = 'Users', +# active_domid = 'users-list', +# ) +# main_stack.insert(tab_users) +# +# tab_users.insert(Hazelnut( +# page = page, +# title = 'Users List', +# domid = 'users-list', +# # tab's sons preferably turn this off +# togglable = False, +# # this is the query at the core of the slice list +# query = sq_user, +# query_all = query_user_all, +# checkboxes = True, +# datatables_options = { +# 'iDisplayLength' : 25, +# 'bLengthChange' : True, +# 'bAutoWidth' : True, +# }, +# )) + # DEMO # -------------------------------------------------------------------------- # MEASUREMENTS