Add back in the ability to create users

This commit is contained in:
Joseph Schorr 2014-12-23 14:25:04 -05:00
parent 4ca877c1d4
commit cac19cac57
4 changed files with 91 additions and 3 deletions

View file

@ -37,6 +37,7 @@ def get_services():
@show_if(features.SUPER_USERS)
class SuperUserGetLogsForService(ApiResource):
""" Resource for fetching the kinds of system logs in the system. """
@require_fresh_login
@nickname('getSystemLogs')
def get(self, service):
""" Returns the logs for the specific service. """
@ -63,6 +64,7 @@ class SuperUserGetLogsForService(ApiResource):
@show_if(features.SUPER_USERS)
class SuperUserSystemLogServices(ApiResource):
""" Resource for fetching the kinds of system logs in the system. """
@require_fresh_login
@nickname('listSystemLogServices')
def get(self):
""" List the system logs for the current system. """
@ -80,6 +82,7 @@ class SuperUserSystemLogServices(ApiResource):
@show_if(features.SUPER_USERS)
class SuperUserLogs(ApiResource):
""" Resource for fetching all logs in the system. """
@require_fresh_login
@nickname('listAllLogs')
@parse_args
@query_param('starttime', 'Earliest time from which to get logs. (%m/%d/%Y %Z)', type=str)