@handle_response_format
@treeio_login_required
def settings_view(request, response_format='html'):
 if (not request.user.profile.is_admin('treeio.projects')):
  return user_denied(request, message="You don't have administrator access to the Projects module")
 try:
  conf = ModuleSetting.get_for_module('treeio.projects', 'default_task_status')[0]
  default_task_status = TaskStatus.objects.get(pk=long(conf.value), trash=False)
 except Exception:
  default_task_status = None
 statuses = TaskStatus.objects.filter(trash=False)
 context = _get_default_context(request)
 context.update({'default_task_status': default_task_status, 'statuses': statuses})
 return render_to_response('projects/settings_view', context, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required def settings_view ( request , response_format = 'html' ) : if ( not request . user . profile . is_admin ( 'treeio.projects' ) ) : return user_denied ( request , message = "You don't have administrator access to the Projects module" ) try : conf = ModuleSetting . get_for_module ( 'treeio.projects' , 'default_task_status' ) [ 0 ] default_task_status = TaskStatus . objects . get ( pk = long ( conf . value ) , trash = False ) except Exception : default_task_status = None statuses = TaskStatus . objects . filter ( trash = False ) context = _get_default_context ( request ) context . update ( { 'default_task_status' : default_task_status , 'statuses' : statuses } ) return render_to_response ( 'projects/settings_view' , context , context_instance = RequestContext ( request ) , response_format = response_format )
settings admin view .