From 250334f5a939139fcabc56b29d756072c09b2d31 Mon Sep 17 00:00:00 2001 From: Vladyslav Drok Date: Fri, 13 Nov 2015 10:20:34 +0200 Subject: [PATCH] Remove __name__ attribute from WSME user types Bug 1265590 was fixed and the fix was released, so this behaviour can be removed now. Change-Id: I04b34d83b03387410c60adcfc8255d35a4e6bc5b --- ironic/api/controllers/v1/types.py | 35 ------------------------------ 1 file changed, 35 deletions(-) diff --git a/ironic/api/controllers/v1/types.py b/ironic/api/controllers/v1/types.py index ffcaa7b7f1..1dc4ed6188 100644 --- a/ironic/api/controllers/v1/types.py +++ b/ironic/api/controllers/v1/types.py @@ -34,11 +34,6 @@ class MacAddressType(wtypes.UserType): basetype = wtypes.text name = 'macaddress' - # FIXME(lucasagomes): When used with wsexpose decorator WSME will try - # to get the name of the type by accessing it's __name__ attribute. - # Remove this __name__ attribute once it's fixed in WSME. - # https://bugs.launchpad.net/wsme/+bug/1265590 - __name__ = name @staticmethod def validate(value): @@ -56,11 +51,6 @@ class UuidOrNameType(wtypes.UserType): basetype = wtypes.text name = 'uuid_or_name' - # FIXME(lucasagomes): When used with wsexpose decorator WSME will try - # to get the name of the type by accessing it's __name__ attribute. - # Remove this __name__ attribute once it's fixed in WSME. - # https://bugs.launchpad.net/wsme/+bug/1265590 - __name__ = name @staticmethod def validate(value): @@ -81,11 +71,6 @@ class NameType(wtypes.UserType): basetype = wtypes.text name = 'name' - # FIXME(lucasagomes): When used with wsexpose decorator WSME will try - # to get the name of the type by accessing it's __name__ attribute. - # Remove this __name__ attribute once it's fixed in WSME. - # https://bugs.launchpad.net/wsme/+bug/1265590 - __name__ = name @staticmethod def validate(value): @@ -105,11 +90,6 @@ class UuidType(wtypes.UserType): basetype = wtypes.text name = 'uuid' - # FIXME(lucasagomes): When used with wsexpose decorator WSME will try - # to get the name of the type by accessing it's __name__ attribute. - # Remove this __name__ attribute once it's fixed in WSME. - # https://bugs.launchpad.net/wsme/+bug/1265590 - __name__ = name @staticmethod def validate(value): @@ -129,11 +109,6 @@ class BooleanType(wtypes.UserType): basetype = wtypes.text name = 'boolean' - # FIXME(lucasagomes): When used with wsexpose decorator WSME will try - # to get the name of the type by accessing it's __name__ attribute. - # Remove this __name__ attribute once it's fixed in WSME. - # https://bugs.launchpad.net/wsme/+bug/1265590 - __name__ = name @staticmethod def validate(value): @@ -155,11 +130,6 @@ class JsonType(wtypes.UserType): basetype = wtypes.text name = 'json' - # FIXME(lucasagomes): When used with wsexpose decorator WSME will try - # to get the name of the type by accessing it's __name__ attribute. - # Remove this __name__ attribute once it's fixed in WSME. - # https://bugs.launchpad.net/wsme/+bug/1265590 - __name__ = name def __str__(self): # These are the json serializable native types @@ -185,11 +155,6 @@ class ListType(wtypes.UserType): basetype = wtypes.text name = 'list' - # FIXME(lucasagomes): When used with wsexpose decorator WSME will try - # to get the name of the type by accessing it's __name__ attribute. - # Remove this __name__ attribute once it's fixed in WSME. - # https://bugs.launchpad.net/wsme/+bug/1265590 - __name__ = name @staticmethod def validate(value):