Removed the obsolete NodeType class.

This commit is contained in:
2016-07-07 15:04:46 +02:00
parent 2e4c5b2663
commit 96ece1540d
2 changed files with 0 additions and 12 deletions

View File

@@ -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

View File

@@ -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