From 96ece1540d84814ca532f5f835e9cf457c162932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 7 Jul 2016 15:04:46 +0200 Subject: [PATCH] Removed the obsolete NodeType class. --- pillarsdk/__init__.py | 1 - pillarsdk/nodes.py | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/pillarsdk/__init__.py b/pillarsdk/__init__.py index 66500cd..9e56c22 100644 --- a/pillarsdk/__init__.py +++ b/pillarsdk/__init__.py @@ -1,7 +1,6 @@ from .api import Api from .resource import Resource from .nodes import Node -from .nodes import NodeType from .users import User from .files import File from .tokens import Token diff --git a/pillarsdk/nodes.py b/pillarsdk/nodes.py index cc781f2..01ac525 100755 --- a/pillarsdk/nodes.py +++ b/pillarsdk/nodes.py @@ -163,14 +163,3 @@ class Node(List, Find, Create, Post, Update, Delete, Replace): import mimetypes mimetype, _ = mimetypes.guess_type(filename, strict=False) return mimetype - - -class NodeType(List, Find, Create, Post, Delete): - """NodeType class wrapping the REST node_types endpoint - """ - path = "node_types" - - def has_method(self, method): - if method in self.allowed_methods: - return True - return False