pep8 v1.3.3 compliance (bug 1019498)

Change-Id: I7254a363a80248ecb6c2889968bc43ed44cd4383
This commit is contained in:
Dolph Mathews 2012-06-29 13:08:56 -05:00
parent 478cde128b
commit 39b20acc93
2 changed files with 13 additions and 8 deletions

View File

@ -62,12 +62,16 @@ class StatsExtension(wsgi.ExtensionRouter):
def add_routes(self, mapper):
stats_controller = StatsController()
mapper.connect('/OS-STATS/stats', controller=stats_controller,
action='get_stats',
conditions=dict(method=['GET']))
mapper.connect('/OS-STATS/stats', controller=stats_controller,
action='reset_stats',
conditions=dict(method=['DELETE']))
mapper.connect(
'/OS-STATS/stats',
controller=stats_controller,
action='get_stats',
conditions=dict(method=['GET']))
mapper.connect(
'/OS-STATS/stats',
controller=stats_controller,
action='reset_stats',
conditions=dict(method=['DELETE']))
class StatsController(wsgi.Application):
@ -80,7 +84,8 @@ class StatsController(wsgi.Application):
def get_stats(self, context):
self.assert_admin(context)
return {'OS-STATS:stats': [
return {
'OS-STATS:stats': [
{
'type': 'identity',
'api': 'admin',

View File

@ -11,7 +11,7 @@ nose # for test discovery and console feedback
nosexcover
openstack.nose_plugin
pylint # static code analysis
pep8==1.1 # checks for PEP8 code style compliance
pep8==1.3.3 # checks for PEP8 code style compliance
Sphinx>=1.1.2 # required to build documentation
unittest2 # backport of unittest lib in python 2.7
webtest # test wsgi apps without starting an http server