@handle_response_format
@treeio_login_required
@module_admin_required()
def pagefolder_view(request, folder_id, response_format='html'):
 folder = get_object_or_404(PageFolder, pk=folder_id)
 pages = Page.objects.filter(folder=folder).order_by('name')
 return render_to_response('core/administration/pagefolder_view', {'folder': folder, 'pages': pages}, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required @ module_admin_required ( ) def pagefolder_view ( request , folder_id , response_format = 'html' ) : folder = get_object_or_404 ( PageFolder , pk = folder_id ) pages = Page . objects . filter ( folder = folder ) . order_by ( 'name' ) return render_to_response ( 'core/administration/pagefolder_view' , { 'folder' : folder , 'pages' : pages } , context_instance = RequestContext ( request ) , response_format = response_format )
folder for static pages view .