main_query = ManifoldQuery (action='get',
subject='resource',
timestamp='latest',
- fields=['hrn','hostname'],
+ fields=['network','type','hrn','hostname'],
filters= [ [ 'slice_hrn', '=', slicename, ] ],
- sort='slice_hrn',
)
page.enqueue_query (main_query)
main_plugin = Stack (
page=page,
- title="global container",
+ title="Slice view for %s"%slicename,
domid='thestack',
# togglable=False,
sons=[Tabs (
page=page,
title='a sample and simple hazelnut',
domid='simple',
-# togglable=False,
+ togglable=False,
# this is the query at the core of the slice list
query=main_query,
),
page=page,
title='with checkboxes',
domid='checkboxes',
-# togglable=False,
+ togglable=False,
checkboxes=True,
# this is the query at the core of the slice list
query=main_query,
# toggled=False,
# this is the query at the core of the slice list
query=main_query,
+ columns=['hrn','hostname'],
),
QueryCode (
page=page,
query=main_query,
# toggled=False,
),
+ QuickFilter (
+ page=page,
+ title="QuickFilter is currently the only one that requires metadata",
+ criterias=quickfilter_criterias
+ ),
])
# variables that will get passed to the view-unfold1.html template
template_env.update(prelude_env)
result=render_to_response ('view-unfold1.html',template_env,
context_instance=RequestContext(request))
- print 'result=',result
return result