X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=myslice%2Fviewutils.py;h=2073ab48594f8c16c2db5e2f1f2077c39814e7c9;hb=a2ae7986853adb271361957a08effd0c9537e7a3;hp=80b4f788ccf504a7caf2e20f692b6809711c50c8;hpb=3528c308c23c63774cccf92e473abed0d85893e0;p=unfold.git diff --git a/myslice/viewutils.py b/myslice/viewutils.py index 80b4f788..2073ab48 100644 --- a/myslice/viewutils.py +++ b/myslice/viewutils.py @@ -2,11 +2,13 @@ from copy import deepcopy -standard_topmenu_items = [ { 'label':'Plugin', 'href': '/plugin/'}, - { 'label':'Slice', 'href': '/slice/'}, - { 'label':'Scroll', 'href': '/scroll/'}, - { 'label':'Tab', 'href': '/tab/'}, - ] +standard_topmenu_items = [ + { 'label':'Tab', 'href': '/tab/'}, + { 'label':'Scroll', 'href': '/scroll/'}, + { 'label':'Slice', 'href': '/slice/'}, + { 'label':'Plugin', 'href': '/plugin/'}, + { 'label':'Dashboard', 'href': '/dashboard/'}, + ] #login_out_items = { False: { 'label':'Login', 'href':'/login/'}, # True: { 'label':'Logout', 'href':'/logout/'}} @@ -23,7 +25,7 @@ def topmenu_items (current,request=None): def the_user (request): "This code below is broken" if not request.user.is_authenticated (): - print 'void' +# print 'void user!' return '' else: return request.user.email @@ -57,3 +59,8 @@ hard_wired_list.append("just like a standard plugin can be set as visible or not hard_wired_list.append("") hard_wired_list.append("OTOH and IMHO, there should be two separate and explicit subclasses of SimpleList for slices or testbeds") +quickfilter_criterias = [ + {'key': 'Slice', 'values': ['slice1','slice2']}, + {'key': 'Type', 'values': ['type1','type2']}, + {'key': 'Network', 'values': ['net1','net2']}, + ]