From ff4d69a523a193034ac955ae371c39f7519730e5 Mon Sep 17 00:00:00 2001 From: Carlos 'Legionarius' Martinez Date: Tue, 23 Feb 2016 15:59:44 -0600 Subject: [PATCH] Behavior tempurl constant change * removed two unused constants from the behaviors. * removed VALID_TEMPURL_KEY from behaviors. * added BASE_TEMPURL_KEY to Constants Change-Id: I06462cecc6a5a2dc6a2362c53b965080a87947f1 --- cloudcafe/objectstorage/objectstorage_api/behaviors.py | 6 ------ .../objectstorage/objectstorage_api/common/constants.py | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/cloudcafe/objectstorage/objectstorage_api/behaviors.py b/cloudcafe/objectstorage/objectstorage_api/behaviors.py index 69d0c691..df108ce2 100644 --- a/cloudcafe/objectstorage/objectstorage_api/behaviors.py +++ b/cloudcafe/objectstorage/objectstorage_api/behaviors.py @@ -43,15 +43,9 @@ class ObjectStorageAPIBehaviorException(Exception): class ObjectStorageAPI_Behaviors(BaseBehavior): HEADERS_AUTH_TOKEN = 'X-Auth-Token' - PATH_TYPES_ACCOUNT = 'account' - PATH_TYPES_CONTAINER = 'container' - PATH_TYPES_OBJECT = 'object' - ERROR_INVALID_PATH = 'path must be supplied as a string.' ERROR_INVALID_METHOD = 'method must be supplied as a string.' - VALID_TEMPURL_KEY = 'qe-tempurl-key' - def __init__(self, client=None, config=None): super(ObjectStorageAPI_Behaviors, self).__init__() self.client = client diff --git a/cloudcafe/objectstorage/objectstorage_api/common/constants.py b/cloudcafe/objectstorage/objectstorage_api/common/constants.py index 36f07487..440fef0e 100644 --- a/cloudcafe/objectstorage/objectstorage_api/common/constants.py +++ b/cloudcafe/objectstorage/objectstorage_api/common/constants.py @@ -23,3 +23,5 @@ class Constants(object): VALID_OBJECT_DATA = 'object data.' VALID_OBJECT_NAME_WITH_UNICODE = u'object_{0}'.format( unicode(u'\u262D\u2622')).encode('utf-8') + + BASE_TEMPURL_KEY = 'qe-tempurl-key'