@handle_response_format
@treeio_login_required
@module_admin_required()
def pagefolder_edit(request, folder_id, response_format='html'):
 folder = get_object_or_404(PageFolder, pk=folder_id)
 if request.POST:
  form = PageFolderForm(request.POST, instance=folder)
  if form.is_valid():
   folder = form.save()
   return HttpResponseRedirect(reverse('core_admin_pagefolder_view', args=[folder.id]))
 else:
  form = PageFolderForm(instance=folder)
 return render_to_response('core/administration/pagefolder_edit', {'folder': folder, 'form': form}, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required @ module_admin_required ( ) def pagefolder_edit ( request , folder_id , response_format = 'html' ) : folder = get_object_or_404 ( PageFolder , pk = folder_id ) if request . POST : form = PageFolderForm ( request . POST , instance = folder ) if form . is_valid ( ) : folder = form . save ( ) return HttpResponseRedirect ( reverse ( 'core_admin_pagefolder_view' , args = [ folder . id ] ) ) else : form = PageFolderForm ( instance = folder ) return render_to_response ( 'core/administration/pagefolder_edit' , { 'folder' : folder , 'form' : form } , context_instance = RequestContext ( request ) , response_format = response_format )
folder for static pages edit .